quick-fix — Claude Code command: what it does, how to install
quick-fix — a command that fixes lint errors, type errors, and simple bugs. Finds the issue, applies a minimal fix, and verifies the result.
MIT ★ 1,424 updated 2026-10-06
.claude/commands/quick-fix.mdWhat quick-fix does
The command identifies the error type — type check, lint, syntax, or logic. If you do not specify a file, it runs the project's checks: tsc --noEmit for TypeScript, eslint, or ruff check for Python. It then locates the problematic file, applies a minimal fix, and re-runs the test.
It works with npm, npx, yarn, pnpm, bun, python3, pip, and go. The command reads recent changes via git diff to narrow down where to look.
Provide a file path or describe the error in the argument; the command decides what to check.
What it helps with
- fix type errors after a refactor
- run the linter and close all issues
- locate and fix a syntax error in changed files
- patch a bug without digging into details
Example prompts for the agent
- Fix type errors in
src/utils.ts - Run the linter and close all issues
- Find and fix the error in recent commits
How to install quick-fix
Manually: put the files in place
.claude/commands/quick-fix.mdCall it with /quick-fix. For all projects use ~/.claude/commands/
Manually: put the files in place
~/.codex/prompts/quick-fix.mdCall it with /prompts:quick-fix. Codex marks this format deprecated in favour of skills
Manually: put the files in place
.github/prompts/quick-fix.prompt.mdManually: put the files in place
.gemini/commands/quick-fix.tomlGemini stores commands as TOML: the prompt text goes into the prompt field
Questions about quick-fix
How to install quick-fix in Claude Code?
Create a file .claude/commands/quick-fix.md with the command content.
What does quick-fix do?
The command finds lint errors, type errors, or bugs, applies a minimal fix, and verifies the result.
Which tools does quick-fix support?
The command works with npm, npx, yarn, pnpm, bun, python3, pip, and go. It runs project checks like tsc, eslint, or ruff.
Source text
quick-fix.md · MIT
--- allowed-tools: Bash(npm:*), Bash(npx:*), Bash(yarn:*), Bash(pnpm:*), Bash(bun:*), Bash(python:*), Bash(python3:*), Bash(pip:*), Bash(go:*), Read, Edit, Write description: Quickly fix lint errors, type errors, or simple bugs argument-hint: "[file or error description]" --- ## Context - Project root files (infer the project type from these): !`ls -a` - Recent changes: !`git diff --name-only HEAD~1 2>/dev/null || git diff --name-only` ## Task Fix the issue described below: 1. Identify the type of error (type error, lint, syntax, logic). If none was described, find it by running the checks the project has installed (for example `npx --no tsc --noEmit`, `npx --no eslint .`, `python3 -m ruff check .`) — never let `npx` download a tool 2. Locate the problematic file(s) 3. Apply the minimal fix needed 4. Verify the fix by re-running the relevant check 5. Report what was fixed Target: $ARGUMENTS
© CloudAI-X · MIT · CloudAI-X/claude-workflow-v2