Develop phase with exploration and plan validation
YOU ARE EXECUTING THE /dev SKILL. The user triggered this skill. Follow ALL instructions below step by step. Do NOT treat this as a freeform conversation - execute the skill workflow.
Follow CLAUDE.md rules.
Ultra think before each phase transition:
$ARGUMENTS.spec$ARGUMENTS.phase$ARGUMENTS.doneLaunch focused agents in a single message (parallel execution). Scale agent count to task complexity.
| Scope | Backend agents | Frontend agents |
|---|---|---|
| Single file fix | 1 | 1 |
| Single-layer feature | 2 | 2 |
| Multi-layer feature | 2-3 | 2-3 |
| Cross-cutting / large feature | 3-4 | 3-4 |
explore-codebase: "Find entities, repository interfaces, value objects, and DTOs related to [feature] in backend/internal/domain/ and backend/internal/application/dto/"explore-codebase: "Find usecases related to [feature] in backend/internal/application/usecases/. Read their Execute methods, dependencies, and error handling"explore-codebase: "Find HTTP handlers and routes related to [feature] in backend/internal/presentation/. Check middleware, validation, response patterns"explore-codebase: "Find repo implementations, external service adapters, and config related to [feature] in backend/internal/infrastructure/"explore-codebase: "Find the most similar existing feature to [feature] in backend/. I need to replicate its patterns"explore-codebase: "Find components related to [feature] in frontend/src/components/. Check props, state, Shadcn UI usage"explore-codebase: "Find hooks, React Query calls, and state management related to [feature] in frontend/src/hooks/ and frontend/src/lib/"explore-codebase: "Find pages and layouts related to [feature] in frontend/src/app/. Check route structure, data fetching, i18n"explore-codebase: "Find TypeScript types, API client functions related to [feature] in frontend/src/types/ and frontend/src/lib/"explore-codebase: "Find the most similar existing feature to [feature] in frontend/src/. I need to replicate its patterns"| Need | Agent | Prompt |
|---|---|---|
| Database | explore-db | "dev - Find tables related to [feature], check schema, relationships, RLS policies" |
| Library docs | explore-docs | "[library] [specific feature] documentation" |
| Best practices | websearch | "[topic] best practices 2025 2026" |
After agents return, verify coverage across all dimensions:
explore-codebaseexplore-codebaseexplore-dbexplore-docsDo NOT proceed with incomplete context.
Display enriched plan:
## Phase $ARGUMENTS.phase
### Files to Create
- `path/file` - [purpose]
### Files to Modify
- `path/file:XX` - [what to change]
### Patterns to Reuse (from exploration)
- [existing code patterns found]
### Order
Backend: Domain -> Application -> Infrastructure -> Presentation
Frontend: Types -> API -> Hooks -> Components -> Pages
Ask with AskUserQuestion: "Proceed with implementation?"
After validation, implement in appropriate order:
Backend: Domain -> Application -> Infrastructure -> Presentation
Frontend: Types -> API -> Hooks -> Components -> Pages
any)For significant UI: Skill(skill="frontend-design:frontend-design")
# Backend
cd backend && go build ./... && go vet ./...
# Frontend
cd frontend && npm run build
Database verification: mcp__supabase-dev__XXXX
Check off completed items in the Execution Plan of the spec file.