agentleFS
ronniepinnellronniepinnell/casper/skills/precedent/SKILL.md

precedent

Skill1 starsChanged 4 months agoMITView on GitHub

Precedent lookup before deciding. Greps prior rulings — the verdicts ledger, decision stores, the adjudicated escalation queue — for anything bearing on a pending decision, then either FOLLOWS the precedent or explicitly DISTINGUISHES the case. Use before any /door call, gate override, or decision in a domain the project has ruled on before. No silent departures.

3 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. About 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If rulings conflict with each other, that's the finding — escalate the conflict via /escalate, don't pick a favorite.

    line 36
  2. Distinctive:

    No silent departures. Any decision that contradicts a found ruling without a logged DISTINGUISH line is a judgment override — declare it …

    line 54
  3. Very specific:

    If the same precedent gets distinguished three times, the ruling is wrong — send it to /escalate for re-adjudication instead of a fourth …

    line 58

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “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

/precedent — Has This Already Been Decided?

The ledger only compounds if it's consulted. A team that re-litigates settled questions wastes frontier effort; a team that silently contradicts its own rulings is worse — it has two answers in production. This skill makes the lookup mandatory and the departure explicit.

Invocation

/precedent uuid vs bigint for the new events table
/precedent                 # look up the decision currently under discussion

Procedure

  1. Name the domain and 2–4 keywords for the pending decision (e.g. "ID format": uuid, bigint, pk, id).
  2. Grep the ruling stores, in order:
    • .claude/verdicts.log — DOOR / GATE / ESCALATE lines
    • .claude/escalation-queue.md ## Adjudicated section — burned escalations
    • any project decisions store (DECISIONS_INDEX, docs/decisions/, a decisions DB) Paste the matching lines. Zero hits in all three → verdict none-found, decide fresh (via /door if it's weighty) and move on.
  3. Cite what's found. Quote the ruling(s) verbatim with ref (date/ID/file). If rulings conflict with each other, that's the finding — escalate the conflict via /escalate, don't pick a favorite.
  4. Follow or distinguish — exactly one:
    • FOLLOW — apply the prior ruling. One line saying so. Done; this is the cheap, common case.
    • DISTINGUISH — state the material difference between this case and the precedent's facts, in one or two sentences. "It feels different" and "that was a while ago" are not material differences; changed constraints, changed scale, or a ruling whose kill-gate has since tripped are.
  5. Verdict line (log via /verdict): PRECEDENT: followed <ref> or PRECEDENT: distinguished <ref> — <material difference> or PRECEDENT: none-found.

Rules

  • No silent departures. Any decision that contradicts a found ruling without a logged DISTINGUISH line is a judgment override — declare it (see the Judgment override rule in the repo CLAUDE.md).
  • A DISTINGUISH is itself precedent: it narrows the old ruling. Log it.
  • If the same precedent gets distinguished three times, the ruling is wrong — send it to /escalate for re-adjudication instead of a fourth carve-out.

Composes with

  • /door — run this first; a found precedent often collapses a one-way-door analysis to FOLLOW. No precedent on a one-way door is an /escalate trigger.
  • /verdict — the primary store this greps, and where its own verdicts land.
  • /escalate — conflicting or thrice-distinguished precedents go there.

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.