with one click
kiro-spec-requirements
Generate comprehensive requirements 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
Generate comprehensive requirements 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
| name | kiro-spec-requirements |
| description | Generate comprehensive requirements for a specification |
| metadata | {"shared-rules":"ears-format.md, requirements-review-gate.md"} |
<background_information>
Load Context:
.kiro/specs/$1/spec.json for language and metadata.kiro/specs/$1/brief.md if it exists (discovery context: problem, approach, scope decisions, boundary candidates).kiro/specs/$1/requirements.md for project descriptionproduct.md, tech.md, structure.mdRead Guidelines:
rules/ears-format.md from this skill's directory for EARS syntax rulesrules/requirements-review-gate.md from this skill's directory for pre-write review criteria.kiro/settings/templates/specs/localized-spec-terminology.md for localized spec termsspec.json.language: .kiro/settings/templates/specs/requirements.md for ja, or .kiro/settings/templates/specs/requirements.en.md for en. Stop for unsupported languages.The following research areas are independent. Decide the optimal decomposition based on project complexity -- split, merge, add, or skip sub-agents as needed.
In main context (essential for requirements generation):
Delegate to sub-agent (keeps exploration out of main context):
For greenfield projects with minimal codebase, skip sub-agent dispatch and load context directly. If multi-agent is not available, execute sequentially in main context.
After all research completes, synthesize findings in main context before generating requirements.
Generate Requirements Draft:
Boundary Candidates.kiro/settings/templates/specs/localized-spec-terminology.md_Boundary:_requirements.md yetReview Requirements Draft:
Requirements Review Gate from rules/requirements-review-gate.mdFinalize and Update Metadata:
.kiro/specs/$1/requirements.md only after the requirements review gate passesphase: "requirements-generated"approvals.requirements.generated: trueupdated_at timestampRequirements describe user-observable behavior, not implementation. Use this to decide what belongs here vs. in design:
Ask the user about (requirements scope):
Do not ask about (design scope — defer to design phase):
Litmus test: If an EARS acceptance criterion can be written without mentioning any technology, it belongs in requirements. If it requires a technology choice, it belongs in design.
spec.json.language from .kiro/settings/templates/specs/localized-spec-terminology.md; existing hybrid headings using the alternate Japanese/English term remain valid if the numeric ID is present. Do not use alphabetic IDs like "要件 A" or "Requirement A".
Provide output in the language specified in spec.json with:
Format Requirements:
spec.json doesn't specify languagerequirements.md, and ask the user to clarify the missing or conflicting scope before re-running $kiro-spec-requirements $1If Requirements Approved:
.kiro/specs/$1/requirements.md$kiro-validate-gap $1 to analyze implementation gap with current code$kiro-spec-design $1 -y to proceed to design phaseIf Modifications Needed:
$kiro-spec-requirements $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のコスト削減」「ワークフローをシンプルにしたい」