Install
1
Install the plugin$
npx claudepluginhub nguyenthienthanh/aura-frog --plugin aura-frogWant just this command?
Then install: npx claudepluginhub u/[userId]/[slug]
Description
**Version:** 1.0.0
Namespace
workflow/Command Content
Command: workflow:phase:2
Version: 1.0.0
Purpose: Execute Phase 2 - Test RED (Write Failing Tests)
Trigger: Auto-triggered after Phase 1 approval OR manual /workflow:phase:2
šÆ Phase 2 Objectives
Write failing tests before implementation (TDD RED phase). All tests must fail at this stage - they define the expected behavior for Phase 3.
Deliverables:
- Test scaffolding with failing tests
- Test cases covering requirements from Phase 1
- Verification that all tests fail (RED state)
š Execution Steps
Step 1: Pre-Phase Hook
- Load Phase 1 requirements and design
- Verify previous phase approved
- Initialize Phase 2 state
- Show phase banner
Step 2: Define Test Cases
Primary Agent: qa-automation
Actions:
- Derive test cases from Phase 1 requirements and success criteria
- Identify unit test, integration test, and E2E test boundaries
- Define edge cases and error scenarios
- Map tests to components/modules from Phase 1 design
Step 3: Write Test Scaffolding
Agent: qa-automation + Dev agent
Create:
- Test file structure matching the planned code structure
- Test stubs for each requirement
- Mock/fixture setup
- Assertion scaffolding
Step 4: Verify RED State
- Run all tests
- Confirm every test fails (RED)
- Document expected vs actual for each test
- Flag any tests that pass unexpectedly (indicates existing code already covers it)
Step 5: Generate Deliverables
# Phase 2: Test RED - Deliverables
## Test Cases
| ID | Requirement | Test Type | Status |
|----|------------|-----------|--------|
| T1 | [req] | unit | RED ā |
| T2 | [req] | integration | RED ā |
## Test Files Created
- tests/unit/[component].test.ts
- tests/integration/[feature].test.ts
## Estimation
### Story Points
**Total:** X story points (Fibonacci scale)
**Breakdown:**
- Phase 2 (Test RED): 2 points
- Phase 3 (Build GREEN): 5 points
- Phase 4 (Refactor + Review): 3 points
- Phase 5 (Finalize): 1 point
**Confidence:** High/Medium/Low
### Time Estimate
- Phase 2-5: X hours
- **Total:** Z hours (~W days)
ā Success Criteria
Phase 2 is complete when:
- Test cases derived from Phase 1 requirements
- Test scaffolding created
- All tests run and fail (RED state confirmed)
- Edge cases and error scenarios covered
- Test-to-requirement traceability documented
š¦ Auto-Continue
Phase 2 auto-continues to Phase 3 (Build GREEN) without approval gate. The failing tests serve as the specification for implementation.
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
š“ PHASE 2 COMPLETE: Test RED
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
š Summary:
Test scaffolding created - all tests failing (RED)
š¦ Deliverables:
š Test files with failing tests
š Test-to-requirement mapping
š Metrics:
- Test files created: X
- Test cases: Y (all RED ā)
- Coverage target: Z%
āļø AUTO-CONTINUING to Phase 3: Build GREEN š¢
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
š Files Created
logs/contexts/{workflow-id}/deliverables/
āāā PHASE_2_TEST_RED.md (test cases and scaffolding report)
šÆ What Happens Next
After Phase 2 completes:
- Auto-continues to
/workflow:phase:3- Build GREEN (implement code to make tests pass)
š Related Documentation
- Phase Guide:
docs/phases/PHASE_2_TEST_RED.MD - Detailed Test Scaffolding:
commands/workflow/phase-2-test.md - Previous Phase:
commands/workflow/phase-1.md - Next Phase:
commands/workflow/phase-3.md - Workflow Start:
commands/workflow/start.md
Status: Active command Related: workflow:phase:1, workflow:phase:3, workflow:approve
Stats
Stars9
Forks2
Last CommitMar 12, 2026