From sw
[DEPRECATED] Guides Claude Code through the green phase of TDD: writing minimal code to make failing tests pass. Replaced by sw:tdd-cycle --phase green.
How this skill is triggered — by the user, by Claude, or both
Slash command
/sw:tdd-greenThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
> ⚠️ DEPRECATED: Use `sw:tdd-cycle --phase green` instead. This skill will be removed in v1.3.0.
⚠️ DEPRECATED: Use
sw:tdd-cycle --phase greeninstead. This skill will be removed in v1.3.0.
This skill has been deprecated as part of the Opus 4.7 framework alignment (increment 0669).
sw:tdd-cycle --phase green runs only the GREEN phase (write minimal code to make tests pass)sw:tdd-cycle with a --phase flag. Alias routing in marketplace.json redirects /sw:tdd-green → /sw:tdd-cycle --phase green automatically.For the migration policy, see .specweave/docs/internal/specs/skill-deprecation-policy.md.
Skill Memories: If .specweave/skill-memories/tdd-green.md exists, read and apply its learnings.
Implement minimal code to make failing tests pass in TDD green phase.
Use Task tool with subagent_type="general-purpose" to implement minimal passing code.
Prompt: "Implement MINIMAL code to make these failing tests pass: $ARGUMENTS. Follow TDD green phase principles:
Pre-Implementation Analysis
Implementation Strategy
Code Guidelines
Progressive Implementation
Anti-Patterns to Avoid
Output:
If tests still fail: review test requirements carefully, check for misunderstood assertions, add minimal code to address specific failures.
Tests to make pass: $ARGUMENTS
npx claudepluginhub anton-abyzov/specweave --plugin swWrites minimal production-quality code to make failing tests pass (TDD GREEN phase). Reads feature specs, test mappings, and config to implement only what's needed.
Enforces the RED-GREEN-REFACTOR loop: write a failing test, see it fail, then minimal code to pass, then refactor. Use when starting new features or bugfixes.