/prometheus-skill-pack:kbd-initfrom prometheus-skill-pack
Initialize KBD in a project. 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. Run this once per project before any other KBD command.
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.
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 replacekbd-initfor full stack, policy, and constraint discovery.
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 conventionsThe directory containing this SKILL.md is the installed kbd-init payload.
Resolve every references/ and scripts/ path relative to that directory.
Never resolve resources through .agent/, a source checkout, a plugin cache, or
another version of the skill. The installed skill directory is read-only from
the project's perspective.
At session startup and before starting or entering a phase, resolve the installed
kbd-process-orchestrator skill directory as KBD_ORCHESTRATOR_ROOT and run:
node "$KBD_ORCHESTRATOR_ROOT/shared/openspec/cli.mjs" refresh --project "<project-root>" --timeout-ms 120000
This resolves the latest stable official OpenSpec CLI and refreshes the project's
generated OpenSpec skills/commands while preserving authored specs, changes and
custom configuration. Read the receipt: failed or pending refresh is unresolved,
not current-version proof. A cached offline version is explicitly unverified for
latest freshness. Resolve reported conflicts before dependent phase mutations.
OpenSpec is the primary spec engine for new projects (kbd-init initializes
it); existing native KBD projects keep working, and the helper skips projects
without an existing OpenSpec root.
Use the same preflight in harnesses without startup hooks and before raw
prometheus kbd phase commands that bypass the lifecycle scripts. Invoke
OpenSpec through the managed runner, including commands copied from generated
skills, rather than an independently versioned global executable:
node "$KBD_ORCHESTRATOR_ROOT/shared/openspec/cli.mjs" run --project "<project-root>" -- <openspec arguments>
The runner preserves CLI stdout for JSON consumers. Planning model assignments still never launches workers or changes inference providers. A dry-run or read-only request does not authorize this mutating refresh; report its pending preflight and defer it until a writable invocation.
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 "$KBD_ORCHESTRATOR_ROOT/shared/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-* and links them
into .claude/skills/ for Claude Code; it 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) — 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.
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 the skill's reference template.
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 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 antigravity for planning
and leave execution as an empty list.
.kbd-orchestrator/project.jsonGenerated from the bundled references/schemas/project.template.json with
discovered values and conforming to the bundled writer contract in
references/schemas/project.schema.json:
{
"name": "<discovered project name>",
"description": "<discovered one-line description>",
"activePhase": null,
"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 'antigravity'>",
"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 the bundled references/constraints.md template, with
project-specific blocking rules derived from AGENTS.md "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 "<kbd-init-skill-dir>/scripts/kbd-init-validate.mjs" "<project-root>"
Replace <kbd-init-skill-dir> with the directory containing this SKILL.md; do
not search another installation. 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:
kbd-new-phase <name> to start the first phase, ORkbd-assess if a phase is already defined in activePhase (readers also
accept the legacy active_phase alias)Before dependent work, run node shared/method-context.mjs --project <project-root> --phase <canonical-phase-id> --write from the resolved orchestrator root (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; 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 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 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: references/method-context.md.
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.