itsmejay18/ai-skills-for-my-development-stack/bug-fix
Claude Code and agent skill by itsmejay18/ai-skills-for-my-development-stack
- community
Checking that the SKILL.md file is still in the repository.
Activate before creating, modifying, or deleting any production code file. Whether the task is a bug fix, feature, refactor, rename, or improvement — any write to production code requires a failing test first. The trigger is any write-mode action on production code, not the reason for it.
Install
npx vskill@latest install itsmejay18/ai-skills-for-my-development-stack/bug-fixSKILL.md
The same SKILL.md was published earlier as itsmejay18/ai-skills-for-my-development-stack/bug-fix.
Bug Fix — Red-Green, No Exceptions
A bug report means our tests are incomplete. The bug is a gap in test coverage, not just a gap in production code. Fix the test first; the production fix follows.
Hard gate
Do not write or modify production code until a failing test exists and is confirmed failing. This is non-negotiable. If you catch yourself reaching for a production file, stop and ask: "Do I have a failing test yet?"
Step 1 — Expose the bug (red)
- Run the existing test suite. If a test already fails and matches the reported bug, step 1 is done — the test already exposes the gap. Move to step 2.
- If all tests pass, write a new test that reproduces the bug:
- Place it in the appropriate test file, next to related tests.
- Use the simplest setup that triggers the failure.
- The test must assert the correct behaviour (what the user expects), so it fails against the current (broken) code.
- Run the test and confirm it fails. Show the failure output. This is proof that the test catches the bug. Do not proceed until you see red.
Step 2 — Fix the bug (green)
- Modify production code to make the failing test pass.
- Run the full test suite — all tests must be green.
- If your fix breaks other tests, investigate: either the fix is wrong, or the other tests were relying on the buggy behaviour (update them too, with justification).
What not to do
- Do not fix the bug and then write a test that passes. That test proves nothing — it would have passed before the fix too.
- Do not skip step 1 because "the fix is obvious." Obvious fixes still need a guard against regression.
- Do not batch multiple bug fixes into one step-1/step-2 cycle. Each bug gets its own failing test, its own fix. Isolation is the point.
Example flow
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking01-Laravel-Web-Development/bug-fix/SKILL.md
Popularity
- 7-day trend score
- 5
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
[](https://verified-skill.com/skills/itsmejay18/ai-skills-for-my-development-stack/bug-fix)