/prometheus-skill-pack:kbd-goalfrom prometheus-skill-pack
Platform-agnostic goal-driven iterative loop. State a goal; KBD orchestrates Ideation → Specification → Creation phases autonomously until the goal is met, a budget is exhausted, or human approval is needed. Works identically on Claude Code, Codex CLI, OpenCode, Kimi Code, and Zed — routing to each platform's native /goal primitive where available, implementing the evaluator pattern where not.
Ships in prometheus-skill-pack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Always think in terms of user goals and value—not in tests or assumptions.
Before selecting or planning a unit of work, state the user's intended outcome and why it matters. Anchor intended behavior in exact representative examples and observed evidence; distinguish confirmed requirements from assumptions. Before proposing a solution, query, or test, record plain-language, verifiable business rules in the existing accepted specification or behavior contract: condition, expected outcome, supporting evidence, exceptions, and unresolved assumptions. Do not invent a separate workflow or treat assumptions as rules. Trace scoped end-of-phase BDD scenarios to those rules. Test outcomes verify user value; they do not define it. Preserve established build, release, phase-end BDD/VLBV processes and approval gates unchanged.
Drive a complete goal from statement to implementation using KBD's iterative loop engine — platform-agnostic, multi-phase, with bias-resistant evaluation.
Before any other action, emit:
Starting kbd-goal — <goal slug>
When the goal waypoint is written and the loop is configured, emit:
Completed kbd-goal — <goal slug> (phases: <list>)
Emit to plain response text — no tool call needed.
/kbd-goal "build a weekly standup generator CLI in Go"
/kbd-goal "add dark mode to the dashboard" --phases spec,creation
/kbd-goal "refactor auth module" --phases creation --stop "all tests pass, lint clean"
/kbd-goal "<description>"
Runs all three phases: Ideation → Specification → Creation. Human gate between each phase.
/kbd-goal "<description>" --phases ideation,spec,creation
/kbd-goal "<description>" --phases ideation,spec,creation,deployment
Specify which phases to run. deployment requires --deploy-target <env>.
/kbd-goal "<description>" --phases creation --stop "<stopping condition>"
Skip Ideation and Specification — you supply the stopping condition directly.
On Claude Code and Codex, this delegates to native /goal for the execution loop.
/kbd-goal "<description>" --tokens 200000 --max-turns 30
Sets a token ceiling and turn limit across all phases.
kbd-goal-discover.sh prints recommended skills
and MCP servers for your goal's domain (advisory, non-blocking)..kbd-orchestrator/goals/<slug>/goal.json written.The skill reads $TOOL env var → .kbd-orchestrator/current-waypoint.json → tool
→ defaults to claude-code.
| Detected Tool | Strategy |
|---|---|
claude-code | Single-phase Creation → native /goal. Multi-phase → KBD orchestrates, delegates Creation per-phase. Ideation/Spec always KBD-owned. |
codex | KBD writes goals/continuation.md + goals/budget_limit.md; invokes codex /goal "<phase-condition>" per phase. |
opencode | Requires @prevalentware/opencode-goal-plugin (auto-installed). KBD sets goal via create_goal tool; manages phase transitions via update_goal. |
kimi | Uses /goal next to queue phases. kbd-goal-check skill evaluates stopping condition after each turn. |
zed | ACP-connected to Claude Code/Codex → delegates to their bridge. Standalone → KBD drives loop via session/prompt + kbd-goal-evaluator subagent. |
During implementation keep evaluators and reviewers dormant. Inspect progress through canonical state without running verification. At the completed boundary use actual build and functional-run evidence. A native goal tool owns its own continuation and budget; discover capabilities rather than assuming identical behavior across harnesses.
All goal state lives in .kbd-orchestrator/goals/<slug>/:
| File | Contents |
|---|---|
goal.json | Goal definition, phases, status, tool, budgets |
IDEAS.md | Ideation phase output — scored candidates, survivor table |
SPEC.md | Specification phase output — user stories, CLI/API contract, acceptance criteria |
TASKS.md | Creation phase task checklist ([ ], [/], [x], [~]) |
STATE.md | Execution state — completed/total, active task, fail counts, escalations, promotions |
Converges on 3 validated candidates before proceeding.
See references/templates/ideation-phase.md
Loop: discovery agent proposes candidates → kbd-idea-critic (Sonnet) scores
each on 4 rubric dimensions → loop continues until ≥3 candidates score ≥7.0
aggregate → human selects from IDEAS.md.
Ends only when adversarial reviewer returns PASS.
See references/templates/spec-phase.md
Loop: spec-writer drafts SPEC.md → kbd-spec-reviewer stress-tests for
ambiguity and untestable criteria → writer revises → repeat until PASS →
human approves SPEC.md.
Complete the approved production increment, then build and operate it at its delivery boundary.
See references/templates/creation-phase.md
Loop: decompose approved scope, implement every production task, then build the deliverable and run its actual function. Fix boundary failures before promoting work-ahead. Do not run per-task tests or verifier loops. Use delivery-cadence for timed, independently usable deliveries.
When a task fails 3+ times, kbd-goal-promote.sh automatically spawns a child
KBD phase (kbd-new-child <task-slug>) with full context in handoff-in.md.
The parent loop marks the task [~] promoted and continues with other tasks.
The loop stops when ANY of:
goal.json → status = complete)--tokens ceiling)--max-turns)max_no_progress_turns consecutive turns with no STATE.md changeAt goal start, kbd-goal-discover.sh analyzes the goal description and prints:
Recommended skills: golang-patterns, golang-testing
Recommended MCPs: context7, surreal-memory
Rationale: Goal mentions Go; golang-patterns covers idioms; context7 for Go docs
Load recommended skills with /skill-name before the loop begins.
Goals are resumable across sessions:
/kbd-goal --resume <slug>
Reads goal.json + STATE.md, picks up from the last incomplete task.
Each phase ends with a human gate (unless --auto-gates is set). Gates use
/pmpo-elicit to collect the decision with provenance and record it in goal.json.
When --auto-gates is NOT set:
Invoke /pmpo-elicit with the candidate list from IDEAS.md:
question: "Ideation complete. IDEAS.md has <N> candidates. Which direction to pursue?"options: 2–4 candidate names extracted from IDEAS.mdcriticality: highcaller: kbd-goal/ideationOn Claude Code: use AskUserQuestion with candidate options.
On other platforms: call pmpo-elicit-checkpoint.sh, write checkpoint to
goals/<slug>/elicitations/<id>/, pause the goal loop.
On result:
goal.json → phases[ideation].human_gate_result:
{"decision": "<candidate>", "provenance": "<provenance>", "elicitation_id": "<id>"}When --auto-gates IS set:
{"decision": "auto-approved", "provenance": "implicit", "elicitation_id": null}When --auto-gates is NOT set:
Invoke /pmpo-elicit:
question: "Specification complete. SPEC.md is ready. How do you want to proceed?"options: ["Approve — begin Creation", "Request revision", "Stop here"]criticality: highcaller: kbd-goal/specOn result:
goal.json → status = "stopped-at-spec"goal.json → phases[spec].human_gate_result (same structure as above)When any elicitation is triggered during the Creation phase (ambiguity, security concern, or blocked task):
STATE.md → escalations[]:
{"id": "<elicitation-id>", "question": "<question>", "status": "pending", "task_id": "<active-task>"}{"status": "resolved", "provenance": "<provenance>", "answer": "<answer>"}See skills/process/pmpo-elicit/references/escalation-points.md for the full
platform routing table and async checkpoint contract.
When a cadence profile is requested, use delivery-cadence and kbd-loop directly with Node .mjs scripts. Preserve an existing goal.json.loop_controller owner and reference the selected cadence profile in its cadence configuration. This mode does not invoke the legacy shell launchers or auto-install plugins. Detect the current native goal capability; otherwise remain in the current session with resumable state. Phase architecture approvals remain mandatory unless the operator explicitly approved them.
When a cadence binding exists, use delivery-cadence child enter after the canonical child transition, and child return after canonical parent restoration with explicit return evidence. Keep the parent clock running and preserve publication debt. Nested children do not count as separate deliveries. On every resumed session, reconcile canonical position before admitting scope. Load delivery-cadence/references/child-recovery.md for commands and failure recovery. An architectural approval is never implied by autonomous iteration policy.
Use the authored dispatch contract to retain the named capability, complete featureOperation, approved creation task when needed, source/output ownership and candidate/work-ahead references. A child or change split cannot silently move the only operation to a later delivery. KBD owns scope revisions and completion; Cadence dispatch metadata does not authorize either.
After the completed current candidate is frozen, admit at most one approved independent work-ahead scope in isolated roots. Work-ahead is an assignment, not a second active iteration or phase. Preserve firstWorkAt; promote only after local delivery, required hooks, child return, review and repaired-base conditions are satisfied. Current failures receive repair priority; only disjoint authorized edits continue.
Do not hold the entire team idle for platform publication. Track candidate-specific obligations and one in-flight/one pending release; protect any version/branch the existing publisher consumes. Required remote capabilities must be observed, not inferred from local locks. Installed acceptance can remain explicitly pending independently of publication scheduling. Preserve approved duration and recurrence rather than asking again after every delivery. No background continuation is implied.
references/goal-directory-layout.md (opens in a new tab)references/platforms/claude-code.md (opens in a new tab)references/platforms/codex.md (opens in a new tab)references/platforms/kimi.md (opens in a new tab)references/platforms/opencode.md (opens in a new tab)references/platforms/zed.md (opens in a new tab)references/schemas/goal.schema.json (opens in a new tab)references/skill-discovery.md (opens in a new tab)references/templates/creation-phase.md (opens in a new tab)references/templates/ideation-phase.md (opens in a new tab)references/templates/spec-phase.md (opens in a new tab)scripts/kbd-goal-start.sh (opens in a new tab)scripts/test-kbd-goal-start.sh (opens in a new tab)templates/codex/budget_limit.md (opens in a new tab)templates/codex/continuation.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub prometheus-ags/prometheus-skill-system --plugin prometheus-skill-pack2 plugins in one repository ship this exact skill · first indexed Nov 27, 2026
218 skills in this plugin
/actor-modelTokio-native actor model pattern for Prometheus AGS projects. Implements actors as tokio tasks communicating via mpsc channels with a typed message enum, enabling safe concurrent state management without shared locks. Used in UAR session management, pk-librarian event broadcasting, and parking-lot scheduler design. Use when a component needs to own state exclusively while serving concurrent callers.
/adversarial-reviewIsolated, cross-model adversarial review of KBD artifacts and change diffs. Dispatches a fresh-context LLM judge over an OpenAI-compatible REST gateway (openai-proxy or `liter-llm api`) with an explicit mandate to find problems — the model that produced an artifact or change is never the model that reviews it. Runs as a pipeline stage inside kbd-assess/analyze/plan (artifact mode) and kbd-execute's single phase-boundary QA step (diff mode, once over the whole phase diff). Findings are severity-bucketed (CRITICAL/WARNING/SUGGESTION) and the judge's own report is screened by sycophancy-correction before it is surfaced.
Other plugins' skills for the same job
/agent-team-creatorCreate, revise, package, and deploy agent-team definitions with staged questions and native exports for UAR, Codex, Claude Code, Copilot, Kimi Code, MiniMax CLI, OpenCode and DeepSeek. Use for team definition and catalog lifecycle; use agent-team-manage for active runtime task state.