Run after PM approves prd.md. Scans the codebase to fill sections 5-6, proposes EA/GA scope cut, and appends Scope Proposal to prd.md in one pass.
86
81%
Does it follow best practices?
Impact
92%
2.42xAverage score across 3 eval scenarios
Advisory
Suggest reviewing before use
Fills engineering context and proposes EA/GA scope in one pass. Run after PM sets status: approved on prd.md, before tech design.
/analyze --project <name>Project: --project <name> or .current-project — stop if neither.
Precondition: prd.md must have status: approved.
Read docs/projects/<name>/prd.md in full. Verify status: approved — stop if not. Check design-mocks in frontmatter.
Fetch design mocks (if present): If design-mocks is set and non-empty, use mcp__claude_ai_Figma__get_design_context. Extract: screens per user story, interaction complexity (simple toggle vs. multi-state flows), edge-case states (empty, error, loading), MVP vs. polished signals. Write a ### Design Mocks Summary subsection into section 5 when filling it in Step 3 — downstream skills (/tech-design, /func-req) read from there instead of re-fetching.
Ask: "Which GitHub repos contain the code for this feature? Provide as org/repo. Include every repo touched by any user story — cross-repo dependencies (separate services, shared libraries, AI/ML backends) are easy to miss."
Wait for the response. Scan each repo via GitHub MCP, guided by the user story descriptions. Focus on:
For each finding, record a one-line reason and source file location:
- `events` table has no index on `user_id` — queries will be slow at scale
(found: schema/events.sql, no index defined)
- Export pattern already exists — reuse recommended
(found: app/services/exports/csv_export.rb)
- Auth team dependency: token → user resolution not implemented
(flagged: stories mention "who accessed" but no resolution logic found)If the engineering lead cannot identify a repo for a surface, note it as "Repo unknown — manual identification required" in Section 6.
prd.mdUpdate docs/projects/<name>/prd.md sections 5-6 in place. Do not modify sections 1-4.
Add <!-- repos-scanned: [org/repo, ...] --> as the first line of Section 5.
Technical feasibility check: After filling sections 5-6, scan for findings that may block or fundamentally reshape the feature:
Output as: ⚠️ Feasibility flag: <finding> — recommend eng lead reviews before proceeding. These are informational — they do not stop execution.
For each user story, assess EA vs GA based on four signals:
P1 stories where signals conflict → Needs Discussion. Flag with EA case, GA case, and a recommendation. If Figma was used, include a brief note (e.g., "Mocks show 4 edge-case states — higher design complexity than P1 signal suggests").
prd.mdAppend to the bottom of docs/projects/<name>/prd.md:
---
## Scope Proposal
Generated: <date>
### EA Scope
✅ US-01 [P0] As a <persona>, I want <capability>...
Reason: <one line — priority signal + complexity signal>
✅ US-04 [P1] As a <persona>, I want <capability>...
Reason: <one line>
---
### GA Scope
⏩ US-03 [P2] As a <persona>, I want <capability>...
Reason: <one line — why deferred>
---
### Needs Discussion (<N> items)
<!-- If N=0, write: "All stories have clear signals — no discussion needed." -->
⚡ US-02 [P1] As a <persona>, I want <capability>...
EA case: <reason>
GA case: <reason>
Recommendation: <EA or GA> — <one sentence rationale>
---
### Summary
EA: <N> stories
GA: <N> stories
Needs discussion: <N> itemsUI-only check: If all affected surfaces are UI/frontend-only (no API, DB, backend workers, or external service changes), add: "Affected surfaces appear UI-only. You may be able to skip /tech-design — /func-req will confirm and offer a UX-only path."
"Analysis complete. Sections 5-6 filled and Scope Proposal appended to
docs/projects/<name>/prd.md.(N=0) All stories have clear signals — no meeting needed. Review and reply approved.
(N>0) <N> stories need a scope decision — each has an EA case, GA case, and recommendation. Hold a quick joint meeting (~20 min), move each ⚡ item to ✅ EA or ⏩ GA, then reply approved."
If the user replies with approval language ("approved", "lgtm", "looks good", "done", etc.):
/tech-design — generates the full architecture spec: system overview, API contracts, DB schema, and infra plan scoped to the approved EA/GA cut. Run /tech-design --project <name> when ready."/tech-design and /func-req check status: approved on prd.md + no remaining ⚡ items in the Scope Proposal./analyze is safe — it overwrites sections 5-6 and the Scope Proposal section if they already exist.585e8a6
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.