/green-frontend-api - Implement Frontend API Client (Green Phase)
Orchestrates green-agent for frontend-api layer.
Usage
code
/green-frontend-api "Story name" "Scenario name" /green-frontend-api 2 "Registration API call" /green-frontend-api # Interactive selection
Workflow
- •Parse user input (story, scenario)
- •Load agent instructions from
.claude/agents/green-agent.md - •Load layer template from
.claude/templates/frontend/implementation.md - •Execute the following steps:
- •Find skipped test (
.skip) infrontend/src/ - •Read test (understand expectations) - READ-ONLY
- •Implement minimal fetch client in
.api.tsfile - •Remove
.skipfrom the test (ONLY allowed test change) - •Run test using
Skill tool: skill="test-frontend", args="{test-file-pattern}" - •Verify GREEN state
- •Run all tests using
Skill tool: skill="test-frontend" - •Verify no regression
- •Find skipped test (
- •Return result summary
Key Rules
- •TESTS ARE READ-ONLY - only remove
.skip - •Implement MINIMAL code to pass the test
- •Use
fetchAPI for HTTP calls - •Handle HTTP error codes appropriately
- •Use Skill tool for test execution (not npx directly)
Story Mapping
| # | Story |
|---|---|
| 01 | Login/Logout |
| 02 | Registration |
| 03 | Password Reset |
| 04 | Connect Calendar |
| 05 | Create Task |
| 06 | Edit Task |
| 07 | Delete Task |
| 08 | Archive/Restore Task |
| 09 | Task Detail View |
| 10 | Activity Log |
| 11 | Dashboard |
| 12 | Billing & Subscription |
Next Step
After green phase: /refactor or proceed to React component implementation