Skip to main content

Lore

Lore is an open file format for the rules a team expects every change to follow: the domain knowledge a linter can't check. Rules live in .lore files next to the code, and each rule says which files and changes it applies to.

Its documentation lives on its own site: m4ttstack.github.io/lore.

ReadFor
Quick startWriting one rule and checking a change against it.
Format referenceEvery element and key of a .lore file.
CLI referenceThe lore command: check, select, verdicts, audit and review.
SpecificationThe rules every Lore tool follows.

Lore and review rules​

A rule selector works with any rule files a tool can match against a diff. Lore files are one such format. lore select reads a diff and prints the rules that apply, with the verdict format a reviewer answers in.

To turn an existing review guide into Lore rules, give an agent the writing-lore skill from the Lore repository.