agentleFS
Sagargupta16Sagargupta16/agent-brain/skills/fix-all/SKILL.md

fix-all

Skill2 starsChanged 11 days agoMITView on GitHub

The enumerate-first sweep. List every open finding for a repo or PR (failing CI checks, SonarCloud issues new and inherited, Copilot and reviewer comments, Dependabot and CodeQL alerts, lint and type errors, failing tests, known-problems sections) and print the counts before touching anything, then fix them in dependency order without changing behavior, re-running the relevant check after each group, and report fixed N/N against the initial counts. Use when the user says "fix all", "fix a to z", "each and every", "fix whatever required", "until all fixed", "all findings", "loose ends", or "fix all without breaking anything". Never stops at the first few matches, never removes a feature or UI to silence a finding, never reports "fixed the issues" without numerator and denominator, and never adds tests, docs or refactors that were not asked for.

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. cloudposse/atmos★ 1.4ksame 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 repository16 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 7 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Don't-remove-unasked: existing UI, content and features stay

    line 32
  2. Distinctive:

    Never stop before the enumeration table is complete, and never fix before printing it.

    line 103
  3. Distinctive:

    Never remove existing UI, content, footers, credits or features to make a finding disappear.

    line 105
  4. Distinctive:

    Never report a fix without the before and after counts from a re-run check.

    line 107
  5. Distinctive:

    Never add tests, docs, refactors or "while I was here" changes that were not asked for.

    line 108
  6. Distinctive:

    Never silence a rule to reach zero.

    line 110
  7. Distinctive:

    Never run when the user said to skip the quality gates and focus on the feature (for example "not sonar, just focus on the UI").

    line 111

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

fix-all

"fix all" is a common opening phrase and the most common failure is the half sweep: the agent fixes the first page or the first few findings and stops, and the user comes back with "scan each and every page, not just 1 and 2" or "I still see a lot of findings in the PR, old and new, fix each and every one". This skill owns the loop.

Read first

  • Your user-level honesty rules: for sweep/audit tasks, enumerate the full match set first, then report progress against that count
  • Stale snapshot lists: re-derive the worklist from live data before each chunk; a script's own "0 remaining" is not proof
  • Don't-remove-unasked: existing UI, content and features stay
  • Repo CLAUDE.md for the test, lint and build commands that count as checks here

Step 1: enumerate, print, do not touch

Collect every source that applies to the repo or PR and print one table before any edit. A source with zero findings is still a row.

SourceHow to enumerate
CI checksgh pr checks <n> or gh run list --branch <b> --limit 5; failing job logs via gh run view <id> --log-failed
SonarCloudPR check details link, or the SonarCloud API for the project key; count by rule and severity, new vs inherited
Review commentsgh api repos/<r>/pulls/<n>/comments and gh api repos/<r>/pulls/<n>/reviews; Copilot and human, unresolved only
Dependabotgh api repos/<r>/dependabot/alerts?state=open
CodeQLgh api repos/<r>/code-scanning/alerts?state=open
Lint and typethe repo's own scripts (pnpm lint, pnpm type-check, ruff check ., uv run mypy); count errors, not files
Teststhe repo's own test command; count failing tests
Known problemsany current_problems, Known issues or TODO section the user pointed at
| source | count | scope |
| CI checks | 2 failing | build, python |
| SonarCloud | 47 (44 new, 3 inherited) | S3776 x12, S1854 x9, ... |
| review comments | 6 unresolved | Copilot 4, human 2 |
| Dependabot | 0 | |
| CodeQL | 1 | js/incomplete-sanitization |
| lint + type | 13 | eslint 9, tsc 4 |
| tests | 0 failing | 59 pass |
TOTAL 69

Step 2: fix in dependency order

Build-breaking first, then tests, then lint and type, then security alerts, then quality findings, then review comments. After each group re-run only the check that group affects and record the new count. Rules while fixing:

  • Behavior-preserving. A finding is fixed by correcting the code, never by deleting the feature, hiding the UI, downgrading the rule, adding eslint-disable, # noqa, NOSONAR, or marking won't-fix in a dashboard.
  • Prod-aware. When the user says it is a production environment and to be careful, no data migrations and no schema changes inside the sweep; list them separately.
  • Same branch, same PR. One work stream per PR; do not open a second PR to hold the fixes.
  • Two failed attempts at one finding: stop iterating on it, list the finding with what was tried, move on. Report it in the leftover list.
  • Re-derive before each group: the initial counts are a baseline, not the worklist. Query the source again so findings that appeared since are caught.

Step 3: report against the baseline

| source | before | after | fixed | left |
| CI checks | 2 | 0 | 2/2 | - |
| SonarCloud | 47 | 3 | 44/47 | S3776 in legacy/parser.ts x3 (complexity split would change behavior; listed for review) |
| review comments | 6 | 0 | 6/6 | - |
| CodeQL | 1 | 0 | 1/1 | - |
| lint + type | 13 | 0 | 13/13 | - |
TOTAL 69 -> 3, fixed 66/69

verified by: <the exact commands re-run and their final output line>
not done on purpose: <features not asked for, tests not asked for>

Then, only if the message asked for it, hand to ship ("fix all and merge", "push and create PR"). Otherwise stop with the branch pushed and the receipt.

Must not

  • Never stop before the enumeration table is complete, and never fix before printing it.
  • Never remove existing UI, content, footers, credits or features to make a finding disappear.
  • Never report a fix without the before and after counts from a re-run check.
  • Never add tests, docs, refactors or "while I was here" changes that were not asked for; list them as suggestions at the end if worth it.
  • Never silence a rule to reach zero.
  • Never run when the user said to skip the quality gates and focus on the feature (for example "not sonar, just focus on the UI"); that message suspends the gates for the session.

Non-goals

Deep whole-repo analysis with a report and no edits is repo-audit. A Sonar only sweep with rule-by-rule reporting is sonar-sweep, which this skill calls for the SonarCloud row. Merging is ship. Prod verification is prod-check.

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.