wayfinder
MAmattpocock/skills337k4,978 new stars in the last 7 days
Create comprehensive technical design for a specification
<background_information>
Read all necessary context:
{{KIRO_DIR}}/specs/$1/spec.json, requirements.md, design.md (if exists){{KIRO_DIR}}/specs/$1/research.md (if exists, contains gap analysis from /kiro-validate-gap)product.md, tech.md, structure.md{{KIRO_DIR}}/settings/templates/specs/design.md for document structurerules/design-principles.md from this skill's directory for design principles{{KIRO_DIR}}/settings/templates/specs/research.md for discovery log structureValidate requirements approval:
-y flag provided ($2 == "-y"): Auto-approve requirements in spec.jsonCritical: This phase ensures design is based on complete, accurate information.
Classify Feature Type:
Execute Appropriate Discovery Process:
For Complex/New Features:
rules/design-discovery-full.md from this skill's directoryFor Extensions:
rules/design-discovery-light.md from this skill's directoryFor Simple Additions:
The following research areas are independent and can be dispatched as sub-agents. The agent should decide the optimal decomposition based on feature complexity — split, merge, add, or skip sub-agents as needed. Each sub-agent returns a findings summary (not raw data) to keep the main context clean for synthesis.
Typical research areas (adjust as appropriate):
For simple additions, skip sub-agent dispatch entirely and do a quick pattern check in main context.
After all findings return, synthesize in main context before proceeding.
Retain Discovery Findings for Step 3:
Persist Findings to Research Log:
{{KIRO_DIR}}/specs/$1/research.md using the shared templateresearch.md already exists, briefly record consulted skills and the guidance used in its existing research notes.research.mdApply design synthesis to discovery findings before writing.
rules/design-synthesis.md from this skill's directoryresearch.mdLoad Design Template and Rules:
{{KIRO_DIR}}/settings/templates/specs/design.md for structurerules/design-principles.md from this skill's directory for principlesGenerate Design Draft:
_Boundary:_ annotations and implementation Task Briefs — vague file structures produce vague implementations.design.md yetrules/design-review-gate.md from this skill's directorydesign.mdWrite Final Design and Research Log:
{{KIRO_DIR}}/specs/$1/design.md only after the design review gate passesresearch.md updates that support the finalized designUpdate Metadata in spec.json:
phase: "design-generated"approvals.design.generated: true, approved: falseapprovals.requirements.approved: trueupdated_at timestampany; prefer precise types and generics.Command execution output (separate from design.md content):
Provide brief summary in the language specified in spec.json:
{{KIRO_DIR}}/specs/$1/design.mdresearch.md that shaped the designresearch.md updated with latest decisionsFormat: Concise Markdown (under 200 words) - this is the command output, NOT the design document itself
Note: The actual design document follows {{KIRO_DIR}}/settings/templates/specs/design.md structure.
Requirements Not Approved:
/kiro-spec-design $1 -y to auto-approve requirements and proceed"Missing Requirements:
{{KIRO_DIR}}/specs/$1/requirements.md"/kiro-spec-requirements $1 to generate requirements first"Template Missing:
{{KIRO_DIR}}/settings/templates/specs/design.md"Steering Context Missing:
Invalid Requirement IDs:
Spec Gap Found During Design Review:
design.mdrequirements.md, then re-run /kiro-spec-design $1If Design Approved:
{{KIRO_DIR}}/specs/$1/design.md/kiro-validate-design $1 for interactive quality review/kiro-spec-tasks $1 -y to generate implementation tasksIf Modifications Needed:
/kiro-spec-design $1MAmattpocock/skills337k4,978 new stars in the last 7 days
MAmattpocock/skills337k4,978 new stars in the last 7 days
MAmattpocock/skills337k4,978 new stars in the last 7 days
MAmattpocock/skills337k4,978 new stars in the last 7 days
MAmattpocock/skills337k4,978 new stars in the last 7 days
MAmattpocock/skills337k4,978 new stars in the last 7 days