agentleFS
healthier-vitaminshealthier-vitamins/agentic-grimoire/skills/playbook/SKILL.md

playbook

Skill2 starsChanged 10 days agoMITView on GitHub

Audit changed code against the engineering playbook (established conventions) and flag omissions.

15 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 10 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run the three steps in order.

    line 9
  2. Very specific:

    Read references/conventions.md — the checklist, grouped by category.

    line 34
  3. Distinctive:

    Done when: every applicable row in every touched category is marked clear or violated against every relevant hunk.

    line 38

“Common” is measured: kept by at least 6 in 10 of the 10 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Every category of code has a playbook — the battle-tested standard practice a senior engineer expects. Functional code that ignores its playbook (retry without jitter, write without a transaction, endpoint without authz) passes tests and bites in production. This skill audits a set of changes against the playbook and voices every departure, so the convention class can't be silently skipped.

Run the three steps in order.

Step 1 — Resolve scope

Fix exactly one concrete review target before reading any convention. Priority:

  1. User named a target in the invocation (a path, HEAD, a SHA, origin/<branch>, a A...B range) → use it verbatim.
  2. Working-tree changes exist and nothing was named → audit them:
    git status --porcelain          # staged + unstaged + untracked
    git diff --stat                 # unstaged
    git diff --cached --stat        # staged
  3. Ambiguous — clean tree, OR both local edits and an obvious intended commit, OR you cannot tell which the user means → AskUserQuestion. Offer concrete options: uncommitted changes / last commit HEAD / this branch vs origin/<base> / a specific SHA. Never assume a target.

For a remote ref, fetch before diffing so the base is not stale:

git fetch origin <base> --quiet
git diff origin/<base>...HEAD --stat

Done when: one git target is fixed and every changed file in it is enumerated (the full list, not a sample). Get the actual diff (git diff <target>) — you audit hunks, not filenames.

Step 2 — Audit against the playbook

Read references/conventions.md — the checklist, grouped by category.

For every changed hunk: identify which categories its code touches, then walk every convention row in those categories. Each row carries a Trigger (when it applies) — fire the row only when the code matches the trigger. This gates false positives: jitter applies to retries against a shared/remote dependency, not a single-shot local call.

Done when: every applicable row in every touched category is marked clear or violated against every relevant hunk. The audit is not "find some issues" — it is "account for the whole checklist." A category touched but unchecked is an incomplete audit.

Step 3 — Report, then fix on confirm

Report each finding:

[SEVERITY] (confidence: N/10) path:line — <departure from the playbook>
  Why: <the convention + one-line rationale>
  Fix: <concrete change>
  Ref: <canonical source, if any>
  • Severity — P1 (will bite in prod) / P2 (should fix) / P3 (nit).
  • Confidence gates display: 9-10 verified by reading the code → show. 7-8 strong → show. 5-6 → show, label "medium confidence". 3-4 → appendix only. 1-2 → only if P1.
  • Close with a one-line verdict: clean, or counts by severity.

Then apply fixes only after the user approves them. After applying, run the validation that matches the changed scope.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.