auto-fix

auto-fix is a skill for Claude Code, Codex from strikersam/autonomous-ai-agency. It costs 0 tokens per session (646 once invoked), scanned A, original, MIT.

An automated cleanup workflow for linting, formatting, and type-checking errors in a codebase. Linting checks code for common mistakes and style problems, while type-checking finds inconsistent use of data types.

In plain words
What is it for?
Use it before committing code, when CI reports lint or type errors, or after rapid development to apply formatters and auto-fixable checks.
Why use it?
It removes many routine corrections before a commit or review and identifies remaining errors that could make continuous integration fail.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md; installed under .agents/ (shared by several agents).

Good fit Use it before committing code, when CI reports lint or type errors, or after rapid development to apply formatters and auto-fixable checks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/strikersam/autonomous-ai-agency/auto-fix
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add strikersam/autonomous-ai-agency --skill auto-fix
Clone the repo
git clone --depth 1 https://github.com/strikersam/autonomous-ai-agency

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for auto-fix

README.md
[![agentmods](https://agentmods.dev/badge/skills/strikersam/autonomous-ai-agency/auto-fix/github.svg)](https://agentmods.dev/skills/strikersam/autonomous-ai-agency/auto-fix)
Your own site
<a href="https://agentmods.dev/skills/strikersam/autonomous-ai-agency/auto-fix"><img src="https://agentmods.dev/badge/skills/strikersam/autonomous-ai-agency/auto-fix/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for auto-fix

Your own site · 80×15
<a href="https://agentmods.dev/skills/strikersam/autonomous-ai-agency/auto-fix"><img src="https://agentmods.dev/badge/skills/strikersam/autonomous-ai-agency/auto-fix.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 646 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00646
Opus 5 $0.00000 $0.00323
Sonnet 5 $0.00000 $0.00129
Haiku 4.5 $0.00000 $0.00065

Measured 12d ago against content hash 8fa8e2f3a43e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

auto-fix scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/auto-fix/SKILL.md · 80 lines

How it starts

The opening of the file, as written. The whole thing — 80 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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

Read the full file on GitHub · 80 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 80 lines · 0 tokens per session scan A 8fa8e2f3a43e

Subscribe to this mod's changes

auto-fix is a skill published in the GitHub repository strikersam/autonomous-ai-agency (8 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 646 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.