vergil-claude-plugin
Claude Code plugin for the vergil-tooling ecosystem. Delivers
hooks, skills, and agents that enforce the fleet workflow mechanically
in every Claude Code session.
Table of Contents
What this plugin does
This plugin is the behavioral half of a two-repo system:
| Repo | Delivers | Via |
|---|
vergil-tooling | Python CLIs (vrg-commit, vrg-submit-pr, vrg-container-run, …) and Claude Code hook guard | PATH + PreToolUse hook |
vergil-claude-plugin (this repo) | Claude Code hooks, skills, agents, commands | Claude Code plugin system |
The two are complementary: vergil-tooling makes the tools
available; this plugin ensures Claude Code uses them correctly —
blocking raw git commit in favor of vrg-commit, blocking raw
gh pr create in favor of vrg-submit-pr, routing per-file
validation through the dev container, and so on.
Agents read issue and PR content only through vergil-tooling's
vrg-issue-read, which prints only what a trusted identity wrote and
reports the rest as metadata. Since vergil-tooling v2.1.338 its hook
guard enforces this: it refuses an agent's raw issue and PR content reads
(a body or comment read, or a list or search that matches text or asks
for a content field) and names vrg-issue-read. The skills follow the
same rule.
Distribution model
The plugin ships through a single channel: every consumer — the host and
every agent VM — registers [email protected] in its user-level
settings and follows the floating v2.1 rolling tag; each vergil-project
repo only enables vergil@vergil-marketplace. There is no per-version
pinning: the plugin is behavioral guidance (skills, hooks,
agents), not a versioned API that code links against, so every consumer runs
whatever release v2.1 points at.
- A release makes a change live. Each plugin release moves
v2.1 forward
to the new v2.1.Z, so releasing is the one act that makes a new skill or
hook live for everyone. main is still the release branch, but consumers
follow the tag, not the branch.
- A rollback moves it back. Rolling back is moving
v2.1 to an earlier
v2.1.Z with vrg-promote, a human-gated release act. The procedure is
vergil-tooling's
Rolling back a release
runbook. The rollback lasts until the next release moves v2.1 forward
again.
- A new minor line is opt-in. When a
2.2.0 release creates the v2.2
tag, v2.1 stops moving and the fleet stays on the last v2.1.Z until you
change the ref; see
Moving to a new minor line.
To run unreleased (develop) behavior you don't need a second channel:
- Iterating on the plugin? Load the working tree directly with
claude --plugin-dir /path/to/vergil-claude-plugin — see
Develop against the source tree.
- Need one unreleased skill ad hoc? Tell the agent to read that file on
develop and follow it — the AI-equivalent of running it by hand.
Full rationale and decision record:
epics/760-plugin-tag-distribution/spec.md,
which supersedes the tag decision of
epics/45-plugin-distribution-model/spec.md.
Install
Recommended install path for consuming repositories is the full
walkthrough documented in vergil-tooling:
The short version: the plugin is installed per user, not per repo. Add
the marketplace definition and the plugin enable to your user-level
~/.claude/settings.json. If that file already has extraKnownMarketplaces
or enabledPlugins objects, merge these entries into them rather than
adding a second copy of either key:
{
"extraKnownMarketplaces": {
"vergil-marketplace": {
"source": {
"source": "github",
"repo": "vergil-project/vergil-claude-plugin",
"ref": "v2.1"
}
}
},
"enabledPlugins": {
"vergil@vergil-marketplace": true
}
}