| name | description |
|---|---|
spec-kitty-cli-orchestration |
Orchestrate SpecKitty workflows across Claude CLI, OpenCode, and Codex with slash-command-first execution, reviewer-only feedback loops, retry/backoff handling, and deterministic phase gates (specify→plan→tasks→implement→review→accept→merge). |
Use this skill when you need to drive SpecKitty through external CLIs (Claude/OpenCode) while keeping Codex in reviewer-control mode. The goal is predictable throughput: slash commands first, clear gates, no direct implementer edits by the orchestrator.
- User asks to orchestrate Claude/OpenCode for SpecKitty execution.
- Work spans multiple repos and must be advanced in parallel through
specify,plan, andtasks. - You must review artifacts and provide change requests instead of editing implementation outputs directly.
- API instability (timeouts/500s) requires resilient retries and log-backed failure diagnosis.
- Slash-command first.
- Orchestrator is reviewer-only for implementer artifacts.
- Keep a decision log for each clarification answered during generation.
- Treat phase completion as gated: do not start implementation until
tasksartifacts are valid. - For 2.x initiatives, enforce 2.x-only scope and block 1.x feature additions.
- Confirm command templates exist (
.claude/commands/spec-kitty.*.mdor agent equivalent). - Run
/spec-kitty.statusto determine current feature and lane state. - Check branch constraints before
specify(some repos requiremain). - Confirm dashboard endpoint and open it (
/spec-kitty.dashboardorspec-kitty dashboard). - Confirm working tree cleanliness expectations (document any unrelated dirty files before proceeding).
- Send a prompt beginning with
/spec-kitty.specify. - Include complete team prompt scope inline.
- If external file reads are sandbox-blocked (OpenCode), inline all requirements and explicitly forbid external reads.
- Capture clarification Q&A as explicit decisions.
- Run
/spec-kitty.planafter spec exists. - Verify plan is not template-only.
- Review for mission/audit policy alignment and event/materialization constraints.
- Run
/spec-kitty.tasks. - Validate all expected WP prompt files exist under
tasks/. - Run
spec-kitty agent tasks statusand confirm total WP count matchestasks.md.
- Use
/spec-kitty.implementand/spec-kitty.reviewper WP. - Do not directly patch implementer output yourself.
- Feed back findings as concrete, file-targeted change requests.
- Re-run until acceptance checks are green.
- Run
/spec-kitty.acceptthen/spec-kitty.merge. - Confirm post-merge events/artifacts and metadata updates are emitted when policy enables audit.
Use this exact structure when sending implementer corrections:
Finding: short severity + issue summary.Evidence: file path and exact contradiction/defect.Required change: unambiguous instruction.Acceptance check: command/assertion that proves fix.
- Safe to parallelize across repos for
specify→plan→tasks. - Keep one active session per repo and poll independently.
- Pause parallelism when repos become dependency-coupled for implementation.
500 api_error(Claude/OpenCode backend): retry with backoff and model fallback.- Long silent runs: treat as hung after threshold, terminate, restart with narrower scope.
- OpenCode external-directory denial: remove path references and inline requirements.
- Branch gate failures (
specifyrequiresmain): switch workflow or pre-create feature on allowed branch intentionally.
Use script: scripts/run_cli_with_backoff.sh
Before declaring done:
- All targeted features have non-empty
spec.md,plan.md, and completetasks/WP*.md. - Implemented WPs pass repo tests and static checks.
- Decisions captured from clarifications are persisted in docs/artifacts.
- Version pin matrix updated across repos.
- SaaS redeploy executed and verified (
health, process groups, logs).
Use runbook commands:
fly deploy --config fly.dev.tomlfly deploy --config fly.prod.toml- Verify:
fly status --config <config>fly logs --config <config>curl https://<app>.fly.dev/health/
- Retry wrapper:
scripts/run_cli_with_backoff.sh - Failure signatures:
references/failure-signatures.md