con un clic
kiro-spec-design
Create comprehensive technical design for a specification
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Menú
Create comprehensive technical design for a specification
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Basado en la clasificación ocupacional SOC
| name | kiro-spec-design |
| description | Create comprehensive technical design for a specification |
| metadata | {"cross-skill-rules":".kiro/settings/templates/specs/localized-spec-terminology.md","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.mdspec.json.language: .kiro/settings/templates/specs/design.md for ja, or .kiro/settings/templates/specs/design.en.md for en. Stop for missing or unsupported languages..kiro/settings/templates/specs/localized-spec-terminology.md for localized spec termsrules/design-principles.md from this skill's directory for design principlesspec.json.language: .kiro/settings/templates/specs/research.md for ja, or .kiro/settings/templates/specs/research.en.md for en. Stop for unsupported languages.Validate 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 selected research templateresearch.mdApply design synthesis to discovery findings before writing.
rules/design-synthesis.md from this skill's directoryresearch.mdLoad Design Template and Rules:
spec.json.language: .kiro/settings/templates/specs/design.md for ja, or .kiro/settings/templates/specs/design.en.md for en. Stop for unsupported languages.rules/design-principles.md from this skill's directory for principlesGenerate Design Draft:
.kiro/settings/templates/specs/localized-spec-terminology.md with concrete file paths and responsibilities. Analyze the codebase to determine which files need to be created vs. modified. Each file must have one clear responsibility. This section directly drives task _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 the selected design template structure for spec.json.language.
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:
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 $1Kiro / SDD の新規 spec 作成、kiro-discovery、kiro-spec-init、要件化、 仕様化、feature brief 作成に進む前に使う入口スキル。ユーザーの要求を そのまま kiro-* 系スキルへ渡さず、先に grill-with-docs で用語・境界・ 不可逆な設計判断を詰め、必要に応じて CONTEXT.md と docs/adr/* に残してから kiro-discovery または kiro-spec-init へつなぐ。新しい作業の相談、曖昧な feature idea、Kiro spec の起票、requirements 化の依頼では、ユーザーが 明示的に grilling を省略すると言わない限りこのスキルを使うこと。既存 spec の status 確認、requirements/design/tasks/impl の継続、単純な実装、 既に十分な brief.md がある作業では使わなくてよい。
Kiro / SDD の spec から未登録のユビキタス言語、canonical term、 avoid term、不変条件、境界名、契約名、ADR 候補となる仕様変更を検出し、 domain-modeling / grill-with-docs で確定してから CONTEXT.md と docs/adr/* に反映するスキル。ユーザーが「.kiro/specs を見て未定義語を拾って」、 「Kiro spec から CONTEXT.md を更新して」、「spec の仕様変更を ADR に反映」、 「glossary gap を埋めて」、「ユビキタス言語を逆引きして」などを依頼した 場合に使う。単なる spec status 確認、requirements/design/tasks の生成、 実装、または Kiro に渡す前の要求整理には使わない。
TAKT ワークフローエンジン。Agent Team を使ったマルチエージェントオーケストレーション。ワークフロー YAML(steps / initial_step)に従ってマルチエージェントを実行する。
既存のTAKTワークフローとファセットを分析し、改善提案を行うスキル。ワークフローYAMLの構造検証、 ファセット間の整合性チェック、スタイルガイド準拠の確認、未使用ファセットの検出、 ルール設計の最適化提案を実施する。実行ログ(.takt/logs/*.jsonl)が存在する場合は ログベース診断分析も行い、ルール評価効率・ループホットスポット・ABORT率等を報告する。 references/taktのスタイルガイド・エンジン仕様を基準として分析する。 トリガー:「ワークフローを分析」「taktの設定を確認」「ファセットの品質チェック」 「ワークフローのレビュー」「takt analyze」「ワークフローの改善提案」 「ワークフローの整合性チェック」「taktの問題を見つけて」 「ログを分析」「実行ログの診断」「taktのログを見て」「ルール評価の統計」 「ai_fallbackの頻度」「ループの検出」
TAKTファセット(Persona/Policy/Instruction/Knowledge/Output Contract)の 個別作成・編集スキル。各ファセットのスタイルガイドに準拠した単体ファイルを生成する。 references/taktにあるスタイルガイド・ビルトインファセット群を参照資料として活用し、 ファセット種別の判断、テンプレート選択、品質チェックを行う。 トリガー:「ペルソナを作りたい」「ポリシーを追加」「インストラクションを書く」 「ナレッジを定義」「出力契約を作成」「ファセットを編集」「takt facet」 「レビュアーのペルソナ」「コーディングポリシー」
既存のTAKTワークフロー(ワークフローYAML・ファセット群)を最適化するスキル。 トークン消費削減、ステップ統合、ルール簡素化、ファセット再利用促進、 ループ制御の改善、並列化の提案を実施し、最適化後のファイルを直接生成する。 takt-analyzeの診断結果(静的分析・ログ診断)を入力として活用できる。 本スキルは「最適化の実行」のみを担い、診断・分析はtakt-analyzeに委譲する。 references/taktのエンジン仕様・スタイルガイドを基準とする。 トリガー:「ワークフローを最適化」「taktの高速化」「ワークフローを軽くしたい」 「トークンを減らしたい」「ステップを減らしたい」「takt optimize」 「ワークフローの効率化」「ファセットを整理したい」「ワークフローをスリムにして」 「taktのコスト削減」「ワークフローをシンプルにしたい」