/fullstack-skills:test-driven-developmentfrom fullstack-skills
Use this skill when implementing any feature or bugfix, before writing implementation code. Triggers on "implement", "add this feature", "fix this bug", "write the code for", or any transition into writing production code. Enforces RED→GREEN→REFACTOR: a failing test must exist and be observed failing before production code is written.
Ships in fullstack-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.
Write the test first. Watch it fail. Write the minimal code to pass.
Core principle: if you didn't watch the test fail, you don't know it tests the right thing. Violating the letter of these rules violates their spirit.
../../../RULES.md first and apply it as the baseline.testing-qa for framework setup, coverage strategy, and test design depth.NO PRODUCTION CODE WITHOUT A FAILING TEST FIRST
Wrote code before the test? Delete it and start over from the test. Not "keep as reference", not "adapt while writing tests". Delete means delete. Implement fresh.
Recoverable, not destructive: make the discarded code recoverable before removing
it — git stash it or commit it on a throwaway branch — so nothing is irreversibly
lost. The discipline is that you do not look at or adapt it while writing tests;
it is not that the bytes must be unrecoverable. If the code is substantial or the user
may want it, say so and confirm before discarding rather than deleting silently.
| Excuse | Reality |
|---|---|
| "Too simple to test" | Simple code breaks. The test takes 30 seconds. |
| "I'll test after" | Tests written after pass immediately and prove nothing. |
| "Already manually tested" | Ad-hoc ≠ systematic. No record, can't re-run. |
| "Deleting X hours is wasteful" | Sunk cost. Unverified code is debt, not an asset. |
| "Keep as reference" | You'll adapt it — that's testing after. Delete. |
| "Test is hard to write" | Hard to test = hard to use. Listen to the test; simplify design. |
| "TDD is dogmatic, I'm pragmatic" | TDD finds bugs before commit — it is the pragmatic path. |
| "This case is different because…" | It isn't. Start from the test. |
Found a bug? Write a failing test that reproduces it, then follow the cycle. The test proves the fix and prevents regression. Never fix a bug without a test.
| Problem | Solution |
|---|---|
| Don't know how to test it | Write the wished-for API and the assertion first. |
| Test too complicated | The design is too complicated. Simplify the interface. |
| Must mock everything | Code too coupled. Use dependency injection. |
Report the cycle honestly: the test, the observed RED output, the minimal change, the
observed GREEN output. "It should pass" is not acceptable — show the run. Defer the final
"done" claim to verification-before-completion.
Adapted from the Superpowers test-driven-development skill by Jesse Vincent (MIT —
github.com/obra/superpowers), reworked for the v1.1 contract.
What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (korwlik23/ai-skills) — no native marketplace selected
npx claudepluginhub p/korwlik23-fullstack-skills81 skills in this plugin
/ab-testingWhen the user wants to plan, design, or implement an A/B test or experiment, or build a growth experimentation program. Also use when the user mentions "A/B test," "split test," "experiment," "test this change," "variant copy," "multivariate test," "hypothesis," "should I test this," "which version is better," "test two versions," "statistical significance," "how long should I run this test," "growth experiments," "experiment velocity," "experiment backlog," "ICE score," "experimentation program," or "experiment playbook." Use this whenever someone is comparing two approaches and wants to measure which performs better, or when they want to build a systematic experimentation practice. For tracking implementation, see analytics. For page-level conversion optimization, see cro./ad-creativeWhen the user wants to generate, iterate, or scale ad creative — headlines, descriptions, primary text, or full ad variations — for any paid advertising platform. Also use when the user mentions 'ad copy variations,' 'ad creative,' 'generate headlines,' 'RSA headlines,' 'bulk ad copy,' 'ad iterations,' 'creative testing,' 'ad performance optimization,' 'write me some ads,' 'Facebook ad copy,' 'Google ad headlines,' 'LinkedIn ad text,' or 'I need more ad variations.' Use this whenever someone needs to produce ad copy at scale or iterate on existing ads. For campaign strategy and targeting, see ads. For landing page copy, see copywriting.