spec-kit-parallel-orchestrator

📁 rexleimo/rex-skills 📅 9 days ago
4
总安装量
3
周安装量
#54145
全站排名
安装命令
npx skills add https://github.com/rexleimo/rex-skills --skill spec-kit-parallel-orchestrator

Agent 安装分布

amp 3
gemini-cli 3
claude-code 3
github-copilot 3
codex 3
kimi-cli 3

Skill 文档

Spec Kit Parallel Orchestrator

Overview

Transforms spec kit workflows from “single-threaded execution” to “3-6 Sub Agent parallel + stage aggregation”. Prioritizes parallel execution for independent nodes, strictly serial execution for strong dependency chains.

Trigger Conditions (Must Match)

Invoke this skill when any condition is met:

  1. User explicitly enters /speckit. prefixed commands, e.g., /speckit.specify, /speckit.plan, /speckit.tasks, /speckit.implement
  2. Codex CLI compatible form /prompts:speckit. also matches
  3. User mentions “spec kit workflow / spec-driven” and requests breakdown, planning, implementation
  4. User requests “parallel task splitting” or “multi-agent concurrent + stage aggregation”

State Machine

pending → in_progress → verifying → passing
               ↓              ↓
           blocked  ←  failed
Status Trigger
pending Initial state
in_progress harness-start.sh selects task
verifying harness-end.sh begins verification
passing All gates passed
failed E2E test failed
blocked Dependency incomplete or environment check failed

Harness Artifacts

specs/harness/
├── feature_list.json     # Feature definitions + status
├── progress.log.md       # Session history
├── session_state.json    # Current context
└── init.sh               # Environment check

Stage Alignment (github/spec-kit)

  1. Stage order: constitution -> specify -> clarify -> plan -> tasks -> implement
  2. /speckit.tasks parallel semantics: only parallelizable tasks run concurrently
  3. /speckit.implement must respect task dependencies

Execution Rules

  1. Validate stage and dependency analysis first
  2. Split into 3-6 subtasks (3 for medium, 4-6 for complex)
  3. Each subtask specifies: goal, input, output, boundary, file scope
  4. Only parallelizable nodes execute concurrently
  5. No write conflicts between subtasks
  6. Aggregate results, then proceed to next round

Gate Enforcement

Gate Verification
Working Tree Clean git status
New Commit Exists Compare commits
E2E Passed Custom command

Output Template

Each round outputs:

  1. Parallel task list (3-6)
  2. Completion status and outputs
  3. Conflicts/blockers
  4. Aggregation conclusion
  5. Next round plan

Scripts Reference

Script Purpose
harness-lib.sh Common functions
harness-init.sh Initialize
harness-start.sh Start session
harness-end.sh End session
harness-pick-next.sh Select task
harness-commit.sh Commit progress
harness-verify-e2e.sh E2E verify
harness-status.sh Status view

References