Skip to main content
skill CX Codex

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

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add kishan04rajput/ai-ide-rules --skill bug-fixing -a claude-code
Open on GitHub

What 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.ts with 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-code

2Manually: put the files in place

~/.claude/skills/skill-bug-fixing/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/skill-bug-fixing/

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.

Similar skills

All skills for Code review and refactoring →

Project sponsors

Companies that keep this analytics open