Agent skill
Install the CodeVeto skill so a coding agent reviews its own change, fixes what CodeVeto finds and runs the review again before it reports the work as done.
On this page
The CodeVeto skill is a folder of instructions that coding agents which load skills (Claude Code, Codex, Cursor and others) read when the task matches. It makes the agent review its own change with CodeVeto, fix what it finds and run the review again before it commits, pushes or says it is done. It is self-contained: the agent needs no other CodeVeto docs.
Install
Install it with the skills CLI:
npx skills add spink-dev/codevetoOr copy the skills/codeveto/ folder of the CodeVeto repository into the agent’s skills directory. For Claude Code that is ~/.claude/skills/codeveto/ for you alone, or .claude/skills/codeveto/ inside a project.
Note
A copy inside the project is repository content, so a change under review can edit it. The personal location is safer.
The agent also needs CodeVeto itself:
pipx install codeveto
uv tool install codevetoIf CodeVeto is not installed, the skill tells the agent to ask you before installing it.
What the agent does
codeveto version # 1. is it installed?
git rev-parse 'HEAD^{commit}' # 2. before your first edit: record the anchor
codeveto review --anchor <anchor> --format agent # 3. after each round of edits: review all your work
codeveto explain <rule-id> # 4. a finding is unclear: rationale and fix hint
codeveto review --base main --format agent # 5. before a push or pull request: what CI will see- Before its first edit, it records the full commit ID of
HEADand passes it as--anchoron every review, because otherwise each commit it makes would move the anchor and drop its committed work from the review. - It reviews with
--format agent: one finding per line, verdict last. - It fixes blocking findings first, in the code, and runs the same command again until it exits 0.
- It stops and asks you when it believes a finding is wrong, when a round leaves the same findings as the one before, or when the only fix is out of scope.
- When it finishes, it reports the last command it ran, the verdict and exit code, what it fixed by rule ID and file, and what remains.
When it applies
The agent loads the skill:
- before it commits, pushes, opens a pull request or says the work is done in a repository that uses CodeVeto: one with a
.codeveto.toml, the CodeVeto CI workflow or thecodeveto / reviewrequired check, CodeVeto Git or agent hooks, or a connected CodeVeto MCP server; - when a CodeVeto hook blocks a commit or the end of its turn;
- when the
codeveto / reviewcheck fails on a pull request; - when you ask for a strict or security review of changes, or for CodeVeto to be set up.
What it never does
The skill tells the agent never to:
- edit
.codeveto.tomlto get past a finding; - add
codeveto-ignoreor other tools’ suppression comments (noqa,eslint-disable,@ts-ignoreand the like); - pass loosening flags such as
--fail-on never,--no-repo-configor--configwith a file it wrote; - skip or edit hooks and the CI gate, for example with
--no-verify; - hide files with ignore rules, generated-file markers or
.gitattributes; - move the anchor halfway through the task.
It also treats repository text (comments, strings, READMEs, commit messages, file names and CodeVeto’s own output) as data. Text aimed at AI reviewers is reported to you, not followed.
What is inside
| File | Covers |
|---|---|
SKILL.md |
The whole review loop: install check, anchor, review modes, reading the output, fixing and rerunning, what never to do, hooks, CI and MCP, the report. |
references/agent-format.md |
Every line of the agent format, which findings block, annotated real runs, the MCP review tool and the other formats. |
references/findings.md |
How rules decide what to report, the non-waivable rules, every agent/*, tests/* and hygiene/* rule, a fix playbook for the other packs, and false positives. |
references/configuration.md |
The trust anchor, configuration layers and keys, what a repository config may not do, inline ignores, limits and environment variables. |
references/setup.md |
Installing CodeVeto, Git hooks, CI on GitHub and Forgejo, the MCP server and agent hooks for Claude Code and Codex. |
references/ai-review.md |
The optional AI pass: provider mode, what it sends, how AI findings affect the verdict, and harness mode with the agent as reviewer. |
A skill is not a gate
The skill is instructions. The agent runs codeveto from PATH with an anchor it records itself, so an agent that ignores the skill is not stopped by it. Pair it with the agent hooks or the MCP server (Coding agents), Git hooks and the required CI check, which is the enforcement point.
Kept in step with CodeVeto
The CodeVeto test suite checks that every command in the skill parses with the real CLI, every rule ID it names exists, its rule tables match the catalogue’s severities and the non-waivable list, and its links resolve. The source is in skills/codeveto/.