Fix
Fix a bug or missing feature using TDD — write failing test first, then fix, refactor, verify, beautify. Use when a bug is discovered or a feature doesn't work as expected.From its SKILL.md
npx -y skills add jonnybbb/claude-getting-started --skill fixAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
2.6 KB, as published. Nobody here has run it
Fix with TDD
Fix a bug or missing feature by writing a failing test first, then making it pass.
Process
1. Understand
Describe the bug or missing behavior. Explore the codebase to find the relevant code paths.
- If UI-related: screenshot the current broken state (if browser automation is available)
- Find the relevant service, controller, and template/view files
- Check if there's an existing test class for this area
2. Classify — pick test approach
| Scenario | Test approach |
|---|---|
| Service/repository logic, DB queries | Integration tests with real DB |
| File uploads, external storage | Integration tests with mocks/stubs |
| Browser-visible UI, full user flows | End-to-end browser tests |
3. Red — write a failing test
Write a test that reproduces the bug or asserts the missing behavior. Add to an existing test class if one covers this area, otherwise create a new one.
Run /test *FilterPattern and paste the failure output to confirm the test fails for the right reason.
4. Green — make the test pass
Write the minimum code to make the test pass.
- Compile the code
- Run the test — paste the green output to confirm pass
5. Refactor
Run /simplify to review changed code for reuse, quality, and efficiency. Then clean up anything remaining: remove duplication, extract methods if needed, ensure naming is consistent with surrounding code.
Run the test again — confirm still green after refactoring.
6. Verify
- UI fixes: Restart the app → verify the fix (screenshot or browser automation) → compare with the broken state from step 1
- Backend fixes: test output is sufficient proof
7. Beautify (UI fixes only)
If the fix introduced new UI elements, refine the UI design.
8. Commit
/commit