agentleFS
emaraschioemaraschio/cursor-commands/.cursor/skill-contracts/decision-audit/SKILL.md

decision-audit

Skill9 starsChanged 3 months agoMITView on GitHub

Post-build decision ledger and pride gate: list meaningful agent choices and assumptions after work has landed, with why, alternatives, and confidence; flag debt and edge cases; do not change code until the user says revise now. Use when the user invokes /decision-audit or asks for a post-execution decision audit or choice autopsy.

2 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

12 rules. About 0 are common, 12 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈12

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run phases in order. Do not publish the ledger until evidence is gathered.

    line 28
  2. Distinctive:

    If no scope hint, default to the full session or current branch when a repo is present.

    line 33
  3. Distinctive:

    If the user invokes mid-task with no finished work yet, say so and stop or ask whether to wait.

    line 34
  4. Distinctive:

    Files: only artifacts in scope that still reflect the chosen design

    line 42
  5. Distinctive:

    Do not invent decisions that have no support in conversation or diff.

    line 44
  6. Distinctive:

    Keep the ledger short enough to review.

    line 60
  7. Distinctive:

    Do not invent facts. If nothing is known, say so explicitly.

    line 70
  8. Distinctive:

    Ask the human two explicit yes/no questions.

    line 74
  9. Distinctive:

    Do not start edits, commits, destructive git, or PR creation in this turn.

    line 87
  10. Distinctive:

    No secrets, tokens, PII, or PHI in the ledger body.

    line 121
  11. Distinctive:

    Do not invent decisions or debt without evidence.

    line 122
  12. Distinctive:

    Always ask the pride gate: Ask whether the human is proud of the branch and would stand behind it in production.

    line 136

≈ “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

Decision audit

Role

You produce a post-execution decision ledger for work already completed in scope. You surface meaningful choices and assumptions the agent made, not a line-by-line code review. You end with a pride gate and a halt: do not change code, commit, or open a PR in the same turn. Ledger approval is not revise permission; wait for revise now (with targets).

When to use

Use when the user invokes /decision-audit, asks for a decision audit, choice ledger, or pride gate after a build, or wants a judgment autopsy of what the agent chose. For productivity and value accounting, use agent-work-receipt. For diff quality before approve, use code-review or light-review-existing-diffs. For pre-build assumption surfacing, use blind-spot-pass or define-agent-goal.

Audit charter

Audit judgment after the agent has already chosen. List meaningful decisions only. Do not invent choices without evidence. Do not change code until revise now.

Workflow

Run phases in order. Do not publish the ledger until evidence is gathered. Do not revise code in this turn.

Phase 0: Intake

  1. Parse a scope hint from the user message (e.g. "decision audit for the auth refactor on branch-1").
  2. If no scope hint, default to the full session or current branch when a repo is present.
  3. If the user invokes mid-task with no finished work yet, say so and stop or ask whether to wait. Do not hallucinate a ledger of completed decisions.

Phase 1: Evidence

Gather read-only evidence:

  • Conversation: what the user asked for, what the agent chose, what was rejected or deferred
  • Git (when a repo is present): git status, git diff, git log to ground landed choices
  • Files: only artifacts in scope that still reflect the chosen design

Do not invent decisions that have no support in conversation or diff. Prefer "none recorded" for alternatives when the session never considered them.

Phase 2: Ledger

List meaningful choices only. Include architecture, API shape, library picks, error-handling strategy, naming that locks an API, skipped tests, deferred work, and similar judgment calls. Skip trivial formatting noise and mechanical renames unless they lock a public contract.

For each choice, populate:

FieldContent
DecisionWhat was chosen
WhyShort rationale grounded in evidence
AlternativesWhat else was considered, or none recorded
Confidencehigh / med / low
Localityexample-local (fits this case only) or generalizable

Keep the ledger short enough to review. Prefer fewer high-leverage rows over a dump of every micro-choice.

Phase 3: Debt and edges

From the same evidence, list:

  • Known debt tied to the choices (TODOs left in, shortcuts, missing tests)
  • Unhandled edge cases the choices imply
  • Blast notes (what else might break or need follow-up if these choices stand)

Do not invent facts. If nothing is known, say so explicitly.

Phase 4: Pride gate

Ask the human two explicit yes/no questions. Do not soft-sell ship readiness:

  1. Are you proud of this branch (or scoped work)?
  2. Would you stand behind it in production as it is?

Record that answers are for the human; do not answer for them.

Phase 5: Halt

End with this handshake (adapt wording only if needed; keep the meaning):

Approve or edit this ledger before I revise. Ledger approval is not revise permission. Say revise now (with targets) to change code.

Do not start edits, commits, destructive git, or PR creation in this turn. If the user says "just fix it" without revise now, stay on the audit contract and remind them of the halt phrase.

Deliverable template

# Decision audit

## 1. Decision ledger

| Decision | Why | Alternatives | Confidence | Locality |
|----------|-----|--------------|------------|----------|
| ... | ... | none recorded / ... | high/med/low | example-local / generalizable |

## 2. Debt and edge cases

- Known debt: ...
- Unhandled edges: ...
- Blast notes: ...

## 3. Pride gate

1. Proud of this branch / scoped work? (yes/no for the human)
2. Stand behind it in production as it is? (yes/no for the human)

## 4. Halt

Approve or edit this ledger before I revise. Ledger approval is not revise permission. Say **revise now** (with targets) to change code.

Populate every section. Prefer a compact table or short bullets over vague prose.

Safety

  • Audit only: no new implementation, commits, PR creation, or destructive commands unless the user explicitly says revise now (with targets) in a follow-up that authorizes changes.
  • No secrets, tokens, PII, or PHI in the ledger body; redact if present in context.
  • Do not invent decisions or debt without evidence.

Distinction from other commands

  • agent-work-receipt: productivity, time estimates, and value tiers after a session. This skill audits judgment (choices, confidence, pride gate), not output accounting.
  • code-review / light-review-existing-diffs: diff quality and approve/reject signals. This skill is a choice autopsy, not a line-by-line review.
  • blind-spot-pass: pre-build four-quadrant fog map of the ask. This skill runs after execution.
  • define-agent-goal: forward six-part Goal before autonomous work. This skill is backward decision review after work.

Guardrails

  • Ledger of choices, not a line-by-line review. List meaningful choices (architecture, API shape, libraries, deferred work) with why, alternatives, and confidence.
  • Stay audit-only until revise now. Deliver the audit and wait for an explicit revise now (with targets).
  • Ground decisions in evidence. Cite session or git evidence, or mark confidence low / none recorded.
  • Always ask the pride gate. Ask whether the human is proud of the branch and would stand behind it in production.
  • Stop when nothing has landed. State nothing finished, stop or ask whether to wait; do not hallucinate a ledger.

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.