From tdd-pbt
Use after the Red phase to implement the minimal code that makes the failing test pass. Triggers on phrases like "make the test pass", "Green phase", "implement the minimal solution", "yes proceed to Green", "let's go green". Hardcoded return values are acceptable and encouraged for early tests. Stops and waits for user approval before proceeding to Refactor.
How this skill is triggered — by the user, by Claude, or both
Slash command
/tdd-pbt:greenThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
`/tdd-pbt:green` launches the `green` agent to implement the minimal production code that makes the currently failing test pass.
/tdd-pbt:green launches the green agent to implement the minimal production code that makes the currently failing test pass.
Check whether .tdd-pbt/config.yml exists in the current working directory.
If it exists: read the language field. Use it for all subsequent steps.
If it does not exist: ask the user:
AskUserQuestion:
question: "Which language and PBT library will you use for this project?"
header: "Language setup"
options:
- label: "Java + jqwik 1.9.3"
description: "Java project using Maven, JUnit 5, and jqwik 1.9.3"
- label: "TypeScript + fast-check + Vitest"
description: "TypeScript project using Vitest and fast-check"
Then write .tdd-pbt/config.yml to the current working directory:
language: java # or typescript
Confirm: "Language set to . Config written to .tdd-pbt/config.yml."
Collect context from the user's invocation or the current codebase state:
Call the green agent with all collected context as the prompt. Include:
Language: <java|typescript>
Test file: <test file path>
Failing test: "<testMethodName>"
Expected: <method>(<args>) returns <value>
Current error: <paste error message>
Implementation file: <implementation file path>
The agent will:
mvn test and verify all tests passnpx vitest run and verify all tests passAfter the agent completes and reports "Green phase complete", wait for the user to confirm before proceeding.
.tdd-pbt/config.yml if it already exists.npx claudepluginhub gtrefs/tdd-pbt-plugin --plugin tdd-pbtGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.