/jonhill90-skills:tddfrom jonhill90-skills
Guides test-driven development for greenfield code: write a failing test first, implement the minimum to pass, then refactor. Use when building new features, functions, endpoints, or components from scratch.
Ships in jonhill90-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Test-driven development for greenfield code: behavior that has never
existed and has no prior failing state to reproduce. The discipline is red,
green, refactor — write a test that fails because the behavior does not
exist yet, write the smallest implementation that makes it pass, then
clean up with the test still green. This is the broader discipline that
failing-test-first is one instance of; that skill owns the narrower,
already-rostered case of reproducing an existing bug with a test before
fixing it. Where the two could both apply — extending existing code with a
new capability that isn't a bugfix — this skill governs; where a defect in
already-working code is being reproduced, failing-test-first governs, not
this one.
Do not reach for it when:
failing-test-first; write the reproduction
first, but follow that skill's contract, not this one.Write the test for the behavior you are about to build, against the interface you intend it to have, before writing that implementation. Run it and confirm it fails for the reason you expect — a missing function, an unimplemented branch, an assertion on behavior that does not exist — not for an unrelated reason (a typo, an import error, a fixture that doesn't build). A red test that fails for the wrong reason proves nothing about the behavior you're adding.
Write the smallest implementation that makes the test pass. Resist adding behavior the test doesn't ask for — extra parameters, extra branches, speculative generality — even if you can predict a future need for them. Run the test and confirm it now passes, and run the surrounding suite to confirm nothing else broke.
With the test green, clean up: remove duplication, rename for clarity, extract what deserves extracting. Run the suite after each change. If a refactor requires a behavior change to work, that is new red-green work, not refactoring — stop and go back to red.
The test stays in the suite after the feature ships. It is now a regression check for behavior that, before this skill ran, did not exist to regress.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
44 skills in this plugin
/adopt-or-buildDecide, per component, whether to adopt an existing name, dependency, library, or tool or build it in-house, weighing blast radius over convenience. Use at the point a name or dependency is about to be chosen or recommended — before it is proposed, not after. Not for finding a technology's capability ceiling (research-the-limit), not the mechanism for genuinely different reviewer lenses (ask-a-council, which this skill may call), and not a substitute for attacking the chosen answer (devils-advocate, which this skill invokes as its final step)./ask-a-councilConvene several harnesses or models against one question, each doing a distinct job it can fail at — different evidence, a different objective, or a withheld conclusion — before an artifact becomes load-bearing and being wrong is expensive. Diversity comes from what each reviewer is given, never from a character it plays. Use when the failure modes genuinely differ in kind — a single reviewer's prompt would only catch what its own lens looks for. Not for a question a cheap deterministic check settles (run the check first); not for one reviewer's prompt (sanity-check owns that); not for dispatch mechanics or isolation boundaries (dispatching-subagents owns those); not for trusting a verdict already returned (verify-the-instrument owns that).npx claudepluginhub jonhill90/skills --plugin jonhill90-skills