Getting Started
claudevs tests Claude Code plugins without a model in the loop. It runs a plugin's hooks and scripts
the way Claude Code would, checks that the plugin's files are wired together, and reports one pass or
fail answer. This chapter takes you from nothing to a passing claudevs check, then breaks a hook on
purpose and fixes it.
There are two ways to use claudevs. You can run the claudevs binary from a plugin's own
repository, or you can call the claudevs crate from Rust code that wants the same checks. This
chapter uses the binary. The crate is the subject of Embedding.
| Plugin author | Rust caller | |
|---|---|---|
| What you use | the claudevs binary | the claudevs crate |
| Needs | sh and git on PATH; claude for the validate stage | sh and git on PATH |
| Start with | the pages below | Embedding |
claude is optional. Only the validate stage of claudevs check hands work to it. Without it, that
one stage is skipped and the run goes on.
The pages
| Page | What you do |
|---|---|
| Installation | Install the claudevs binary |
| A First Plugin | Write a small plugin with one hook, and ask claudevs doctor what it lacks |
| A First Case | Write a case for the hook and run it |
| Running the Gate | Run claudevs check, break the hook, fix it, and test the installed copy |
The pages build on each other, so read them in order. Each one runs in the same scratch directory and adds to the plugin the one before it left.
Examples
The repository holds nine small plugins that claudevs check runs. Each has a README.md that says
what it shows and how its check ends. Two of them are worked through in
Running the Gate, and the others are linked from the chapters that use
them. The full set is in
crates/claudevs/examples/.