finding-to-audit
Skill0 starsChanged 32 days agoMITView on GitHub
Promote a review finding into a pre-commit audit rule that catches the diff-inspectable issue class (import direction, pub widening, debug artifacts, dropped FFI output). Companion to bug-to-contract.
In this repository33 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- authoritative-text-rulesSkill
- breachreaperSkill
- bug-to-contractSkill
- code-review-gateSkill
- codex-contract-test-reviewSkill
- codex-plan-reviewSkill
- codex-reviewSkill
- copilot-reviewSkill
- debtreaperSkill
- diff-rootSkill
- docreaperSkill
- done-checkSkill
- driftreaperSkill
- file-adrSkill
- file-issueSkill
- file-pubdocSkill
- file-pullreqSkill
- finding-triageSkill
- gate-miss-to-issueSkill
- gh-body-auditSkill
- gh-body-conventionsSkill
- implementSkill
- land-via-integration-branchSkill
- quality-listSkill
- read-issueSkill
- reimreSkill
- research-and-implementSkill
- researchSkill
- review-pipelineSkill
- review-telemetrySkill
- stage-commit-pushSkill
- todo-checkSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
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
- Distinctive: line 32
Import direction violation (lower module imports from higher)
- Distinctive: line 50
If no host fits, scaffold a new audit skill rather than forcing the rule into an unrelated one.
- Very specific: line 54
Use the host's existing format, read from a sibling item in that host.
- Distinctive: line 90
If the same issue class has surfaced more than once historically, strengthen the rule (tighter conditions, additional concern signals) …
≈ “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.
Files
Finding-to-Audit
Inputs
The fix-commit lane uses a root on diff-root's consumer contract, halt included; the review-findings lane uses none.
| Input | What to collect |
| Review findings | Actionable findings that resulted in code changes — the reviewer's framing of the issue |
| Fix commits | Branch commits whose subject signals a fix: git log <root-rev>..HEAD --oneline --grep="fix" -i, then git show <sha> |
Procedure
1. Collect signals
For each finding or fix, note what the issue was and what changed.
2. Classify
Would a structured inspection of the diff have caught it?
- Yes → continue here.
- No, only runtime testing would → switch to
bug-to-contract.
Examples that fit this skill:
- Import direction violation (lower module imports from higher)
pubexposed beyond what the architectural rule allows- Missing standard trait impl on a public type (e.g.
Display,std::error::Error,Send/Syncon a public error) - New behavior added but no test reads its outputs
- Hardcoded constant that should be a parameter
- Debug artifact (
dbg!, traceprintln!, commented-out code) - FFI output channel silently dropped
- Public enum without
#[non_exhaustive]where future variants are expected
3. Identify the host audit skill
| Concern | Host |
| Universal code quality | quality-list |
| Quality of text the agent executes as instructions | authoritative-text-rules |
| FFI safe-wrapper rules | rust-ffi-rule (or language-specific equivalent) |
| Other domain-specific audit | The matching skill |
If no host fits, scaffold a new audit skill rather than forcing the rule into an unrelated one.
4. Draft the rule
Use the host's existing format, read from a sibling item in that host. For a rule-set SSOT, an item is its own file under the SSOT's items/ directory, added to the SSOT's Items index in the same change, and shaped:
# <Item name>
<rule description: what to check, in 1–2 sentences>
**Concern conditions:**
- <specific diff-inspectable signal>
- ...
**N/A:** <when the rule does not apply>A host may require more, in the body and in the index entry alike — quality-list tags each index entry with the lane that routes it, and authoritative-text-rules items additionally carry a Trigger, a Sweep the auditor executes, and a tie-break against sibling items. The sibling entry and sibling body you read are the authority on which parts are required; an item whose index entry omits what its host's runners select on is reachable by no lane.
The rule must be diff-inspectable — verifiable against git diff output, file paths, or grep, without running the code. If the check requires execution, it belongs in bug-to-contract.
5. Land the rule
Promoting a finding to a rule is a proposal to be reviewed, not an edit to apply from wherever the finding surfaced.
Default — file an issue against the host skill's repository via file-issue, handing it:
- Host (proposed) — the host from step 3 (
quality-list,authoritative-text-rules,rust-ffi-rule, or a new skill); a hypothesis the issue confirms or redirects. - Finding — what the review caught and where the fix landed; link the work-repo PR / issue for provenance.
- Issue class — the generalizable diff-inspectable class, not the one token that slipped.
- Proposed rule — the step-4 draft (item name, concern conditions, N/A carve-out).
The rule then lands as a reviewed change in that repository. On recurrence of a class that already has an open proposal, comment on it instead of filing a duplicate.
Escape hatch — edit the host skill directly only when filing is inappropriate: a skill not under version control, or an explicit opt-in for the case at hand. The same failure-mode-plus-proposal content still travels with the change (e.g. in the PR body). Update any output tables in the host file.
6. Backfill check
If the same issue class has surfaced more than once historically, strengthen the rule (tighter conditions, additional concern signals) rather than relying on a single occurrence.
Principles
- General over specific. The rule catches the bug class, not the reviewer's exact wording.
- Extend before adding. Strengthening an existing audit item is preferable to adding a new one unless the topic is orthogonal to all existing items.
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
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.

