agentleFS
youmissedaspotyoumissedaspot/ymas-agent-workflows/skills/audit-repair/SKILL.md

audit-repair

Skill1 starsChanged 46 days agoMITView on GitHub

Audit, investigate, or repair a target supplied by the user's request or clearly established conversation, using governing requirements and evidence. Do not choose a target from repository state; a bare invocation without a conversational target requires asking for scope.

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 5 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    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. Very specific:

    Use when asked to audit, investigate a failed verification, or repair a demonstrated defect.

    line 8
  2. Distinctive:

    Do not select an audit target merely because it appears in:

    line 16
  3. Distinctive:

    If no target can be established from the user's request or current conversation, ask for the target or scope.

    line 35
  4. Distinctive:

    Before substantial specification, architecture or implementation, demonstrate a concise Understanding Check after relevant inspection and …

    line 59
  5. Distinctive:

    Before editing after a verified failure, state the failed unit, expected behavior, observed behavior, evidence, allowed repair scope, and …

    line 67
  6. Distinctive:

    Use the existing execution loop for applicable durable updates and source receipts for consequential review/integration evidence.

    line 75

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

Audit and repair

Use when asked to audit, investigate a failed verification, or repair a demonstrated defect. For initial bug intake and durable bug records, use bug-knowledge.

Target Selection Rule

audit-repair requires an audit or repair target supplied by the user's current request or clearly established conversational context.

Repository artifacts may help scope and understand that target, but they must not independently create it.

Do not select an audit target merely because it appears in:

  • OPS_NEXT_###
  • OPS_STATE_###
  • latest task records
  • open bug records
  • failing tests
  • recent commits
  • TODOs
  • backlog items
  • roadmap documents
  • other repository state

A bare invocation such as:

$audit-repair

with no clear current conversational target must not trigger an autonomous repository audit.

If no target can be established from the user's request or current conversation, ask for the target or scope.

Good inference:

The user says:

The shipbuilding integration evidence looks incomplete.

and then invokes:

$audit-repair

The skill may use shipbuilding as the target.

Not allowed:

The user invokes:

$audit-repair

with no task context, and the agent selects the highest OPS_NEXT_### or another repository artifact as the audit target.

Repository state is evidence and context, not user intent.

Before substantial specification, architecture or implementation, demonstrate a concise Understanding Check after relevant inspection and before proposing implementation. Keep trivial explicitly authorized work proportional; this is not a new approval gate.

For a requested whole-project audit or comparison of audit reports, use audit coverage and reconciliation. A whole-project request supplies a valid target; choose applicable risks and disclose coverage without imposing every domain checklist. Audit-only scope does not authorize repairs.

Workflow

  1. Bootstrap into the repository: read applicable instructions, governing authority, current context, affected implementation and tests. Treat documented requirements and inferred expectations separately. An adopted Feature Map can locate governing clauses, actual entrypoints and maintained scenarios; inspect originals and freshness. It does not create an audit target or acceptance authority. Inspect relevant Git history when a behavior's purpose is non-obvious.
  2. Report findings with precise evidence and affected boundary. Separate consequence/severity from evidence confidence: reproduced behavior, static evidence, hypothesis or unverified claim. Distinguish implementation defects, fixture/environment failures and specification/authority gaps; use the finding guidance. Do not create a requirement from a surprising observation alone.
  3. Before editing after a verified failure, state the failed unit, expected behavior, observed behavior, evidence, allowed repair scope, and boundaries to preserve.
  4. Repair the smallest unit that explains the failure. Keep neighboring correct behavior intact; avoid unrelated cleanup. A meaningful architecture discrepancy stops expansion and returns to the smallest planning/specification owner immediately, even before three failed repairs; do not quietly change architecture to make the repair work.
  5. For an authorized confirmed repair, retain the original failure and use or add its smallest meaningful regression scenario. Rerun that reproduction and relevant verification using maintained tools/scenarios where available; report actual results and unresolved limits. Promote repeated nontrivial verification where warranted. Update only affected map/tool entries after relevant changes, preserving correct neighbors. For changed shared contracts, verify affected caller lifecycles. Stop a known blocker or denied action immediately; do not retry or route it through another tool or worker. Retain the failed unit, valid reproduction, cause class, source change and attempt count. If the same narrowly scoped unit fails three repair attempts, stop patching and reconsider specification interpretation, task decomposition, authority, architecture, and implementation strategy before a fourth attempt.

In the completion report, distinguish what was implemented, what was verified, tests run, observed results, and any remaining manual acceptance. Compilation or green unit tests establish only what they actually cover.

For authorized code repairs, apply the no-code-comments rule and its verification check. Preserve useful reasoning in the owning specification; do not expand a repair into unrelated comment cleanup.

Use the existing execution loop for applicable durable updates and source receipts for consequential review/integration evidence. These links add no publication authority or mandatory record triad.

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.