Skip to content
Agent Orchestration
Skill

/spk-run-next

Drive the canonical spec-kitty next control loop and route query, step, blocked, decision_required, and terminal results.

BOOST
From plugin
spec-kitty
1.7k50 skills1 command
Install
$ npx -y skills add spec-kitty/spec-kitty --skill spk-run-next --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/spk-run-next

Context preview

The summary Claude sees to decide when to auto-load this skill.

Drive the canonical spec-kitty next control loop and route query, step, blocked, decision_required, and terminal results.

SKILL.md

spk-run-next.SKILL.md
name: spk-run-next
description: "Drive the canonical spec-kitty next control loop and route query, step, blocked, decision_required, and terminal results."

spk-run-next

Use this skill when advancing an active mission, asking what to do next, or recovering from a runtime decision.

Flow

1. Query state with `spec-kitty next --mission <handle> --json` or advance with `spec-kitty next --agent <name> --mission <handle> --result <success|failed|blocked>`. 2. Read the returned decision kind. 3. For `query`, inspect only; do not execute a prompt or mark a result. 4. For `step`, execute the generated prompt file. 5. For `decision_required`, answer with `--answer`, `--result`, `--agent`, and `--decision-id` when multiple decisions are pending. 6. For `blocked`, fix guard failures before retrying. 7. For `terminal`, route to `spk-gate-accept`.

Legacy Alias

For detailed runtime semantics, use `spec-kitty-runtime-next` when available.

Ships withspec-kitty

Spec-Driven Development with organizational governance. Specs tell AI agents what to build; Charter governs how they build it. Git-native missions, enforceable workflows, and consistent engineering standards across AI coding agents and harnesses.

Get the whole plugin
Stats
1,678
Stars
178
Forks
Active
Maintenance
Python
Language
MIT
License
just now
Last commit
0y ago
Created
14h ago
Added

Repo: spec-kitty/spec-kitty

Other skills on spec-kitty.