agentleFS
ultimatileultimatile/development-skills/skills/finding-to-audit/SKILL.md

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.

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
  1. Distinctive:

    Import direction violation (lower module imports from higher)

    line 32
  2. Distinctive:

    If no host fits, scaffold a new audit skill rather than forcing the rule into an unrelated one.

    line 50
  3. Very specific:

    Use the host's existing format, read from a sibling item in that host.

    line 54
  4. Distinctive:

    If the same issue class has surfaced more than once historically, strengthen the rule (tighter conditions, additional concern signals) …

    line 90

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

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.

InputWhat to collect
Review findingsActionable findings that resulted in code changes — the reviewer's framing of the issue
Fix commitsBranch 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)
  • pub exposed beyond what the architectural rule allows
  • Missing standard trait impl on a public type (e.g. Display, std::error::Error, Send/Sync on a public error)
  • New behavior added but no test reads its outputs
  • Hardcoded constant that should be a parameter
  • Debug artifact (dbg!, trace println!, commented-out code)
  • FFI output channel silently dropped
  • Public enum without #[non_exhaustive] where future variants are expected

3. Identify the host audit skill

ConcernHost
Universal code qualityquality-list
Quality of text the agent executes as instructionsauthoritative-text-rules
FFI safe-wrapper rulesrust-ffi-rule (or language-specific equivalent)
Other domain-specific auditThe 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.

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.