audit-and-fix
Skill0 starsChanged 2 months agoMITView on GitHub
Run an audit-then-implement pipeline: produce an audit, cluster findings into PR-sized chunks, and spawn parallel subagents to implement fixes as draft PRs. Triggers on: "audit and fix", "clean up domain", "overnight cleanup".
1 other project uses a version of this.
Adopted by
Most recently taken up by
- nelsonwerd/idea-to-ship-skillstheir own version, first seen Jun 11, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- nelsonwerd/idea-to-ship-skills★ 85same 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 repository48 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- changelogSkill
- dependabot-sweepSkill
- markdownSkill
- merge-prSkill
- pre-prSkill
- pr-tldrSkill
- tldrSkill
- agents-searchSkill
- aws-specialistSkill
- azure-specialistSkill
- code-simplifierSkill
- create-assessmentSkill
- create-auditSkill
- create-experimentSkill
- create-inspectionSkill
- crossplane-specialistSkill
- deploy-statusSkill
- detect-flakySkill
- fix-with-evidenceSkill
- flyctlSkill
- gcp-specialistSkill
- gitSkill
- ground-firstSkill
- handoffSkill
- kubernetes-specialistSkill
- local-attestSkill
- plan-graderSkill
- post-pr-reviewSkill
- pr-conductorSkill
- project-syncSkill
- pulumi-specialistSkill
- quality-reviewSkill
- release-conductorSkill
- reproduce-bugSkill
- review-prSkill
- review-prsSkill
- rollback-prodSkill
- security-auditSkill
- security-reviewSkill
- smoke-testSkill
- specSkill
- terraform-specialistSkill
- terragrunt-specialistSkill
- validate-specSkill
- veracity-auditSkill
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 9 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
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
- could be automatic: a setting could enforce it
- Distinctive: line 21
Run a long-horizon audit-then-implement pipeline: produce a structured audit, cluster findings into PR-sized chunks, and spawn parallel …
- Distinctive: line 31
Cluster findings into PR groups: Read the audit's Issues table and group findings by:
- Very specific: line 56
Dispatch parallel cluster implementers: Use the Agent tool with subagent_type: "general-purpose" in a single message with multiple tool …
- Distinctive: line 62
Monitor and update the status file: every 5 minutes while subagents run.
- Very specific: line 64
Post the final summary table: when all clusters reach ready or blocked:
- Very specific: line 71
Do not merge. The user decides which PRs to merge (use /merge-pr per PR).
- Distinctive: line 75
Never merge. This command produces draft PRs only.
- Distinctive: line 76
Never force-push. Never use destructive git operations in subagents.
- Distinctive: line 77
If a worktree path disappears mid-run, recreate it — do not fail the whole run.
- Distinctive: line 79
Every draft PR must include the audit file path in its Summary section so reviewers can trace the finding.
- Distinctive: line 80
Keep the status file updated even on failures — silence is worse than partial information.
- Distinctive: line 81
If clustering produces more than 8 PRs, STOP and ask the user to narrow the audit scope.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
Run a long-horizon audit-then-implement pipeline: produce a structured audit, cluster findings into PR-sized chunks, and spawn parallel subagents to implement fixes as draft PRs.
Trigger: when the user asks for "audit and fix", wants to clean up a domain, or kicks off an overnight cleanup run. Also triggered directly via /audit-and-fix <domain>.
Arguments: $ARGUMENTS — the audit domain (e.g. "hardcoded business logic", "unused exports in moneyballer/pkg/db", "deprecated Storage API calls"). Required — if empty, ask the user.
Steps
- Run the audit. Invoke the
/create-auditskill. This producesdocs/audits/<topic-slug>-<YYYY-MM-DD>.mdwith Findings and Issues tables. Commit the audit file on a new branchaudit/<topic-slug>-<date>and push. Cluster findings into PR groups. Read the audit's Issues table and group findings by:
- Same file or package → same cluster
- Same severity AND same fix pattern → same cluster
- Cross-cutting infra changes (test harness, CI config) → their own cluster
Produce 4–8 clusters, not 30 single-finding PRs. Each cluster is one PR. Print the clustering plan as a table before dispatching:
Cluster Findings Blast Radius Recommended Title 1 3 low "Remove unused exports in pkg/db" Initialize the status file.
# Audit-and-Fix Status — <topic> — <YYYY-MM-DD> Audit: docs/audits/<topic-slug>-<date>.md | Cluster | PR | Branch | State | Last Update | | ------- | --- | ------ | ------- | ----------- | | 1 | — | — | pending | <timestamp> |Write to
docs/audits/<topic-slug>-<date>-status.md.- Dispatch parallel cluster implementers. Use the
Agenttool withsubagent_type: "general-purpose"in a single message with multiple tool calls — one agent per cluster, cap at 6 concurrent. Each subagent receives:- The audit file path and the specific findings in its cluster
- Instructions: create a worktree off
main, implement the fixes, write or update tests, open a draft PR with required sections (Summary, Test plan, Spec ID if applicable), wait for CI, address Copilot comments autonomously - A strict rule: never merge. Leave the PR as draft when done.
- Required output:
{cluster, pr_url, branch, final_state}wherefinal_state ∈ {ready, ci-failing, review-pending, blocked}
- Monitor and update the status file every 5 minutes while subagents run. For each cluster, record: PR URL, branch, current state, last-update timestamp. If a subagent fails (worktree disappears, CI times out), mark its cluster
blockedand record the reason rather than retrying silently. Post the final summary table when all clusters reach
readyorblocked:Cluster PR State Notes 1 #201 ready 0 Copilot comments 2 #202 blocked rebase conflict on pkg/foo.go Do not merge. The user decides which PRs to merge (use
/merge-prper PR).
Rules
- Never merge. This command produces draft PRs only.
- Never force-push. Never use destructive git operations in subagents.
- If a worktree path disappears mid-run, recreate it — do not fail the whole run.
- Cap parallelism at 6 concurrent subagents. Batch the rest.
- Every draft PR must include the audit file path in its Summary section so reviewers can trace the finding.
- Keep the status file updated even on failures — silence is worse than partial information.
- If clustering produces more than 8 PRs, STOP and ask the user to narrow the audit scope.
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.

