kiro-spec-design
Create comprehensive technical design for a specification
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Create comprehensive technical design for a specification
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Read and write the M3E mind-map via local REST API at `/api/maps/`. Use this skill whenever the user asks to view, query, add, update, move, color, delete, or restructure nodes in an M3E map, or when they mention "map", "node", "tree", "色付け", "ノード", or refer to the M3E viewer. Also trigger on bulk edits, structural reorganization, listing/creating/renaming maps, resolving paths copied from the viewer, or operating on style attributes (fill / urgency / importance / status).
Minimal instruction for scoped worker agents. Use when receiving or preparing bounded worker tasks in M3E / Akaghef-System, and when an M3E request contains !!! / !!! or asks for recurrence prevention, durable rule changes, worker guardrails, or agent instruction updates.
Decide M3E map structure before writing or delegating. Use when a task involves scope, scopen/unscopen, layouting, display intent, facet choice, edge/link/alias choice, cross-facet relations, path ambiguity, or worker handoff.
Read and write the M3E mind-map via local REST API at `/api/maps/`. Use this skill whenever the user asks to view, query, add, update, move, color, delete, or restructure nodes in an M3E map, or when they mention "map", "node", "tree", "色付け", "ノード", or refer to the M3E viewer. Also trigger on bulk edits, structural reorganization, listing/creating/renaming maps, resolving paths copied from the viewer, or operating on style attributes (fill / urgency / importance / status).
ユーザーから投げられたアイデア・テーマを docs/ideas/<group>/<topic>/ フォルダに 「複数選択肢を並べる・採否を決めない・実装は考えない」方式で ブレインストーミング展開するスキル。レビュー前のアイデア整理用。 以下の場面でトリガーする: - 「ブレスト」「ブレインストーミング」「アイデアを整理」「アイデア化」と言われたとき - 「色々な選択肢を考えて」「網羅的に並べて」「いっぱい案を出して」と言われたとき - 「docs/ideas/に入れて」「idea化」「実行に移せる程度に詳細化された設計を作って」と言われたとき - ユーザーが新しいテーマや機能アイデアを投げてきて「フォルダ作って」「整理して」と言うとき - 「採用するかは決めない」「実装は考えない」前提で考えてほしいと言われたとき
Read and write the M3E mind-map via local REST API at `/api/maps/`. Use this skill whenever the user asks to view, query, add, update, move, color, delete, or restructure nodes in an M3E map, or when they mention "map", "node", "tree", "色付け", "ノード", or refer to the M3E viewer. Also trigger on bulk edits, structural reorganization, listing/creating/renaming maps, resolving paths copied from the viewer, or operating on style attributes (fill / urgency / importance / status).
| name | kiro-spec-design |
| description | Create comprehensive technical design for a specification |
| metadata | {"shared-rules":"design-principles.md, design-discovery-full.md, design-discovery-light.md, design-synthesis.md, design-review-gate.md"} |
<background_information>
Read all necessary context:
.kiro/specs/$1/spec.json, requirements.md, design.md (if exists).kiro/specs/$1/research.md (if exists, contains gap analysis from $kiro-validate-gap)product.md, tech.md, structure.md.kiro/settings/templates/specs/design.md for document structurerules/design-principles.md from this skill's directory for design principles.kiro/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/specs/$1/research.md using the shared templateresearch.mdApply design synthesis to discovery findings before writing.
rules/design-synthesis.md from this skill's directoryresearch.mdLoad Design Template and Rules:
.kiro/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/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/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/settings/templates/specs/design.md structure.
Requirements Not Approved:
$kiro-spec-design $1 -y to auto-approve requirements and proceed"Missing Requirements:
.kiro/specs/$1/requirements.md"$kiro-spec-requirements $1 to generate requirements first"Template Missing:
.kiro/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/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 $1