/context-budget:setup [check]from context-budget
Read-only check that verifies Node.js, Claude Code CLI, and Agent SDK prerequisites, reporting PASS/FAIL/INFO with remediation steps without installing or modifying anything.
Ships in context-budget. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
check's node, Claude Code CLI and Agent SDK probes ran at load time; read these rows instead
of re-issuing them. A path row shows the resolved path or absent; a version row shows what the
first PATH match reports, or unavailable when none resolves or it fails to run; the SDK row
shows present, absent, or unavailable when the plugin data directory cannot be read:
node: !command -v node 2>/dev/null || echo absentnode --version: !node --version 2>/dev/null || echo unavailableclaude: !command -v claude 2>/dev/null || echo absentclaude --version: !claude --version 2>/dev/null || echo unavailabled="${CLAUDE_PLUGIN_DATA}/sdk/node_modules/@anthropic-ai/claude-agent-sdk"; if [ -d "$d" ]; then echo present; elif [ -r "${CLAUDE_PLUGIN_DATA}" ]; then echo absent; else echo unavailable; fiA node or claude row reading [shell command execution disabled by policy] carries no result:
run that probe via Bash instead. The SDK row is never re-probed: read it as unavailable.
Check-only setup under the Check-only carve-out (docs/plugin-philosophy.md "Setup is explicit
and repeatable" in the marketplace repository). Every prerequisite is external (node, the
Claude Code CLI the engine measures, the optional @anthropic-ai/claude-agent-sdk for exact
mode), and its option is a native userConfig value stored only in pluginConfigs, which setup
may not write. So check inspects, reports and points at each remediation, and there is no
apply.
No argument or check runs the check. Non-interactive; never prompts.
check (read-only)What this plugin requires is owned by
${CLAUDE_PLUGIN_ROOT}/skills/audit/SKILL.md § Prerequisites and the header
of ${CLAUDE_PLUGIN_ROOT}/skills/audit/scripts/measure.mjs. Read it first, and do not copy it
into the report as a second inventory. Then read the pre-computed rows, run the remaining probes,
and report a PASS/FAIL/INFO table with one remediation line per FAIL. Modify nothing; install
nothing.
node on PATH: report the resolved path and version. It is the one hard prerequisite:
the measurement engine is a Node script, so without node /context-budget:audit stops
rather than estimating. FAIL when absent.--binary path to name.@anthropic-ai/claude-agent-sdk (optional): read the pre-computed Agent SDK row; never
probe ${CLAUDE_PLUGIN_DATA} yourself, or run the audit or its engine to resolve that row.
Present: INFO, exact mode available. Unavailable: INFO, SDK state unknown; the row is final.
Absent: INFO, not a defect. Absent or unavailable: the engine degrades to parsing headless
/context output (state both caveats: display-rounded, on an undocumented surface), and to a
structured error rather than a wrong number when neither mode works./context-budget:audit fix and any other
file-editing write to a settings file go through with no ask, and give
claude plugin enable guardrails@<marketplace>.check; the operator applies it)Close by pointing at each resolution. A rerun after everything passes changes nothing and reports "already configured".
Missing node: the platform's own install channel (https://nodejs.org/en/download). This
plugin never downloads a runtime.
Missing CLI: install the Claude Code CLI, or run the audit with an explicit --binary path.
Exact mode wanted: print this one-time install, marked as the operator's. It needs network access, so offer it and never run it:
mkdir -p "${CLAUDE_PLUGIN_DATA}/sdk" && npm install --prefix "${CLAUDE_PLUGIN_DATA}/sdk" @anthropic-ai/claude-agent-sdk
On Windows, print this PowerShell form instead:
New-Item -ItemType Directory -Force -Path "${CLAUDE_PLUGIN_DATA}\sdk" | Out-Null; npm install --prefix "${CLAUDE_PLUGIN_DATA}\sdk" @anthropic-ai/claude-agent-sdk <!-- portability-ok: Windows path, not a shell regex -->
/context-budget:audit
It takes the stamped baseline once check passes.
/context-budget:audit.node, the CLI, or the Agent SDK.pluginConfigs, or any other settings
surface.What SKILL.md sets; muted values are Claude Code's defaults
bash2 skills in this plugin
npx claudepluginhub melodic-software/claude-code-plugins --plugin context-budgetOther plugins' skills for the same job