auto-fix

auto-fix is a skill for Claude Code from Jerry0022/dotclaude. It costs 79 tokens per session (1,784 once invoked), scanned A, original, MIT.

A debugging skill that reads session logs, runtime errors, and crash output to find and fix the underlying cause of a problem. Runtime errors are failures that happen while a program is running.

In plain words
What is it for?
Use it when an application or development workflow is broken. It helps investigate logs and error output before applying a fix.
Why use it?
It focuses on why something broke instead of only treating the visible symptom. This is useful for errors, crashes, blank screens, and other unexpected behaviour.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool; mentions Codex.

Part of the devops plugin — 18 skills, 12 agents, 9 hooks, 1 MCP server shipped together

Good fit Use it when an application or development workflow is broken. It helps investigate logs and error output before applying a fix.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jerry0022/dotclaude/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 Jerry0022/dotclaude --skill auto-fix
Clone the repo
git clone --depth 1 https://github.com/Jerry0022/dotclaude

Made for: Claude Code.

Or install devops, the plugin that ships this one along with the rest of its 18 skills, 12 agents, 9 hooks, 1 MCP server.

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/jerry0022/dotclaude/auto-fix/github.svg)](https://agentmods.dev/skills/jerry0022/dotclaude/auto-fix)
Your own site
<a href="https://agentmods.dev/skills/jerry0022/dotclaude/auto-fix"><img src="https://agentmods.dev/badge/skills/jerry0022/dotclaude/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/jerry0022/dotclaude/auto-fix"><img src="https://agentmods.dev/badge/skills/jerry0022/dotclaude/auto-fix.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 79 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,784 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.
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.00079 $0.01784
Opus 5.5 $0.00032 $0.00714
Sonnet 5.5 $0.00016 $0.00357
Haiku 4.5 $0.00008 $0.00178

Measured 11d ago against content hash 89693017776d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 11d 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.

plugins/devops/skills/auto-fix/SKILL.md · 146 lines

How it starts

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

Fix

Diagnose and fix the issue: $ARGUMENTS

Step 0 — Load Extensions

Injected by the override loader ([skill-overrides] block); none shown → none exist.

Project extensions define framework-specific log paths (e.g., Electron logs in %APPDATA%/<app>/logs/, Angular dev server console, etc.).

Codex context: Read {PLUGIN_ROOT}/deep-knowledge/codex-integration.md — this skill auto-invokes Codex on unclear root cause (§2 in that doc). Codex MUST be called via {PLUGIN_ROOT}/scripts/codex-safe.sh (5-min hard timeout, see "Hard Timeout & Failure-Tolerance" section), NEVER via the /codex:rescue Agent tool. Detect Codex availability now so Step 6 can act on it.

Step 1 — Triage: what broke?

If $ARGUMENTS is empty or vague, ask ONE focused question via AskUserQuestion:

  • "Was ist passiert?" with options like: "Error in console", "Blank screen", "Crash on startup", "Wrong behavior"
  • Do NOT ask multiple questions — get the symptom, then investigate.

Step 2 — Check recent changes first

The most common cause of bugs is recent code changes. Before reading logs:

git log --oneline -5
git diff HEAD~1 --stat

If the symptom appeared after a specific commit, focus investigation there.

Step 3 — Discover and read logs

Search for logs automatically — don't assume fixed paths:

  1. Glob for **/*.log and **/logs/** in the project root
  2. Check project extension for framework-specific log locations
  3. Read the most recent log file first — don't read all unless needed

Step 4 — Locate the failure point

Search for the error string via Grep. Follow the stack trace to the originating file and line.

Step 5 — Root cause analysis

Find the actual broken invariant — not just the symptom. Ask:

  • What assumption is violated?
  • What changed that broke this assumption?
  • Is this a data issue, a logic issue, or a configuration issue?

Step 6 — Decision: fix or propose?

Situation Action
Trivial fix (typo, missing import, off-by-one) Fix immediately, report what was wrong
Clear root cause, low risk (single file) Fix immediately, explain root cause
Clear root cause, medium risk (multiple files) Propose fix via AskUserQuestion
Unclear root cause Present findings, propose 2-3 hypotheses, ask user. Automatically invoke Codex via Bash: bash "{PLUGIN_ROOT}/scripts/codex-safe.sh" "<investigation prompt>" for parallel independent investigation. Handle exit codes per codex-integration.md "Hard Timeout" section: rc=124 → continue without Codex findings, note "Codex timed out"; rc=75 → usage limit (stored until reset), continue without Codex, note it; rc=126/127 → skip silently. Never use the /codex:rescue Agent tool.
Architectural issue Report root cause, do NOT fix — recommend planned approach

Read the full file on GitHub · 146 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. 11d ago Changed · -3 lines · -15 tokens per session 89693017776d
  2. 12d ago Changed · -1 lines · -10 tokens per session 04ed5bee49c7
  3. 16d ago Changed · -6 lines d04d7f688886
  4. 18d ago Changed · +2 lines 3149b760995a
  5. 1mo ago Changed f45ff3ebddb2
  6. 1mo ago First seen · 154 lines · 104 tokens per session scan A 3054635043b8

Subscribe to this mod's changes

auto-fix is a skill published in the GitHub repository Jerry0022/dotclaude (6 stars, last pushed 11d ago), licensed MIT. It adds 79 tokens to every session and 1,784 once invoked, about $0.0003 per session on Opus 5.5. 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-09-24.

Related

auto-fix compared with skills from other repositories

auto-fix next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
auto-fixJerry0022/dotclaudeSkill611d agoMITA79Claude Code
systematic-debuggingopen-metadata/OpenMetadataSkill16kyesterdayApache-2.0A37Claude Code
log-error-digestzebbern/claude-code-guideSkill4.7k3d agoMITA71Claude Code, Codex
cwv-optimizeradobe/skillsSkill319yesterdayApache-2.0A112Claude Code
ci-fixersipyourdrink-ltd/bernsteinSkill1.2kyesterdayApache-2.0A15Claude Code, Codex
incident-response-incident-responsermyndharis/antigravity-skillsSkill1.9k23d agoMITA36Claude Code
triaging-web-analytics-supportPostHog/posthogSkill41kyesterdaynoneA151Claude Code, Codex