Kiro spec batch
Skill gdm257/cc-plugins/plugins/cc-sdd-skills/skills/kiro-spec-batch
Create complete specs (requirements, design, tasks) for all features in roadmap.md using parallel sub-agent dispatch by dependency wave.From its SKILL.md
npx -y skills add gdm257/cc-plugins --skill kiro-spec-batchAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
8.7 KB, ~1.9k tokens by cl100k_base, as published. Nobody here has run it
Spec Batch
<background_information>
- Success Criteria:
- All features have complete spec files (spec.json, requirements.md, design.md, tasks.md)
- Dependency ordering respected (upstream specs complete before downstream)
- Independent features processed in parallel via sub-agent dispatch
- Cross-spec consistency verified (data models, interfaces, naming)
- Mixed roadmap context understood without breaking
## Specs (dependency order)parsing - Controller context stays lightweight (sub-agents do the heavy work) </background_information>
Step 1: Read Roadmap and Validate
- Read
.kiro/steering/roadmap.md - Parse the
## Specs (dependency order)section to extract:- Feature names
- One-line descriptions
- Dependencies for each feature
- Completion status (
[x]= done,[ ]= pending)
- If present, also read for context:
## Existing Spec Updates## Direct Implementation CandidatesDo not include these in dependency-wave execution; they are awareness-only inputs for sequencing and consistency review.
- For each pending feature in
## Specs (dependency order), verify.kiro/specs/<feature>/brief.mdexists - If any brief.md is missing, stop and report: "Missing brief.md for: [list]. Run
$kiro-discoveryto generate briefs first."
Step 2: Build Dependency Waves
Group pending features into waves based on dependencies:
- Wave 1: Features with no dependencies (or all dependencies already completed
[x]) - Wave 2: Features whose dependencies are all in Wave 1 or already completed
- Wave N: Features whose dependencies are all in earlier waves or already completed
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.
Step 3: Execute Waves
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 .agents/skills/kiro-spec-init/SKILL.md, then create spec.json and requirements.md
b. Generate requirements: Read .agents/skills/kiro-spec-requirements/SKILL.md, then follow its steps
c. Generate design: Read .agents/skills/kiro-spec-design/SKILL.md, then follow its steps
d. Generate tasks: Read .agents/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:
- Verify each feature has: spec.json, requirements.md, design.md, tasks.md
- If any feature failed, report the error and continue with features that succeeded
- Display wave completion: "Wave N complete: [features]. Files verified."
- Proceed to next wave
Step 4: Cross-Spec Review
After all waves complete, spawn a single sub-agent for cross-spec consistency review. Use the spec-reviewer custom agent if available (configured with model = "gpt-5.4" and model_reasoning_effort = "high" in .codex/agents/spec-reviewer.toml). 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.md
Reading 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:
- Data model consistency: Same entities defined consistently across specs (field names, types, relationships)
- Interface alignment: Where spec A outputs what spec B consumes, do contracts match exactly?
- No duplicate functionality: Any capability specified in more than one spec?
- Dependency completeness: Every design.md references correct upstream specs? Implicit dependencies not in roadmap?
- Naming conventions: Component names, file paths, API routes, table names consistent across specs?
- Shared infrastructure: Shared concerns (auth, error handling, logging) handled in one spec and correctly referenced?
- Task boundary alignment: Task Boundary: annotations partition codebase cleanly? No files claimed by multiple specs?
- Roadmap boundary continuity: If roadmap includes
Existing Spec UpdatesorDirect Implementation Candidates, do the generated new specs avoid absorbing that work by accident? - Architecture boundary integrity: Do the specs preserve clean responsibility seams, avoid shared ownership, keep dependency direction coherent, and include enough revalidation triggers to catch downstream impact?
- Change-friendly decomposition: Has any spec absorbed multiple independent seams that should probably be split instead of kept together?
Output: CONSISTENT areas + ISSUES with (which specs, what's inconsistent, suggested fix).
After the review sub-agent returns:
- Critical/important issues found: Dispatch fix sub-agents for each affected spec to apply the suggested fixes. If the issue is really a decomposition problem (for example boundary overlap or one spec carrying multiple independent seams), stop and return to roadmap/discovery instead of papering over it locally. Re-run cross-spec review after fixes (max 3 remediation rounds).
- Minor issues only: Report them for user awareness, proceed to Step 5.
- No issues: Proceed to Step 5.
Step 5: Finalize
- Scan
.kiro/specs/*/tasks.mdto verify all specs exist - For each completed spec, read spec.json to confirm phase and approvals
- Update roadmap.md: mark completed specs as
[x] - If roadmap.md includes
Existing Spec UpdatesorDirect Implementation Candidates, leave them untouched and mention them as remaining follow-up items unless already explicitly completed elsewhere
Display 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>
</instructions>
Critical Constraints
- Controller stays lightweight: Only read roadmap.md and brief.md existence checks in main context. All spec generation happens in sub-agents.
- Wave ordering is strict: Never start a wave until all features in previous waves are complete.
- Parallel within waves: All features in the same wave should be dispatched in parallel if multi-agent is available.
- No partial waves: If a feature in a wave fails, still complete the other features in that wave before reporting.
- Skip completed specs: Features with
[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.
Safety & Fallback
Sub-agent failure:
- Log the error, skip the failed feature
- Continue with remaining features in the wave
- Report failed features in the summary
- Suggest: "Run
$kiro-spec-quick <feature> --automanually for failed features."
Circular dependencies:
- If dependency graph has cycles, report the cycle and stop
- Suggest: "Fix dependency ordering in roadmap.md"
Roadmap not found:
- Stop and report: "No roadmap.md found. Run
$kiro-discoveryfirst."
All specs already complete:
- Report: "All specs in roadmap.md are already complete. Nothing to do."
What ships with it: 1 file
131 B alongside SKILL.md
agents/
- openai.yaml131 B