Create an ordered implementation plan for a TriStar feature. Builds file dependency graph, maps acceptance criteria to files, defines wave-based execution order, and identifies risks.
"Plan the work. Then work the plan."
This skill converts architecture design into an actionable, ordered implementation plan. Every file to create or modify is listed with dependencies, acceptance criteria mappings, and test strategies.
--feature=<name> (required) - Feature name matching existing artifactsdocs/artifacts/<feature>/problem_spec.md must existdocs/artifacts/<feature>/design_spec.md must existdocs/artifacts/<feature>/design_review.md must exist with APPROVE or APPROVE_WITH_CONCERNS decisionRead all feature artifacts:
docs/artifacts/<feature>/problem_spec.md - Requirements and acceptance criteriadocs/artifacts/<feature>/design_spec.md - Component design, API contracts, data modelsdocs/artifacts/<feature>/design_review.md - Review findings and concerns to addressdocs/ARCHITECTURE.md - System architecture baselineExtract every file that needs to be created or modified from the design spec:
For each file, determine its dependencies:
Assign each file to a wave based on the TriStar dependency ordering (see references/tristar-dependencies.md):
For each acceptance criterion from the problem spec:
For each implementation file:
Flag implementation risks:
Save to: docs/artifacts/<feature>/implementation_plan.md
Create or update .claude/checkpoints/<feature>/artifact_digest.md with:
# Implementation Plan: <feature-name>
## Overview
- Total files: N (M new, K modified)
- Waves: 7
- Estimated complexity: Low / Medium / High
## Wave Plan
### Wave 1: Shared Types
| # | File | Action | COMP-ID | Description |
|---|------|--------|---------|-------------|
| 1 | src/shared/types/offer-brief.ts | MODIFY | COMP-001 | Add new fields to OfferBrief |
**Wave 1 Verification:**
- [ ] TypeScript compiles without errors
- [ ] Zod schema validates correctly
### Wave 2: Backend Models
| # | File | Action | COMP-ID | Description |
|---|------|--------|---------|-------------|
| 2 | src/backend/models/offer_brief.py | MODIFY | COMP-002 | Mirror OfferBrief changes in Pydantic |
**Wave 2 Verification:**
- [ ] Pydantic model validates correctly
- [ ] Fields match Wave 1 Zod schema
### Wave 3: Backend Services
...
### Wave 4: Backend API Routes
...
### Wave 5: Frontend Services
...
### Wave 6: Frontend Components
...
### Wave 7: Tests
| # | File | Action | Tests For | Scenarios |
|---|------|--------|-----------|-----------|
| N | tests/unit/backend/test_offer_brief.py | NEW | COMP-002 | Validation, edge cases |
**Wave 7 Verification:**
- [ ] All unit tests pass
- [ ] Coverage > 80%
- [ ] Integration tests pass
## Acceptance Criteria Mapping
| AC ID | Description | Files | Test File | Wave |
|-------|-------------|-------|-----------|------|
| AC-001 | Given X, When Y, Then Z | file1, file2 | test_file | 3,4 |
## Risk Register
| Risk | Impact | Mitigation | Wave |
|------|--------|------------|------|
| R-001: Schema sync | High | Implement Wave 1+2 together, verify match | 1-2 |
## Design Review Concerns
| Finding | Severity | How Addressed |
|---------|----------|---------------|
| F-001: Missing error handling | Major | Added try/catch in Wave 4 files |
## Implementation Order Summary
1. Wave 1: Shared types (foundation)
2. Wave 2: Backend models (must match Wave 1)
3. Wave 3: Backend services (business logic)
4. Wave 4: Backend routes (API layer)
5. Wave 5: Frontend services (API clients)
6. Wave 6: Frontend components (UI layer)
7. Wave 7: Tests (verification layer)
references/tristar-dependencies.md - Layer dependency ordering and wave assignment rules