Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

The check Gate

claudevs check is the command that answers one question about a plugin: is it sound? It runs four stages in order and reports how each one went. A plugin is sound when none of them fails.

StageWhat it looks at
validateThe manifest and the plugin's skills, agents and commands, through claude plugin validate.
wiringStatic checks over the plugin's files: paths that must exist, scripts nothing uses, and the matchers in hooks.json.
testYour cases, run against the plugin where it sits in your checkout.
test --installedThe same cases, run against a copy laid out the way Claude Code installs a plugin.

Here is a plugin that passes all four. Run it from the repository root:

$ claudevs check --json crates/claudevs/examples/01_hook_decision | jq -c '.stages[] | {name, status}'
{"name":"validate","status":"passed"}
{"name":"wiring","status":"passed"}
{"name":"test","status":"passed"}
{"name":"test --installed","status":"passed"}

--json asks for a report a program can read. The jq line keeps each stage's name and verdict. The human report is the default; Stages shows one.

This chapter has three pages.

  • Stages explains why a failed stage does not stop the run, what the installed layout catches that your checkout hides, and what happens when claude is not on the machine.
  • Wiring explains what the static checks look for, and why a matcher claudevs cannot evaluate is a warning and not an error.
  • Running in CI reads the JSON report and uses the exit code as the gate.

The cases that test runs are the subject of Writing Cases.