Generate phased implementation blueprint with parallel research subagents. Use when: a clarified specification is ready for architecture planning, creating task tables, scoring complexity, and defining implementation phases.
Standardmäßig ist der Prompt ausgewählt, der zuerst die Quelle prüft. Sie können zu einem direkten Befehl wechseln oder eine lokale Kopie herunterladen.
Quelldateien prüfen
Lesen Sie SKILL.md und alle von SkillsMP angezeigten Begleitdateien, bevor Sie sich für eine Installation entscheiden.
Mit Codex oder Claude installieren Kopieren Sie diesen Prompt, fügen Sie ihn in Codex, Claude oder einen anderen Assistant ein und lassen Sie die Skill-Seite prüfen und installieren.
Ein direkter Befehl überspringt den Prüf-Prompt. Prüfen Sie die Quelle, bevor Sie ihn ausführen.
Generate phased implementation blueprint with parallel research subagents. Use when: a clarified specification is ready for architecture planning, creating task tables, scoring complexity, and defining implementation phases.
SDD Phase 4: Architect
[!IMPORTANT]
NO TIME ESTIMATES. Use CS-1 through CS-5 complexity scoring exclusively. Never predict hours, days, or sprints.
Inputs
slug (Optional): Slug from prior phases. Inferred from the most recent SDD plan directory if omitted.
spec (Optional): Path to the specification file from Phase 2/3.
dossier (Optional): Path to the research dossier from Phase 1.
Build system (Makefile, Justfile, Taskfile.yml, scripts/)
Test framework (test directories, test configuration files)
Directory patterns and naming conventions
Extract and document:
Build command, test command, coverage threshold (if any)
Naming conventions, module/service topology, CI platform
Unknown values become explicit [TODO] markers — never assume silently.
Step 1: Validate Entry Gate
Read the specification and verify readiness:
Confirm no unresolved [NEEDS CLARIFICATION] markers remain (warn if found but do not block).
Confirm a Testing Strategy section or a Clarifications section with a testing approach answer exists in the specification. If neither exists, ask the user for the testing approach before proceeding.
If architecture documentation exists in doctrine, validate the specification aligns with documented boundaries and patterns.
If critical gaps are found (no spec file, no acceptance criteria), stop and report them to the user.
Step 2: Launch Parallel Research Subagents
Select research depth based on workflow mode (from Clarifications section) and available artifacts.
Simple Mode (or when dossier already exists)
Launch 2 parallel subagents when the user selected Simple mode in Clarify, or when a research dossier already exists:
Implementation Strategist — analyze the specification against the dossier findings. Identify implementation order, phase boundaries, dependency chains, and risk-adjusted sequencing.
Risk and Mitigation Planner — cross-reference dossier constraints with specification acceptance criteria. Identify blockers, fallback strategies, and validation checkpoints.
Full Research Mode (Full mode selected and no dossier)
Launch 4 parallel subagents when Full mode was selected and no research dossier exists:
Codebase Pattern Analyst — use file search, grep, and read operations to map existing architecture, conventions, integration points, and established patterns relevant to the specification.
Technical Investigator — identify constraints, API limits, framework quirks, and dependency gotchas that affect implementation.
Discovery Documenter — catalog specification ambiguities, implications, edge cases, and existing tests or documentation that inform the plan.
Dependency Mapper — trace module dependencies, boundaries, shared contracts, and cross-cutting concerns for affected areas.
Evidence-First Pattern
Each subagent follows this investigation sequence:
Gather evidence using glob, grep, and file read operations.
Analyze findings against the specification requirements.
Produce 5-8 numbered discoveries per subagent.
Step 3: Synthesize Discoveries
Collect findings from all subagents, deduplicate, and order by impact. Produce a minimum of 10 final discoveries.
Each discovery follows this format:
### Discovery D-01: {Title}***Category**: {Pattern | Integration | Convention | Constraint}
***Impact**: {Critical | High | Medium | Low}
***Evidence**: {file:line reference}
***Description**: {What was found}
***Why It Matters**: {Impact on implementation}
***Example**:
❌ WRONG:
{Incorrect pattern with brief explanation}
✅ CORRECT:
{Correct pattern with brief explanation}
***Action Required**: {What the implementation must do}
Discoveries without file:line evidence become [UNVERIFIED] markers.
Step 4: Score Complexity
Assess complexity using the CS-1 through CS-5 rubric with six factors:
Factor
Score (0-2)
Rationale
Surface Area (S)
Integration (I)
Data/State (D)
Novelty (N)
Non-Functional (F)
Testing (T)
Total
CS-{N}
Step 5: Generate Phased Plan
Create the plan file at .copilot-tracking/plans/{date}/{slug}/{slug}-plan.md using the template at .copilot-tracking/templates/sdd-design-template.md.
Phase Decomposition
Break the implementation into ordered phases. Each phase should be independently buildable and testable when possible. Annotate phase dependencies explicitly.
Task Tables
Each phase uses the 6-column task table format with 4-state checkboxes:
| Status | ID | Task | Path(s) | Done When | Notes |
|--------|------|-------------------|-----------------|-----------------------|-------|
| [ ] | T001 | {Task description} | {/path/to/file} | {Success criteria} | |
Reference the project's build command, test command, and coverage threshold from doctrine. Do not hardcode tool-specific commands. Use the format:
## Validation* Build: {per doctrine build command}
* Test: {per doctrine test command}
* Coverage: {per doctrine threshold, or [TODO] if unknown}
Historical Measurement Feedforward
Before finalizing the plan, scan for prior Cycle Measurement Summaries to inform planning:
Search .copilot-tracking/plans/*/ for directories containing reviews/review.md files.
Read any ## Cycle Measurement Summary sections found in those review reports.
If prior measurement data exists:
Note the average fix-cycle count for similar complexity scores (CS-N) — flag if historically high rework.
Note discovery density trends — inform phase sizing if prior cycles at this complexity had high discovery rates.
Note cycle time trends — provide context for plan scope relative to historical durations.
Include a ### Historical Context subsection in the plan summarizing relevant prior metrics.
If no prior measurement data exists, include: "No historical measurement data available — first measured cycle. Metrics from this cycle will establish the baseline for future feedforward."
Step 6: Present Plan for Review
Present the completed plan to the user with:
The complexity score and rationale.
Phase count and dependency annotations.
Total task count across all phases.
Key discoveries that most influence the plan structure.
Any [TODO] markers that require user input.
[!IMPORTANT]
STOP. Present the plan to the user and wait for approval before proceeding to Phase 5 (Implement). The user may request adjustments to phase boundaries, task ordering, or scope.