verify
How to verify a change to a skill, agent or reference in this repo by running a headless Claude against the working tree's plugins, not the installed cache.
Files1
View on GitHubSKILL.md.claude/skills/verify/SKILL.md
GitHubVerify a skill or agent change
The surface is the agent: run claude -p with this checkout's plugins and
read which skills it called and what it answered.
Run
S=$(mktemp -d) && mkdir -p "$S/proj" && cd "$S/proj"
# a tiny fake project the prompt can talk about (package.json, README)
claude -p --setting-sources project \
--plugin-dir /path/to/this/repo/plugins \
--model sonnet --output-format stream-json --verbose \
--max-turns 20 --permission-mode bypassPermissions \
"<the user's prompt, in their words>" </dev/null > "$S/run.jsonl"
--setting-sources projectskips user settings, so the installed copies of these plugins do not load next to the working tree's.--baredoes not work with a claude.ai login: it answers "Not logged in".</dev/nullavoids a 3 s stdin wait.- Run several prompts in parallel with
&andwait; each is one session.
Read
Print each tool_use (name and input) and the final result from the
stream-json. The checks that matter:
- did the router (
frontend-stack:frontend-stack) load on its own, without the prompt naming it? Run once with and once without/frontend-stack:frontend-stackat the start, to tell a trigger problem from a routing problem; - which reference it read and which skills it loaded, in order;
- whether it stopped where the flow says to stop (questions before any direction or code).
Gotchas
pip install tiktokenfails on PEP 668 systems; useuv run --with tiktoken python3 scripts/token_budget.py.- CI also runs
claude plugin validateon eachplugins/*/, not only the root.