bug-fixing — Claude Code skill: fix and verify bugs
The bug-fixing skill guides focused bug fixes and their verification in any programming language. Use it after the cause of a problem has been investigated.
no license 1 installs updated 2026-10-17
npx skills add kishan04rajput/ai-ide-rules --skill bug-fixing -a claude-codeWhat bug-fixing does
bug-fixing gives an agent a workflow for implementing a fix after the defect has been examined. It compares possible approaches, checks whether the choice fits the language and existing architecture, then keeps the code change as small as practical. The workflow also asks the agent to address the underlying cause instead of hiding the visible symptom.
Verification covers the original reproduction path, existing tests, related modules, and boundary conditions found during analysis. Those checks can include null handling, concurrent execution, and memory limits. The skill is for implementation and validation, so bug discovery and diagnosis belong to identify-bugs first.
It can be installed for Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, or OpenCode. When checks pass, the agent reports a clean result; when they do not, it lists possible risks and side effects.
What it helps with
- implement a fix for an already diagnosed bug
- compare two ways to resolve the same defect
- keep a patch aligned with the project’s language patterns
- check related modules for regressions
- test edge cases revealed during diagnosis
Example prompts for the agent
- Fix the diagnosed issue in
src/auth.tswith the smallest suitable code change, then rerun its reproduction steps. - Compare two possible patches, choose the one that matches this codebase, and run the related tests.
- Validate the fix with null values and concurrent execution, then report any possible side effects.
How to install bug-fixing
1Skills CLI (Vercel)
npx skills add kishan04rajput/ai-ide-rules --skill bug-fixing -a claude-code2Manually: put the files in place
~/.claude/skills/skill-bug-fixing/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/skill-bug-fixing/
1Skills CLI (Vercel)
npx skills add kishan04rajput/ai-ide-rules --skill bug-fixing -a codex2Manually: put the files in place
.agents/skills/skill-bug-fixing/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add kishan04rajput/ai-ide-rules --skill bug-fixing -a cursor2Manually: put the files in place
.cursor/skills/skill-bug-fixing/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install kishan04rajput/ai-ide-rules skills/skill-bug-fixing2Manually: put the files in place
.github/skills/skill-bug-fixing/SKILL.md1Skills CLI (Vercel)
npx skills add kishan04rajput/ai-ide-rules --skill bug-fixing -a gemini-cli2Platform CLI
gemini skills install https://github.com/kishan04rajput/ai-ide-rules --path skills/skill-bug-fixingManually: put the files in place
.devin/skills/skill-bug-fixing/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add kishan04rajput/ai-ide-rules --skill bug-fixing -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about bug-fixing
How do I install bug-fixing in Claude Code?
Run npx skills add kishan04rajput/ai-ide-rules --skill skill-bug-fixing -a claude-code. The skill file will be placed at ~/.claude/skills/skill-bug-fixing/SKILL.md.
What does the bug-fixing skill do?
It guides an agent through selecting and applying a focused fix for a diagnosed bug, followed by checks for the original behavior, regressions, and edge cases.
Should the bug be analyzed before using this skill?
Yes. This skill handles implementation and verification after diagnosis; use identify-bugs to find and analyze the cause first.