escapeboy/claude-code-kit/fix-bug

Claude Code and agent skill by escapeboy/claude-code-kit

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Three-phase autonomous bug fix — investigate all occurrences, fix with full coverage, validate with regression test. Prevents partial fixes (the #1 friction source: fixing one broken route but missing the second, renaming a property but not the view variable, etc).

Install

npx vskill@latest install escapeboy/claude-code-kit/fix-bug

SKILL.md

fix-bug

Three-phase bug fix that finds ALL occurrences, fixes atomically, and validates with a regression test.

When to Use (and When NOT to)

Use this skill forUse a simpler approach for
A bug that could touch multiple files (renamed prop, broken route, changed model attribute)A one-line fix with no cross-file symbol — just fix it directly
The "#1 friction source": partial fixes that miss a reference elsewhereYou already know the single file/line to change and nothing else references it
A bug you want validated with a dedicated regression testA trivial typo/copy fix that doesn't warrant its own test

Phase 1 — Comprehensive Investigation

Before touching any code:

  1. Reproduce the issue and capture the exact error message / stack trace
  2. Identify the primary symbol involved (function name, route, variable, class, column)
  3. Grep the entire codebase for every reference to that symbol:
  • Controllers, services, models
  • View templates (Blade / JSX / ERB / Twig — server-rendered views are the most-missed spot)
  • Tests (feature + unit)
  • Route definitions (all route files, not just the obvious one)
  • Config files
  • JS/CSS files if relevant
  1. Document: full list of files that reference the broken symbol
  2. Check for the same bug pattern in similar locations (e.g. if one route is broken, check all routes of the same type)

Do not proceed until you have the complete reference map.

Phase 2 — Fix with Full Coverage

Apply changes atomically across every file found in Phase 1:

  • For renamed variables/properties: update the definition + every view, controller, test, and config
  • For broken routes: check all route files, all route-helper calls, all redirects and links
  • For removed/changed model attributes: update mass-assignment lists ($fillable or equivalent), factories, seeders, and all tests that reference those attributes
  • For middleware changes: check route groups, kernel/middleware registration, and all test middleware overrides

After applying all changes, grep again to confirm zero remaining old references.

Phase 3 — Validate

  1. Run the full test suite (php artisan test --parallel, npm test, pytest — project equivalent)
  2. If tests fail:
  • Determine: is the test wrong, or is the fix incomplete?
  • Never change test assertions to make them pass trivially
  • Fix the underlying issue
  1. Write a regression test that:
  • Reproduces the original bug (assert it was broken)
  • Confirms the fix works
  • Lives in the appropriate test directory
  1. Final grep: confirm zero references to the old broken pattern

Output

Report back:

  • Root cause (1-2 sentences)
  • Files changed (list)
  • Regression test location
  • Test suite result (pass/fail count)

Boundaries

Always

  • Grep the entire codebase for every reference to the broken symbol before fixing, and again after to confirm zero remaining old references.
  • Run the full test suite and write a regression test before declaring done.

Ask first

  • Nothing beyond the invocation itself — investigating, fixing, and validating the reported bug is what this skill is for.

Never

  • Change test assertions just to make them pass trivially.
  • Stop at a partial fix when the grep found more occurrences.

The bug to fix: $ARGUMENTS

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
92
Repository forks
14
7-day trend score
0

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/escapeboy/claude-code-kit/fix-bug/badge)](https://verified-skill.com/skills/escapeboy/claude-code-kit/fix-bug)

Something wrong with this skill or its page? Tell us.