Setup

From melodic-software/claude-code-plugins · View interactive version

Setup is an AI agent skill from the GitHub repository melodic-software/claude-code-plugins. Check-only setup: verifies node, the Claude Code CLI and the optional Agent SDK for context-budget, and prints each remediation without installing or writing anything.

How to use this skill

Skill file

Pre-computed context

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:

A 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.

skills § Inject dynamic context

live.

Purpose

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

CODE0 § Prerequisites and the header

of ${CLAUDE_PLUGIN_ROOT}/skills/audit/scripts/measure.mjs. Open both with the Read tool,

the section and the top of 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.

  1. 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.

  1. The Claude Code CLI: PASS when one resolves; report its absolute path and version, the

stamp that makes an audit report a claim. INFO when two installs are present (the audit asks

which to pin). FAIL when none resolves and the operator has no --binary path to name.

  1. @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.

  1. The settings-write ask (INFO): it ships in guardrails, not here. Say that it runs only when

the guardrails plugin is enabled, that without it /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>.

Remediation guidance (printed by `check`; the operator applies it)

Close by pointing at each resolution. A rerun after everything passes changes nothing and reports

"already configured".

plugin never downloads a runtime.

access, so offer it and never run it:

```shell

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:

```powershell

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 -->

```

Next

/context-budget:audit

It takes the stamped baseline once check passes.

What this skill does not do

surface.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.