Answers questions about the state of a BDK project with the bdk command line - the resolved configuration and where a value comes from, where an autopilot run stands, the findings of a review round, plan part limits, check results, the rules for a stage, the ADRs that bind a path - and routes work to the right /bdk:* skill. Use when asked to show a BDK setting, why a run or review stopped, what a round holds, or which bdk command does something.
---
name: cli
description: Answers questions about the state of a BDK project with the bdk command line - the resolved configuration and where a value comes from, where an autopilot run stands, the findings of a review round, plan part limits, check results, the rules for a stage, the ADRs that bind a path - and routes work to the right /bdk:* skill. Use when asked to show a BDK setting, why a run or review stopped, what a round holds, or which bdk command does something.
allowed-tools: Bash(${CLAUDE_PLUGIN_ROOT}/bin/bdk *) Read Glob Grep
metadata:
fronts-cli: bdk
---
Answer from `bdk`, not from memory or by reading `.bdk/` files. Run it as `"${CLAUDE_PLUGIN_ROOT}/bin/bdk"`, one command per call. `bdk --help` lists the groups, `bdk <group> --help` the commands; read the help of a command before its first use. Add `--json` to parse the result. Exit 1 means "the answer is no" with a normal result (a red check): read stdout. Exit 2 is a usage error, 3 an environment error, 4 a bug.
Questions you answer with a read command:
- Which value a setting has and where it comes from, or whether the configuration is valid: `bdk config show [<key>]` and `bdk config check`.
- Where the autopilot run stands, which Change is current, what stage each is in: `bdk run status`.
- What a review round holds, by level and decision: `bdk findings list <log>`; the log is `.bdk/runs/<change>/review/round-<N>/findings.jsonl`.
- Whether the plan parts of a Change fit the limits and name each scenario of its issue once: `bdk plan check <dir> --issue <issue.md>`.
- Which rules a role reads for its stage and files: `bdk rules for`.
- Which ADRs bind a set of paths, and whether the ADRs and their index are consistent: `bdk adr for --files <path>` and `bdk adr check`.
- Whether the C4 architecture doc agrees with its module map and the source tree: `bdk arch check`.
- What a branch changes and how reviewers split it: `bdk git scope <base>` and `bdk git groups <base>`; the comments a range adds: `bdk git comments <from>..<to>`.
- How long a finished run took, what it cost per stage and agent, and what the detectors flag in its transcripts: `bdk diagnostics report [<change>]`. For the analysed report, with the run files and fixes, use `/bdk:diagnose-run`.
- Whether issues on GitHub are open or closed: `bdk tracker states --issue <ref>`, one `--issue` per issue.
Commands that write belong to a stage skill; call one yourself only when the user asks for exactly that: `bdk config set` (user's request), `bdk findings add`, `bdk findings level` and `bdk findings decide` (review, judge, triage), `bdk findings report` (rewrites review.md), `bdk arch render` (rewrites the diagrams of the architecture doc after its module map changed), `bdk check record` (execute, review; `bdk check prepare` only writes a plan, the lines it prints are the check), `bdk adr index` (`/bdk:adr`), `bdk adr accept` (the design gate), `bdk adr reject` (design-draft) and `bdk adr status` (close), `bdk tracker create`, `bdk tracker fetch`, `bdk tracker sync` and `bdk tracker split` (the stages that read and write the change's issue). The host runs `bdk hooks session-start` and `bdk hooks pre-tool-use`; never call them.
The CLI never runs a stage. For work, not a question, use the skill: `/bdk:run` for an intent or issues to pull requests, `/bdk:propose`, `/bdk:design`, `/bdk:plan`, `/bdk:execute`, `/bdk:auto-review`, `/bdk:close` for one stage, `/bdk:debug` for a bug, `/bdk:pr-review` for a pull request, `/bdk:diagnose-run` to analyse a finished run.
Done when the reply states what the command printed, in your words, and names the command you ran.