/prometheus-skills-mini:kbd-reflectfrom prometheus-skills-mini
Use to generate the phase reflection report after all changes in a KBD phase are complete — goal achievement, delivered changes, artifact quality summary, technical debt, lessons captured, and recommended focus for the next phase. Seeds the next phase's planning inputs.
Ships in prometheus-skills-mini. 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.
None: SKILL.md is the whole skill.
Run the Reflect phase of the KBD lifecycle.
Generates .kbd-orchestrator/phases/<phase-name>/reflection.md summarizing:
Reflection measures how accurate the phase's adopted contract was, so the next phase's spec starts from real numbers. Read the counts from contract lineage and the KBD journal. For legacy phases also use the closure packet and boundary results. Record unavailable metrics as unknown.
| Metric | Value |
|---|---|
| Contract amendments after adoption | 1 (scope correction, signed) |
| BLOCKED caused by the contract (missing fixture, wrong entry point, unrunnable oracle) | 0 |
| NOT_EXERCISED scenarios | 1 (SCN-7, fixture unavailable) |
| Repair attempts used / allowed | 1 / 2 |
| Post-closure escapes (defects found after CLOSED that a scenario should have caught) | 0 |
| Static QA / review findings at B4 step 5 (critical / warning) | 0 / 3 |
| Pre-authorization runner artifacts listed in the closure packet | 0 |
Write the same block to .kbd-orchestrator/phases/<phase>/accuracy.json so the
next phase's discovery and spec review can cite it. Recurring constraint
violations from the B4 step-5 refiner pass (when artifact-refiner is installed)
are listed underneath, by constraint and file — not by change.
The phase must have completed the B4 sequence
(kbd-process-orchestrator/references/boundaries.md):
implementation_status: COMPLETE in progress.json)boundary-results.json.closure-packet.md identify the disposition.kbd-apply; native
changes moved to .kbd-orchestrator/changes/archive/<date>-<id>/These are separate prerequisites: implementation completion drives the N/N counter, while the boundary verdicts, QA, verification and archival drive evidence, certification and publication/lifecycle fields. A phase closed unmet (FAIL or BLOCKED) is still reflected; record what remains.
FIRST tool call of every turn: Read .kbd-orchestrator/position-reminder.txt (if it exists) to get the current phase, step N of T, and next command. If that file is absent, read .kbd-orchestrator/current-waypoint.json.
Before any other action, emit to plain response text (BEFORE any tool call):
Starting kbd-reflect — <phase-name> (step N of T)
When all steps are complete, emit:
Completed kbd-reflect — <phase-name> (step N of T)
How to get N and T: use the phase-scoped taskCounts.runtime.completed and .total in the JSON
report from node scripts/kbd-apply.mjs reconcile <phase> --json. Include
the progress projection and backend counts where they disagree. For a legacy
project without runtime state, label its counts as projection-only.
Use the canonical phase name from the argument or current-waypoint.json. Emit to plain response text — no tool call needed.
progress.json — incorporate work done by all tools
Run node scripts/kbd-apply.mjs reconcile <phase> --json. Exit 0 establishes
task consistency; exit 1 identifies drift to resolve; exit 2 means the scan
was incomplete and must not be described as clean. Archived changes are
inspected directly, without reopening or replaying their tasks. Use
--repair only for supported active-phase drift. Keep separately waived or
deferred acceptance and certification visible; reconciliation does not pass them.closure-packet.md, closure.json, boundary-results.json and the B4 step-5 QA/review receipts; compute the contract-accuracy metricsopenspec/changes/archive/ if OpenSpec,
or .kbd-orchestrator/changes/archive/ if native KBD.kbd-orchestrator/phases/<phase>/reflection.md/kbd-next-phase. For a contract-bound phase that authorization is an operator-signed start-successor manifest (--authorize-successor <manifest> --signature <sig>); closure alone never starts a successor, and reflection text, review findings or memory cannot supply that authority — the Next Phase Seed is a proposal, never adopted scope/kbd-reflect # uses active waypoint phase
/kbd-reflect phase-1-foundation # explicit phase name
After the execute handoff and reflection review have been accepted, run the
installed package's node <pack-root>/scripts/kbd-reflection-finalize.mjs --phase <id> --accepted from the consumer project. This executable writes
accepted reflection lessons and dispatches phase completion after canonical
closure. Retry the same command to complete pending actions. For a signed
operator exit, supply --superseded <manifest> --signature <signature> to
the evaluator. Read its canonical closure packet before writing the reflection.
In the goal table show each exercised verdict, withdrawal destination, budget
basis and explicit limits. Put only withdrawn work assigned to the proposed
successor into Next Phase Seed. Keep the terminal token visible, including
CLOSED_UNMET for an exit with no exercised evidence.
The reflect gate requires the execute handoff. After the reflection report
is written, record the closing handoff — the next phase's assess stage seeds
from it plus reflection.md:
import { stageGate, stageHandoffWrite } from '../../lib/kbd/stage-gate.mjs';
const gate = stageGate('reflect', { cwd });
if (gate.status !== 0) throw new Error(gate.stderr);
// … write reflection.md …
stageHandoffWrite(
'reflect',
'<1–3 sentences: deltas found, corrective actions, recommended next phase>',
['reflection.md'],
{ cwd },
);
A missing handoffs/ directory does not bypass required predecessors.
A missing required handoff fails with remediation: complete the predecessor
stage, or record an explicit skip with its reason under project policy.
A deliberate stage skip is recorded with
stageHandoffSkip('reflect', '<reason>', { cwd }).
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub prometheus-ags/prometheus-skills-mini --plugin prometheus-skills-mini106 skills in this plugin
/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 per-change QA gate (diff mode). Findings are severity-bucketed (CRITICAL/WARNING/SUGGESTION) and the judge's own report is screened by sycophancy-correction before it is surfaced.
/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.Other plugins' skills for the same job
/agent-team-handoffPrepare and accept a durable handoff between agent roles or coding harnesses using task context, Git identity, evidence and memory references. Use when work must continue in another harness or agent; use agent-team-manage for ordinary same-owner task updates. Do not use for ordinary same-owner task updates (see agent-team-manage).