agentleFS
strikersamstrikersam/autonomous-ai-agency/.agents/skills/auto-fix/SKILL.md

auto-fix

Skill9 starsChanged 3 months agoMITView on GitHub

Capture output for each. Note what was changed. Collect all errors with file:line references.

5 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 7

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read CLAUDE.md, package.json, pyproject.toml, Makefile, .pre-commit-config.yaml to find:

    line 16
  2. Distinctive:

    Import sorters (isort, organize-imports)

    line 24
  3. Distinctive:

    Run tools that report but cannot auto-fix:

    line 30
  4. Distinctive:

    Read the file at the error location

    line 38
  5. Very specific:

    Never suppress errors with # type: ignore or // eslint-disable unless it's genuinely unfixable and documented why

    line 42
  6. Distinctive:

    Run the full check suite one more time.

    line 45
  7. Very specific:

    Never introduce any types to silence TypeScript errors

    line 55
  8. Very specific:

    Never use # noqa or # type: ignore without a comment explaining why

    line 56
  9. Distinctive:

    Prefer fixing root causes over suppressing symptoms

    line 57
  10. Distinctive:

    If a fix requires understanding business logic, flag it rather than guess

    line 58
  11. Distinctive:

    Run tests after fixing to ensure no regressions

    line 59

“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “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

Skill: auto-fix

Purpose

Automatically detect and fix linting, formatting, and type errors across the codebase. Acts as a one-shot "clean up everything" command before committing or opening a PR.

Trigger

Use when:

  • Pre-commit cleanup is needed
  • CI is failing due to lint/type errors
  • Code was written quickly and needs polish
  • You want to ensure the codebase is green before review

Process

Step 1: Discover Fix Commands

Read CLAUDE.md, package.json, pyproject.toml, Makefile, .pre-commit-config.yaml to find:

  • Lint fix commands (eslint --fix, ruff check --fix, black, prettier)
  • Type check commands (mypy, tsc --noEmit, pyright)
  • Format commands (isort, autopep8, gofmt)

Step 2: Run Fixers (Auto-fixable)

Execute all auto-fixable tools in order:

  1. Formatters first (black, prettier, gofmt)
  2. Import sorters (isort, organize-imports)
  3. Lint fixers (eslint --fix, ruff --fix)

Capture output for each. Note what was changed.

Step 3: Run Checkers (Non-auto-fixable)

Run tools that report but cannot auto-fix:

  1. Type checkers (mypy, tsc, pyright)
  2. Strict lint rules that require manual intervention

Collect all errors with file:line references.

Step 4: Manual Fix Loop

For each remaining error:

  1. Read the file at the error location
  2. Understand the error message
  3. Apply the minimal correct fix
  4. Re-run the checker to confirm resolved
  5. Never suppress errors with # type: ignore or // eslint-disable unless it's genuinely unfixable and documented why

Step 5: Final Verification

Run the full check suite one more time. All checks must pass before declaring done.

Step 6: Report

Summarize:

  • Files auto-formatted: N
  • Lint issues auto-fixed: N
  • Type errors manually fixed: N
  • Remaining issues (if any): list them with explanations

Rules

  • Never introduce any types to silence TypeScript errors
  • Never use # noqa or # type: ignore without a comment explaining why
  • Prefer fixing root causes over suppressing symptoms
  • If a fix requires understanding business logic, flag it rather than guess
  • Run tests after fixing to ensure no regressions

Output Format

## Auto-Fix Report

### Auto-formatted
- src/utils.py (black)
- src/models.py (isort + black)

### Lint Fixed
- src/api.py: removed unused import `os`
- src/routes.py: fixed f-string formatting

### Type Errors Fixed
- src/service.py:45 — Added `Optional[str]` return type
- src/models.py:12 — Fixed dict type annotation

### Still Failing
- None ✅

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.