/pothos:verifyfrom pothos
Runs the repository's checks from its private Pothos contract (fast, full, end-to-end, and advisory mutation testing) and records a receipt for the current commit, outside the repository. Use before merging a ticket into an integration or feature branch, before a pull request leaves draft, when asked to "verify", "run the checks" or "is this green?", and whenever you are about to claim that work passes. A claim of green without a passing receipt for the current commit is not allowed.
Ships in pothos. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Runs the commands the contract lists and keeps a receipt per commit, so anyone (you, another agent, the pull request step) can check that this exact commit passed. The receipts live in ~/.config/pothos/receipts/, never in the repository.
Every command goes through "${CLAUDE_SKILL_DIR}/scripts/verify.py". Run it from inside the repository.
| Level | When | Counts as a gate |
|---|---|---|
fast | The fast check, tier 1: after every coherent edit and before each commit, run directly, not through this script. The session context names the command (a root check:fast script, else the contract's verify.fast, else each package's lint, unit tests and type-check) and its rules. Seconds. | No |
full | The gate, tier 2: once before a push, before any merge and before a pull request leaves draft. Everything CI checks. | Yes |
e2e | With full, when the contract has an end-to-end command. | Yes, when configured |
mutation | Once after green and before the pull request, when the contract has a mutation command. | No |
A level the contract does not configure is recorded as skipped and does not block. Say so in the pull request.
Under workflow: repo the repository's own checks are the gate and this script refuses every level but mutation, which runs when the contract names verify.mutation and the tree is clean (that workflow writes no fast or full receipt to require).
After full, the UI check runs on the lines the branch adds, when the contract's ui sets tokens or icons, and writes a ui receipt. It is advisory: it never changes an exit code. Fix its findings or mark an intended value with ui-ok: <why>, and list what remains in the pull request.
Commit first. A run on uncommitted changes is recorded, but it never counts as a pass. The local tracker folder (.scratch/ by default) is ignored, because tickets change while code is verified.
Pick the environment. If the session context lists backend environments and end-to-end runs per environment, ask the user which one to use. Ask once per feature, never pick one yourself, and pass it with --env NAME.
Run.
python3 "${CLAUDE_SKILL_DIR}/scripts/verify.py" run all [--env NAME]
This runs full and then e2e when configured. run fast records a receipt for the contract's fast command; while iterating, run the fast check the session context names directly instead.
Run it in the foreground, never as a background command: a background command dies when your turn or your subagent ends, and nobody gets notified. The checks run in a detached process, and run returns within about nine minutes. Exit 4 means they are still going: run verify.py wait (also in the foreground) until it returns another code. Never start a second run for the same commit; run attaches to the one in progress anyway.
On failure, read the tail the script prints, then open the log it names if you need more. Fix the cause, commit, and run again. Never weaken, skip or delete a check to get a pass. If the failure is unrelated to the change and also fails on the base branch, say so with evidence (the base commit's receipt) and stop. Do not paper over it.
Mutation, once after green and before the pull request, when the contract has a mutation command:
python3 "${CLAUDE_SKILL_DIR}/scripts/verify.py" run mutation
It stays out of run all and needs a passing fast or full receipt for HEAD on a clean tree. Read the receipt and act on each new survivor it prints as rule 1 of standards/testing.md says, commit, and run fast then mutation again. The pull request lists the survivors killed, each with the test that kills it, and the survivors left, each with why.
Gate. Before pushing, merging or marking a pull request ready:
python3 "${CLAUDE_SKILL_DIR}/scripts/verify.py" check
Exit 0 means the current commit has a passing full receipt and, when configured, a passing e2e receipt, on a clean tree. Anything else means not verified. Report the exact line it printed. When the repository's pre-push hook runs the same gate command, this exit 0 is what allows git push --no-verify: the hook would only repeat the run that just passed.
State the level, the commit and the result in one line each. Quote the script's own output rather than paraphrasing it, for example verified: full, e2e passed on 3f2a91c04b1e. For mutation, quote its closing line, for example mutation: 1 new surviving mutant(s) in 2 changed file(s); 4 inherited, see verify.py show. Advisory, does not block. Each new one is a missing test or dead code. If something was skipped, say what and why.
0 passed or skipped, 1 failed or not verified, 2 no contract (suggest /pothos:plant), 3 the contract or environment is unusable (the message says which), 4 still running (run wait), 64 usage.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub devictoribero/pothos --plugin pothosOther plugins' skills for the same job
29 skills in this plugin
/archifyCreate validated architecture, workflow, sequence, data-flow, lifecycle/state, ERD, class, tree, timeline, and waterfall diagrams as explorable standalone HTML with dark/light themes, motion and image/SVG/WebM export. Accept requirements or Mermaid; inspect repository evidence for code-backed diagrams. Use when visualizing systems, API calls, pipelines, schemas, histories, timings, or everyday steps, parts, relationships and states. Also turn an answer into a one-page explainer, with the conclusion first, structured panels, native diagrams and charts, when the user asks for a page, an explainer or an answer to share (做成一页, 用页面讲), or proactively when the user's rules opt in with an [archify explainer: ...] line. Not for dashboards./codebase-designShared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary./code-reviewReview the changes since a fixed point (commit, branch, tag, or merge-base) along two axes: Standards (does the code follow this repo's documented coding standards?) and Spec (does the code match what the originating issue/spec asked for?). Runs both reviews in parallel sub-agents and reports them side by side. Use when the user wants to review a branch, a PR, work-in-progress changes, or asks to "review since X".