一键导入
kiro-spec-batch
Create complete specs (requirements, design, tasks) for all features in roadmap.md using parallel sub-agent dispatch by dependency wave.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Create complete specs (requirements, design, tasks) for all features in roadmap.md using parallel sub-agent dispatch by dependency wave.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
cc-sdd実装用統合ブランチのコミット群(ベースブランチとの差分)をreview slice単位のstacked PRに再構成する際に使用。「review sliceに分割」「stacked PRを作成」「PRをスタックして」「レビュー用にPRを分けて」「review slice stack」という依頼でトリガーする。dry-run(既定)でslice計画を提示し、apply指示で実際にブランチ・PRを作成する。
stacked PRの下位PRがマージされた後に上位branchをrestack(rebase/cherry-pick再構成)する際に使用。「restackして」「上位PRを更新して」「restack after merge」「PRのbaseを更新」「スタックを整理」という依頼でトリガーする。対象sliceの特定→rebase→変更ファイル確認と代表テスト実行→force-with-leaseでpush→PR base更新→auto-merge判定の順で進める。
リリース前の全ファイル静的解析スキル。プロジェクト構造を自動検出し、ソースモジュールごとのサブエージェントと依存関係スキャンを並列実行してコードベース全体の脆弱性を検出する。手動呼び出し専用: /sec-full-scan
ステージング環境にデプロイ済みのサーバーに対してランタイム検証を実行する。HTTPヘッダー・動的プローブ・認証テストに特化。手動呼び出し専用: /sec-runtime-scan [環境名]
PR・ブランチの変更差分(git diff)を静的解析してセキュリティ脆弱性を検出する。開発中・PRレビュー時に使用。手動呼び出し専用: /sec-diff-review
PRの未Resolveレビュー指摘に対応するスキル。「PRの指摘に対応して」「Resolveされていないスレッドを解消」「PR reviewの対応」「未解決のレビューコメントを修正」「Copilotの指摘を直して」「Codexの指摘に対応」「chatgpt-codex-connectorの指摘」「レビュー対応」で起動。PR URL or 番号 → 未Resolveスレッド取得 → 対象ファイル修正 → ユーザーへ最終ゲートとプッシュの実行手順を案内、の流れで進める。
| name | kiro-spec-batch |
| description | Create complete specs (requirements, design, tasks) for all features in roadmap.md using parallel sub-agent dispatch by dependency wave. |
<background_information>
## Specs (dependency order) parsingdocs/steering/roadmap.md## Specs (dependency order) section to extract:
[x] = done, [ ] = pending)## Existing Spec Updates## Direct Implementation Candidates
Do not include these in dependency-wave execution; they are awareness-only inputs for sequencing and consistency review.## Specs (dependency order), verify docs/specs/<feature>/brief.md exists/kiro-discovery to generate briefs first."Group pending features into waves based on dependencies:
[x])Display the execution plan:
Spec Batch Plan:
Wave 1 (parallel): app-foundation
Wave 2 (parallel): block-editor, page-management
Wave 3 (parallel): sidebar-navigation, database-views
Wave 4 (parallel): cli-integration
Total: 6 specs across 4 waves
If roadmap contains ## Existing Spec Updates or ## Direct Implementation Candidates, mention them separately as non-batch items so the user can see the whole decomposition.
For each wave, dispatch all features in the wave as parallel sub-agents.
For each feature in the wave, spawn a sub-agent with this task:
Create a complete specification for feature "{feature-name}".
1. Read the brief at docs/specs/{feature-name}/brief.md for feature context
2. Read the roadmap at docs/steering/roadmap.md for project context
3. Execute the full spec pipeline. For each phase, read the corresponding skill's SKILL.md for complete instructions (templates, rules, review gates):
a. Initialize: Read .github/skills/kiro-spec-init/SKILL.md, then create spec.json and requirements.md
b. Generate requirements: Read .github/skills/kiro-spec-requirements/SKILL.md, then follow its steps
c. Generate design: Read .github/skills/kiro-spec-design/SKILL.md, then follow its steps
d. Generate tasks: Read .github/skills/kiro-spec-tasks/SKILL.md, then follow its steps
4. Set all approvals to true in spec.json (auto-approve mode, equivalent of -y flag)
5. Report completion with file list and task count
If multi-agent is not available, execute features in the wave sequentially.
After all sub-agents in the wave complete:
After all waves complete, spawn a single sub-agent for cross-spec consistency review. This is the highest-value quality gate -- it catches issues that per-spec review gates cannot.
Sub-agent task:
Read ALL generated specs and check for consistency across the entire project:
docs/specs/*/design.md (primary: contains interfaces, data models, architecture)docs/specs/*/requirements.md (for scope and acceptance criteria)docs/specs/*/tasks.md (for boundary annotations only -- read Boundary: lines, skip task descriptions)docs/steering/roadmap.mdReading priority: Focus on design.md files (they contain interfaces, data models, architecture). For requirements.md, focus on section headings and acceptance criteria. For tasks.md, focus on Boundary: annotations.
Check:
Existing Spec Updates or Direct Implementation Candidates, do the generated new specs avoid absorbing that work by accident?Output: CONSISTENT areas + ISSUES with (which specs, what's inconsistent, suggested fix).
After the review sub-agent returns:
docs/specs/*/tasks.md to verify all specs exist[x]Existing Spec Updates or Direct Implementation Candidates, leave them untouched and mention them as remaining follow-up items unless already explicitly completed elsewhereDisplay final summary:
Spec Batch Complete:
✓ app-foundation: X requirements, Y design components, Z tasks
✓ block-editor: ...
✓ page-management: ...
...
Total: N specs created, M tasks generated
Cross-spec review: PASSED / N issues found (M fixed)
Existing spec updates pending: <count or none>
Direct implementation candidates pending: <count or none>
Next: Review generated specs, then start implementation with /kiro-impl <feature>
[x] in roadmap.md or existing tasks.md are skipped.## Specs (dependency order) remains authoritative for batch execution: Other roadmap sections are context, not wave inputs.Sub-agent failure:
/kiro-spec-quick <feature> --auto manually for failed features."Circular dependencies:
Roadmap not found:
/kiro-discovery first."All specs already complete: