/pxp:test-driven-developmentfrom pxp
Guides the strict RED-GREEN-REFACTOR cycle: write a failing test, confirm failure, write minimal code to pass, then refactor. Use when implementing features or bugfixes.
Ships in pxp. 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.
A disciplined cycle for writing code one behavior at a time: red (failing test) → green (minimal code) → refactor.
No production code without a failing test first. Not even one line. Not even "I'll just sketch this out." Not even "the test is obvious — I'll add it after."
Write a single test for one behavior. The test should:
Run the test. Confirm it fails for the expected reason.
Write the simplest code that makes the test pass. Resist the urge to add more.
Run the test. Confirm it passes. Run the full suite to check for regressions.
Look at the code you just wrote and the code around it:
If you see an improvement, make it. Re-run tests. If nothing needs refactoring, say so out loud and move on.
| Excuse | Reality |
|---|---|
| "Test is trivial, I'll skip it" | Trivial tests catch real regressions later. Write it. |
| "I already manually tested it" | Manual tests don't run in CI. Write the automated test. |
| "I'll write the test after" | Tests-after asks "what does this do?" Tests-first asks "what should this do?" Different exercises. |
| "Refactor isn't needed here" | Say so explicitly. Don't silently skip Step 5. |
| "I'll batch the refactor at the end" | Refactor with context fresh, not after you've moved on. |
All of these mean: stop, delete the unprotected code, start the cycle properly.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
tdd, red-green-refactor, test-first, unit-testing, refactoring
Generated from the plugin's indexed repository (infews/pxp_skill) — no native marketplace selected
npx claudepluginhub p/infews-pxp3 skills in this plugin
/ears-specificationsUse when writing formal specifications using the EARS (Easy Approach to Requirements Syntax) patterns — converting natural-language requirements, Gherkin scenarios, or user stories into testable, atomic specs with stable semantic IDs./pivotal-xpUse when the user wants a Pivotal-Labs-style XP pairing workflow — refining an epic, slicing it into stories, writing EARS specifications from Gherkin acceptance criteria, or doing strict per-spec TDD with developer approval at every gate. Also use when the user mentions epics, story slicing, EARS, or "pair with me on this."Other plugins' skills for the same job