Help us improve
Share bugs, ideas, or general feedback.
From GSD Core
Generates unit and E2E tests for a completed phase, using UAT criteria and implementation files as specifications. Classifies files, presents a test plan for approval, then writes RED-GREEN tests.
npx claudepluginhub open-gsd/gsd-coreHow this command is triggered — by the user, by Claude, or both
Slash command
/gsd-core:add-tests <phase> [additional instructions]gsd/Files this command reads when invoked
This command is limited to the following tools:
The summary Claude sees in its command listing — used to decide when to auto-load this command
<objective>
Generate unit and E2E tests for a completed phase, using its SUMMARY.md, CONTEXT.md, and VERIFICATION.md as specifications.
Analyzes implementation files, classifies them into TDD (unit), E2E (browser), or Skip categories, presents a test plan for user approval, then generates tests following RED-GREEN conventions.
Output: Test files committed with message `test(phase-{N}): add unit and E2E tests from add-tests command`
</objective>
<execution_context>
@~/.claude/gsd-core/workflows/add-tests.md
</execution_context>
<context>
Phase: $ARGUMENTS
@.planning/STATE.md
@.planning/.../testGenerates tests for completed code phases by auto-detecting the test framework and targeting key files.
/add-testsGenerates and adds test coverage for a specific plan or phase post-execution. Uses [N] argument to target phase.
/testWrites and runs unit, integration, or E2E tests for provided code, acceptance criteria, and critical flows. Ensures coverage of happy paths, errors, edge cases; documents gaps.
/phase-2Writes failing test scaffolding (TDD RED phase) from Phase 1 requirements, verifies all tests fail, generates test-to-requirement mapping and remaining phase estimations.
/fire-verify-uatGuides conversational User Acceptance Testing (UAT) for a phase by generating flows from docs, running guided tests, and auto-diagnosing failures with parallel debug agents.
/tdd-cycleOrchestrates a strict red-green-refactor TDD workflow with phases for test specification, implementation, and refactoring. Supports --incremental, --suite, and --coverage flags.
Share bugs, ideas, or general feedback.
Analyzes implementation files, classifies them into TDD (unit), E2E (browser), or Skip categories, presents a test plan for user approval, then generates tests following RED-GREEN conventions.
Output: Test files committed with message test(phase-{N}): add unit and E2E tests from add-tests command
<execution_context> @~/.claude/gsd-core/workflows/add-tests.md </execution_context>
Phase: $ARGUMENTS@.planning/STATE.md @.planning/ROADMAP.md
Execute end-to-end. Preserve all workflow gates (classification approval, test plan approval, RED-GREEN verification, gap reporting).