一键导入
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 职业分类
Initialize a new specification with detailed project description
OpenUltraSAST patch, fix audit, differential review, adversarial review, and patch validation workflow. Use when proposing or auditing fixes for OpenUltraSAST findings from opencode.
OpenUltraSAST Kiro implementation steering. Use when continuing `.kiro/specs/openrouter-sast-harness/tasks.md`, choosing the next phase, updating checkboxes, or keeping implementation aligned with the spec.
OpenUltraSAST scan, index, quick, standard, deep, SARIF, and report workflows. Use when running or planning `ousast scan`, repository indexing, or evidence-gated SAST analysis from opencode.
OpenUltraSAST false-positive elimination, ranking calibration, evidence ladder, verifier triage, and finding adjudication. Use when reviewing findings, reducing false positives, or deciding whether evidence is enough.
| 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) parsing.kiro/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 .kiro/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 .kiro/specs/{feature-name}/brief.md for feature context
2. Read the roadmap at .kiro/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 .opencode/skills/kiro-spec-init/SKILL.md, then create spec.json and requirements.md
b. Generate requirements: Read .opencode/skills/kiro-spec-requirements/SKILL.md, then follow its steps
c. Generate design: Read .opencode/skills/kiro-spec-design/SKILL.md, then follow its steps
d. Generate tasks: Read .opencode/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:
.kiro/specs/*/design.md (primary: contains interfaces, data models, architecture).kiro/specs/*/requirements.md (for scope and acceptance criteria).kiro/specs/*/tasks.md (for boundary annotations only -- read Boundary: lines, skip task descriptions).kiro/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:
.kiro/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: