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

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 authorRust caller
What you usethe claudevs binarythe claudevs crate
Needssh and git on PATH; claude for the validate stagesh and git on PATH
Start withthe pages belowEmbedding

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

PageWhat you do
InstallationInstall the claudevs binary
A First PluginWrite a small plugin with one hook, and ask claudevs doctor what it lacks
A First CaseWrite a case for the hook and run it
Running the GateRun 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/.