Skip to main content

Convert a review guide

This guide turns an existing review checklist, style guide or AGENTS.md section into Lore rules. The work is mostly judgment, so it suits an AI agent with the writing-lore skill, checked by you.

  1. Give your agent the skill. Copy skills/writing-lore/ from the Lore repository into your project's .claude/skills/, or into ~/.claude/skills/ for every project. Other agents can read SKILL.md directly.

  2. Point it at the guide. Ask the agent to convert one document, such as docs/checkout-review.md. The skill covers which instructions belong in Lore, which belong in a lint rule or a skill, and how to choose when each rule applies.

  3. Keep the source. Save a copy of the guide as converted beside the rules, such as docs/converted/checkout-review.md, and ask for a <source> on each rule naming its section in that copy. The original loses those sections in step 6, and a source pointing at a removed section fails lore audit with source-missing.

  4. Check the rules parse. Run npx @mattstack/lore check on any change. Excluded entries print on stderr with an error name, such as unknown-category; fix each one.

  5. Try them on real changes. Run npx @mattstack/lore check <commit> on a few past commits the guide was written for. A rule that never shows up on a change it should catch has a scope or condition that is too narrow.

  6. Cut the prose. Remove the converted sections from the original guide, or replace them with a pointer to the Lore files, so the rules live in one place.

Next steps​