jodavis/agent-plugins/tdd-red-turn
Claude Code and agent skill by jodavis/agent-plugins
- community
Checking that the SKILL.md file is still in the repository.
Install
npx vskill@latest install jodavis/agent-plugins/tdd-red-turnSKILL.md
The same SKILL.md was published earlier as jodavis/agent-plugins/tdd-red-turn.
Steps
1 — Pick the next behavior
If you were already mid-behavior when this turn started (tdd-implementer just replied structural-green, or Developer relayed a revise-request response or a clarify answer), stay on that same <TestName> instead of picking a new one — skip to step 2.
Otherwise, pick the next behavior in order:
- Skip Wrapper-tier members. A member that is itself a simple call-through or translation
with no conditional or iteration logic doesn't get dedicated coverage just because it lives inside a Testable component — including a log statement inside an otherwise-trivial member.
- Cheapest structural fit:
- Add a case to an existing parameterized test if its Arrange/Act shape matches.
- Otherwise, append an
Assertto an existing frozen-Arrange/Act method if the scenario's
Arrange/Act doesn't genuinely differ.
- Otherwise, write a new test method.
- Near-duplicate methods differing only by literal input/expected-output data are fine to
leave as-is — consolidating them into a parameterized test is tdd-refactorer's job later, not yours mid-loop.
- Happy path before edge cases. Cover the nominal/typical case first, then expand into
boundary, invalid-input, and error-handling cases. Cover every case where a dependency could throw an exception, return invalid data, or report an error. For async dependency methods, cover cases where it returns immediately, blocks asynchronously, blocks and then resumes, is cancelled by a passed-in CancellationToken, or throws TaskCancelledException without the CancellationToken.
2 — Decide whether this behavior needs a structural turn
Before adding an Assert, write the Arrange and Act only and attempt to build and run with no assertion yet:
- If it fails to build, or throws/crashes at run: stop there for the turn and report
structural-red: <TestName> — <reason>. Do not add the Assert yet.
- If Arrange/Act already completes cleanly — appending to an existing method, a new case on an
already-parameterized test, testing an already-implemented member with new inputs, or this behavior's structural turn already resolved (tdd-implementer just replied structural-green) — add the Assert immediately in the same turn and report ordinary red: <TestName> — <reason>.
This keeps "a red test fails for the right reason" mechanically true: an Assert is only ever added once Arrange/Act is already confirmed to complete cleanly, whether that confirmation happened this turn or a prior structural-green turn.
3 — Check for done
Report done: <coverage summary> instead of picking a new behavior once code-change-expectations' coverage checklist (branches, error sources, boundary/invalid inputs, log output) is satisfied for the whole component — not just the member you tested last.
One behavior per turn
Add exactly one of: one new test method, one new case on an existing parameterized/data-driven test, or one new Assert appended to an existing, Arrange/Act-frozen method. Never batch multiple behaviors into a single turn, even if the fix looks trivial.
Turn discipline
Reply with exactly one line — no diffs, no explanation, no restating what you changed:
Run build/test commands the same way code-change-expectations documents for the target project — an incremental build, never a clean rebuild, and a test run scoped to the one test or the component's suite, never the full project suite.
Skills
tdd-practices— the Practice rules referenced by thetdd-testeragentcode-change-expectations— the coverage checklist step 3 checks against
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/dev-team/skills/tdd-red-turn/SKILL.md
Popularity
- Repository stars
- 1
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/jodavis/agent-plugins/tdd-red-turn)