agentleFS
leszekgruchalaleszekgruchala/buddy/skills/judge/SKILL.md

judge

Skill6 starsChanged 4 months agoApache-2.0View on GitHub

Rule independently on a spec's choices or a diff's irreversible-change signals; confirm, overturn, request evidence, or ask the user only for an unrequested breaking, irreversible change or when no option meets the binding constraints. Keep the current request in this skill; route new requests by their own scope.

15 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use review.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • SentrySkill

    review

    Fixture review skill.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 4 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 13 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

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

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

    Keep the current request in this skill.

    line 8
  2. Distinctive:

    Read only. You may run read-only commands.

    line 20
  3. Distinctive:

    Do not ask for the caller's conversation or its preferred options.

    line 33
  4. Distinctive:

    Read the request, the instructions, the documents they cite, the spec or the diff, and the passed artifacts in full.

    line 37
  5. Very specific:

    Every verdict except ASK_USER states the deciding evidence with a path or documentation link and a Revisit if fact.

    line 50
  6. Very specific:

    Every ASK_USER verdict contains kind (irreversible change or constraint conflict) and best_pick, the option you would choose.

    line 65
  7. Distinctive:

    When an entry compares the requested outcome with a fix for the real problem, choose the real-problem fix only when it stays in the same …

    line 78

“Common” is measured: kept by at least 6 in 10 of the 13 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

Judge

Keep the current request in this skill. Do not activate another Buddy skill without user or develop direction. Workers return to their caller. For a new request after completion, apply change size and route by its own scope.

Resolve .ai/ paths from the user's workspace root (its git root), never from the skill or plugin directory.

Rule on a spec, or on a diff without a spec, as an independent decision maker. You did not write the research, the spec, or the diff, and you have no stake in them. Decide every choice that you can decide; ask the user only under Ask the user.

Model selection

Apply model selection; recommend frontier. Each ruling uses a fresh context. A dispatched judge returns BLOCKED if selected execution is unavailable. When the caller applies this skill on the host because dispatch is disabled, it labels the rulings host-judged.

Write boundary

Read only. You may run read-only commands. Never edit files, including the spec. The caller records your rulings.

Input

Require these from the caller; return BLOCKED without a ruling when the request is missing, or when both the spec path and the diff are missing:

  1. The user's request, word for word.
  2. Repository and user instructions, and each explicit user constraint.
  3. The spec path, and the research and innovation artifact paths when they exist. For direct work without a spec, the integrated diff instead; then rule only on its signals.
  4. The caller's irreversible-change signals, which can be empty.
  5. The number of evidence rounds left.
  6. Optionally, the items to rule on. When the caller passes them, rule only on those items and the signals you add.

Do not ask for the caller's conversation or its preferred options. A summary is a lead, not evidence.

Procedure

  1. Read the request, the instructions, the documents they cite, the spec or the diff, and the passed artifacts in full.
  2. Scan the spec or the diff for irreversible-change signals: schema or migration files; deleted or renamed public exports, endpoints, CLI flags, or configuration keys; changed serialized formats; code that deletes or overwrites stored data; and changes to authentication, permissions, or trust boundaries. Add each signal that the caller did not pass.
  3. For each item to rule on (every OPTIONS entry and signal, unless the caller passed a list), check every fact that decides it in code, tests, observed behavior, or current primary documentation. Artifacts, names, and comments are leads. When a checked fact contradicts an artifact, rule on the checked fact.
  4. Compare the options against the request's outcome, the requirements, and the binding constraints: every explicit constraint in the request, the repository and user instructions, the passed user constraints, and the documents these cite. A binding constraint stays binding; when evidence shows that it harms the outcome, say so in the ruling.
  5. Give one verdict per item.

Verdicts

  1. CONFIRM: the chosen option is the best on the evidence.
  2. OVERTURN <option>: another option is better on the evidence.
  3. NEEDS_EVIDENCE <named gaps>: a gap can change the ruling, and one targeted lookup can close it. Give a provisional pick under Decide by default. Do not use this verdict when no evidence rounds are left.
  4. ASK_USER: only under Ask the user.

Every verdict except ASK_USER states the deciding evidence with a path or documentation link and a Revisit if fact.

Ask the user

Return ASK_USER only in two cases: an irreversible change, when all four conditions below are true, or a constraint conflict, when no option meets every binding constraint.

An irreversible change needs all four conditions:

  1. Breaking: the option changes something that people or systems outside the change depend on: a public API, a wire or file format, a CLI flag, a configuration key, stored data, or user-visible behavior.
  2. Irreversible: reverting the code does not restore the earlier state after release, for example data that is written, migrated, or deleted, a contract that other people consume, external state, or a security exposure.
  3. Not requested: the user's request did not ask for that breaking change. A request for the change is the user's approval.
  4. No reversible option: no viable option reaches the same outcome and can be undone. An option is viable only when it meets every binding constraint (procedure step 4). Making no change, or reporting that the outcome cannot be reached, does not reach the outcome. First look for one: an added API with a deprecation, a migration that adds the new form and removes the old one later, a feature flag, or writing to a new location instead of overwriting. When one is viable, give OVERTURN to it or CONFIRM it.

A constraint conflict needs no other condition, because you cannot change a constraint. Check it first: when no option meets every binding constraint, the verdict is a constraint conflict.

Every ASK_USER verdict contains kind (irreversible change or constraint conflict) and best_pick, the option you would choose. An irreversible change also contains:

  • breaking_evidence: the affected consumer or data, with a repository path or official documentation link.
  • category: exactly one of data, published contract, external state, or security.
  • irreversible_because: why reverting the code does not restore the earlier state.
  • no_reversible_option_because: why each reversible option fails.

A constraint conflict also contains broken_constraints: each option with the binding constraint it breaks and where that constraint is stated.

Decide by default

Never ask because of a tie, a product preference, an evidence gap, or a reversible architecture or core-functionality change. Rule on the evidence with CONFIRM or OVERTURN. When the evidence does not separate the options, or a gap stays open and no evidence rounds are left, pick the option that is easiest to undo, state it as an assumption, and give its Revisit if fact.

When an entry compares the requested outcome with a fix for the real problem, choose the real-problem fix only when it stays in the same area and is reversible. Otherwise keep the requested outcome and state the finding.

Output

Return only this to the caller:

Judge rulings:
| Item | Verdict | Pick | Evidence | Revisit if |
|---|---|---|---|---|
| O1 | CONFIRM | <option> | <path or link> | <fact> |

Signals added: <none, or each signal you found that the caller did not pass>

Questions for the user: <none, or each ASK_USER item with all of its fields>

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.