audit-fix-loop
Skill1.5k starsChanged 4 days agoMITView on GitHub
Runs the full multi-agent audit workflow on this repo, fixes every issue, re-audits until Architecture, Correctness risk, and Complexity debt are all grade A, then commits via git-commit. When starting each loop, invoke `elon-musk` to test architecture, cost, and simplicity assumptions first. Use ONLY when the user explicitly invokes audit-fix-loop, $audit-fix-loop, or “use audit-fix-loop”—not for standalone audits, plan execution, or implicit routing. Does not replace phase-audit or deploy gates.
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 4 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
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
- Distinctive: line 18
Use this skill as the repo’s “audit-fix-hardcore” path.
- Very specific: line 53
If audit-fix-loop was only inferred from vague wording—stop before fixes or commit and confirm intent.
- Distinctive: line 69
Pass condition: all three grades are A. If mechanical checks fail, treat failures as P0 and fix before accepting any A.
- Distinctive: line 79
Stuck loop: After complete cycles, if A / A / A is blocked by a product or architecture tradeoff, stop, report grades and the blocker, and …
- Very specific: line 83
Final commit: When step 5 passes, run git-commit once for all changes produced by the loop (subject/body per git-commit.
- Very specific: line 89
Do not grade-inflate; audit rubric applies.
- Distinctive: line 90
Do not lower thresholds to reach A—raise quality.
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 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
Audit–Fix Loop
Purpose
Use this skill as the repo’s “audit-fix-hardcore” path.
Audit → fix everything → audit again in a loop until the audit rubric
shows A for Architecture, Correctness risk, and Complexity debt,
then one final git-commit for the accumulated fixes.
Use When
- The user explicitly invokes
audit-fix-loop,$audit-fix-loop, or clearly asks to use audit-fix-loop (same intent boundary asexecute-plan-hardcore—no implicit routing).
Do Not Use When
- The user only asked for a read-only audit—use
audit. - The user is executing a checked-in plan and wants the hardcore gate after
plan work—prefer
execute-plan-hardcore. - A single phase needs plan rubric review—use
phase-audit. - Git writes are forbidden and nothing overrides that.
Authority Model
Explicit invocation of audit-fix-loop authorizes:
- Running the full
auditprocedure as part of this skill even if the current message does not contain the substringaudit—this skill is the explicit request for audit and implementation fixes until grades reach A (overridesaudit’s default “surface only unless asked” rule for this workflow only). - Multiple audit cycles with multi-agent depth per
audit(parallelTaskcharters when the harness supports it; sequential charters when not). git-commitonce after A / A / A is achieved, followinggit-commitstaging and message rules (whole-tree default unless the user narrows scope).
If audit-fix-loop was only inferred from vague wording—stop before
fixes or commit and confirm intent.
Procedure
- Establish scope once (whole repo, paths, diff, or feature)—same table as
audit. State it in each audit report header. - Audit pass (read + grade): Invoke
elon-muskfirst on the scoped work, then followauditend-to-end:- Mechanical signals from repo root for Python:
ruff check .,ruff format --check .; addpytest -q -m "not slow"(or CI’s test list) when needed for confidence. - Delegate multiple readonly charters when depth warrants it (when in
doubt, parallelize per
audit). - Merge, dedupe, assign P0–P3 severities, and Architecture / Correctness risk / Complexity debt grades (A–F).
- Mechanical signals from repo root for Python:
- Pass condition: all three grades are A. If mechanical checks fail, treat failures as P0 and fix before accepting any A.
- If any grade is below A: fix all issues that block A (prioritize P0/P1 and mechanical failures). Re-run targeted checks; iterate code until ready for a fresh audit.
- Loop: Return to step 2 with a full audit pass (not only a spot-check) until A / A / A. Re-scope if the diff or risk surface grew.
- Stuck loop: After complete cycles, if A / A / A is blocked by a product or architecture tradeoff, stop, report grades and the blocker, and ask the user—do not spin forever.
- Final commit: When step 5 passes, run
git-commitonce for all changes produced by the loop (subject/body pergit-commit; whole-tree staging unless the user specified otherwise).
Boundaries
- Do not grade-inflate;
auditrubric applies. - Do not lower thresholds to reach A—raise quality.
git-commitruns after grades are A / A / A, not after the first audit pass unless the first pass already meets A (still followgit-commitfor recording).
Relation to Other Skills
audit: Defines the audit procedure, charters, mechanical checks, and grading;audit-fix-loopadds mandatory fix iterations and a final commit.execute-plan-hardcore: Plan execution plus audit-to-A gate;audit-fix-loopis only the audit–fix–commit loop (no plan phases).git-commit: Final step; post-commit behavior ingit-commitis not a substitute for step 2 above.
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- xingfanxia/AX-skills★ 4same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository20 other files it gives its agents.
- audit-fix-hardcoreSkill
- auditSkill
- build-vs-buySkill
- create-planSkill
- create-skillSkill
- debugSkill
- deploySkill
- documentationSkill
- elon-muskSkill
- execute-plan-hardcoreSkill
- execute-planSkill
- git-commitSkill
- git-pushSkill
- guide-ingestSkill
- ilya-sutskeverSkill
- markdownSkill
- phase-auditSkill
- research-debuggingSkill
- research-planningSkill
- write-notesSkill
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.

