agentsclimarketplace

Fix

Skill jonnybbb/claude-getting-started/.claude/skills/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

Install
npx -y skills add jonnybbb/claude-getting-started --skill fix

Assembled 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

ScenarioTest approach
Service/repository logic, DB queriesIntegration tests with real DB
File uploads, external storageIntegration tests with mocks/stubs
Browser-visible UI, full user flowsEnd-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.

<rules> - If you cannot write a test, you MUST use AskUserQuestion to explain why and get explicit approval before skipping. Do not rationalize the skip yourself. - "It's just a template change" is NOT a valid reason to skip — template bugs often have testable service/controller behavior behind them. - The test name should describe the expected behavior, not the bug (e.g. `Should transition to REVEAL when voting ends` not `Fix end button`) - If the fix requires a DB migration, do that first: migration → run codegen → then write test </rules>

4. Green — make the test pass

Write the minimum code to make the test pass.

  1. Compile the code
  2. 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

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.