/prometheus-skills-mini:kbd-initfrom prometheus-skills-mini
Use once per project, before any other KBD command — auto-discovers project identity, stack, and constraints from existing context files (AGENTS.md, CLAUDE.md, README.md, package.json, Cargo.toml, pyproject.toml, etc.) and generates .kbd-orchestrator/project.json and .kbd-orchestrator/constraints.md.
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.
Read when SKILL.md points to them; scripts run unread.
Initialize the KBD orchestrator for the current project.
/kbd-initowns full project configuration discovery. Phase creation and advancement helpers ownproject.json.activePhase, preserve unrelated keys, and remove the legacyactive_phasealias. If metadata is missing, those helpers may bootstrap minimal identity and active-phase metadata; this does not replace/kbd-initfor full stack, policy, and constraint discovery.
Before this stage, follow the orchestrator preflight: use the pinned OpenSpec 2.1.0 CLI through the managed runner — session start runs the read-only verify; phase entry runs refresh, which updates existing KBD/OpenSpec projects — then use that same runner for OpenSpec commands. Retry a pending phase-entry refresh before OpenSpec work; preserve authored specs and task state. Phase scripts run this automatically, including canonical-runtime paths.
Scans the current repository to auto-discover project identity and configuration, then generates two project-specific files:
.kbd-orchestrator/project.json — project context, stack commands, tool preferences.kbd-orchestrator/constraints.md — project-specific blocking/warning rules derived
from AGENTS.md "Never Do" section and known stack conventionsResolve every references/ and scripts/ path in this skill relative to this
SKILL.md's own directory (skills/kbd-init/). Never resolve resources
through another checkout or a cached copy of this pack.
Read in priority order:
/kbd-init "My Project Name"AGENTS.md — first H1 or "Project Identity" sectionCLAUDE.md — first H1 or executive summary first sentenceREADME.md — first H1package.json → name + descriptionCargo.toml → [package] name + descriptionpyproject.toml → name + descriptionDetect from lock files / config files:
| File Present | Stack |
|---|---|
pnpm-lock.yaml or package.json + next.config.* | Next.js (pnpm) |
package.json + vite.config.* | Vite/React |
package.json (no framework) | Node.js |
Cargo.toml | Rust |
pyproject.toml | Python |
go.mod | Go |
build.gradle | JVM |
*.sln or *.csproj | .NET |
Derive from package.json scripts, Cargo.toml, Makefile, or common conventions:
build, test, lint, dev, check script keyspnpm run dev script or default to 3000cargo check --workspace, cargo test --workspace, cargo clippyAGENTS.md, CLAUDE.md, and equivalent project instructions for mandatory
command wrappers, environment variables, toolchain selectors, and storage paths.CARGO_TARGET_DIR).project.json command fields,
every compiling command: in constraints.md, and every generated workflow
trigger. For chained commands, apply the required prefix to each affected
command segment; a prefix on the first cargo command does not cover a later
cargo command after &&.After deriving commands, perform a read-only prerequisite preflight:
Check in order:
openspec/specs/*.md — if openspec/ directory existsdocs/specs/*.md — if docs/specs/ existsdocs/*.md — fallbackopenspec_available: falseOpenSpec (2.0.0, pack-pinned) is the primary spec engine; GitHub Spec Kit is the supported
backup. Take --spec-engine openspec|speckit|native-kbd (default openspec)
and record the choice as "specBackend" in project.json.
Existing projects are never switched. If project.json already pins
specBackend, or the project already has openspec/, a Spec Kit tree
(.specify/ or specs/*/tasks.md) or native changes
(.kbd-orchestrator/changes/*/tasks.json), keep that engine and record it.
openspec — initialize through the managed runner, naming the harnesses
in use (comma-separated OpenSpec tool ids, e.g. claude,codex,opencode):
node "<mini-pack-root>/lib/platform/openspec/cli.mjs" init --project "<project-root>" --tools claude,codex
The receipt reports already-initialized when openspec/ exists. A failed
receipt (for example Node.js below 22.20.0) leaves the project unpinned;
report it instead of falling back to native files.
speckit — run specify init --here --force --non-interactive --integration <harness>
(Spec Kit CLI pinned in config/spec-engines.json, installed with
uv tool install specify-cli --from git+https://github.com/github/[email protected]).
If specify is absent, report it as a prerequisite.
native-kbd — only on explicit request; no external CLI is needed.
Set openspec_available to true only when openspec/ exists after this step.
OpenSpec 2.0 writes its skills once to .agents/skills/openspec-*; the pack copies
them (never links) into the other harness skill roots, and OpenSpec 2.0 creates no
/opsx:* commands. Never edit an openspec-* skill — put project instructions in
openspec/config.yaml (context, rules).
Write "verificationMethod": "VLBV" to project.json (keep an existing value).
VLBV is the pack's single verification method: acceptance scenarios are adopted
before generation, and generated code executes only at the value-phase boundary
(B4) or an authorized repair (B5) —
kbd-process-orchestrator/references/boundaries.md. A phase that must deviate
records a signed KBD-METHOD decision naming the method, its execution cadence and
its reason; no per-phase decision is needed to use VLBV, and a different value in
project.json cannot deviate (method-context reports it as a blocker).
Read AGENTS.md sections:
Preserve explicit ownership and path exceptions. Do not infer that a directory is disposable solely because it is hidden or named like tool state. Reconcile proposed constraints with explicit project rules and existing tracked paths, and scope each constraint so it does not contradict a documented exception.
Apply the command environment policy from Step 3 to every compiling command: or
workflow trigger emitted in this file.
If no AGENTS.md, use generic constraints from
skills/kbd-init/references/constraints.md in this project.
Search for a .code-workspace file starting from the focus project's parent directory:
<focus_project_path>/../*.code-workspace<focus_project_path>/../../*.code-workspace<focus_project_path>/*.code-workspaceIf found, read all folders entries and auto-assign roles:
| Heuristic | Role |
|---|---|
Folder IS the focus project (cwd or contains AGENTS.md) | focus |
Folder name contains MVP, legacy, spec, reference, old | reference |
| Otherwise | Ask user: focus / reference / ignore |
For reference folders, detect useful read paths:
src/pages/Doc*.jsx, src/pages/DocPage*.jsx — legacy spec filesdocs/**/*.md — documentation*.md files — readme/specsWrite the workspace block to project.json. If not found, set
workspace.workspace_file = null and use single-project mode.
See skills/kbd-init/references/workspace-context.md for the full specification.
If AGENTS.md contains an "Agent-Specific Notes" section referring to specific
tools, use those to populate preferred_planning_agent and
preferred_execution_agents. Otherwise default to a sensible planning agent
name for this harness and leave execution as an empty list.
.kbd-orchestrator/project.jsonGenerated from skills/kbd-init/references/schemas/project.template.json with
discovered values and conforming to
skills/kbd-init/references/schemas/project.schema.json:
{
"name": "<discovered project name>",
"description": "<discovered one-line description>",
"activePhase": null,
"verificationMethod": "VLBV",
"focus_project_path": "<absolute path to focus project root>",
"spec_paths": ["<discovered spec paths>"],
"openspec_available": true,
"constraint_file": ".kbd-orchestrator/constraints.md",
"build_health_command": "<detected build command>",
"test_command": "<detected test command>",
"lint_command": "<detected lint command>",
"dev_command": "<detected dev command or null>",
"preferred_planning_agent": "<from AGENTS.md or a sensible default>",
"preferred_execution_agents": ["<from AGENTS.md or empty>"],
"agents_config": { "...": "..." },
"workspace": {
"workspace_file": "<path to .code-workspace or null>",
"folders": [
{ "path": "<focus>", "role": "focus", "write_access": true },
{
"path": "<reference>",
"role": "reference",
"write_access": false,
"purpose": "<what to read from here>",
"read_paths": ["<glob>"]
}
]
}
}
.kbd-orchestrator/constraints.mdGenerated from skills/kbd-init/references/constraints.md in this project, with
project-specific blocking rules derived from AGENTS.md's "Never Do" section.
Mandatory command environments apply to every affected command in this file, and
documented path-ownership exceptions remain explicit.
After writing both files, run the validator bundled beside this SKILL.md:
node skills/kbd-init/scripts/kbd-init-validate.mjs "<project-root>"
Resolve skills/kbd-init/scripts/kbd-init-validate.mjs from this project's
own root. The validator checks JSON readability and mandatory Cargo
environment propagation. It never writes project files.
initialization complete; execution blocked: required path unavailable: <path>..kbd-orchestrator/project.json already exists, print a diff of what
would change and ask for confirmation before overwriting./kbd-init --force skips confirmation and overwrites./kbd-init --dry-run prints the discovered values without writing files.
Apply the same command-policy and prerequisite checks in memory, including the
execution-blocked warning when an external path is unavailable.Before any other action, emit:
Starting kbd-init — <project-name or argument>
When all steps are complete, emit:
Completed kbd-init — <project-name or argument>
Use the project name from the argument or the discovered project name. Emit to plain response text — no tool call needed.
/kbd-init # Auto-discover everything
/kbd-init "HotSeaters" # Override project name
/kbd-init --force # Overwrite existing project.json
/kbd-init --dry-run # Preview without writing
/kbd-init --spec-engine speckit # Use GitHub Spec Kit instead of OpenSpec
Run /kbd-status to confirm KBD is correctly initialized, then start the
first phase — or run /kbd-assess directly if a phase is already defined in
activePhase (readers also accept the legacy active_phase alias).
Before dependent work, run node <pack-root>/scripts/kbd-method-context.mjs --project <project-root> --phase <canonical-phase-id> --write (or read the phase-local method-context.md when Node is unavailable) and act on its status:
RESOLVED_REFERENCES — continue with the recovered method, contract and stage authority; preserve the same references in role inputs, dispatch and handoff read order.BLOCKED — the contract, its binding, a calibration reference, a supersession or a deviation's cadence/reason is missing or changed, or canonical status is unavailable; resolve it explicitly. Prior commands, memory and tool inventories are not fresh authority.CONFLICT — a governing rule file the active harness loads grants an exception VLBV forbids (for example a compiler check or an hourly integration gate during generation). Stop before dependent work and show the conflict; continue only after the operator records a KBD-POLICY-ACK decision for that file's current hash. Never rewrite operator-owned policy, and never treat an exception as authority for tests, builds, dry-runs or generated-code verification.VLBV is the method for every phase (project default verificationMethod: "VLBV"); a deviation exists only as a signed KBD-METHOD decision naming the method, its execution cadence and its reason, and it is disclosed in the closure packet. Define acceptance before generation; generated code executes only at the value-phase boundary (B4) and, after an authorized repair, at B5 — see kbd-process-orchestrator/references/boundaries.md. Tasks, hours, commits, reviewer requests and compiler problems create no boundary. Preserve original evidence, consumed budgets and unresolved effects across resume and supersession; reconcile an uncertain effect before any retry. Full rules: kbd-process-orchestrator/references/method-context.md.
At this stage also discover the project's governing host instructions and the actual host capability (instruction-only, observed, enforced within a named boundary, or unsupported), and report an existing policy conflict, such as a compiler exception under VLBV, before dependent execution.
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).