verify · git:20261107.39f70a7 · 2026-11-07 · sha256 c77047a751a5c324
verify git:20261107.39f70a7A
Immutable. This exact content never changes and is served at /api/v1/blob/c77047a751a5c324.
No tool to install first
claude plugin marketplace add https://markdownregistry.com/mp/a/art_xkqdqmhggoimc37g/c77047a751a5c324907f01cfbbb4cd3c9ad0d439d28f58a9b5db144b31db200f.json
Then /plugin install verify@markdownregistry-xkqdqmhggoimc37g in Claude Code. It installs this exact version, the one graded A here, pinned to the commit it was graded at, and leaves it there.
--- name: verify description: Run this repository's gates on the work about to be committed — the backtest suite, and the quality score for every staged `.qmd`, `.tex` or `.R` file — and stop the commit if one fails. Claude Code runs a project skill named `verify` right before it commits; also use it when the user says "verify", "run the gates", "check before I commit", or "is this ready to commit?". It checks and reports; it never commits, pushes or fixes anything itself. allowed-tools: ["Bash", "Read"] effort: low --- # /verify — the gates, before a commit Since Claude Code 2.1.286, a project skill named `verify` is run right before Claude commits (docs-only and tests-only commits excepted). This one runs the same gates `/commit` runs, so a commit Claude makes without `/commit` is still gated. It **does not** commit, push, stage, or edit anything. ## Steps 1. **Is the git hook already doing this?** Run `git config --get core.hooksPath`. If it prints `.githooks`, the pre-commit hook will run the backtest and the quality gate on this commit anyway. Say so in one line and stop, because running everything twice wastes a minute and adds nothing. 2. **Run the backtest:** `./scripts/backtest.sh`. Capture the exit code and the last lines. A non-zero exit fails `/verify`; report the failing gate's own message, not a summary of it. 3. **Score staged prose and code:** for each staged file ending in `.qmd`, `.tex` or `.R` (`git diff --cached --name-only --diff-filter=ACMR`), run `python3 scripts/quality_score.py <file>`. A score below 80 fails `/verify`. 4. **Report.** One line per check (`PASS` / `FAIL`, with the score or the gate's message), then the verdict. - **FAIL:** do not commit. Say what failed and what fixes it. - **PASS:** say the commit can go ahead. If the user has explicitly said "commit anyway" or "skip quality gate", pass that on: `/commit` records such an override as `SKIP_QUALITY_GATE=1`, which skips only the quality score. Never suggest `git commit --no-verify`. ## Not this skill's job Fixing what failed (do that, then run `/verify` again), writing the commit message (`/commit`), and deciding whether a change is wanted (the user). A gate that cannot run, such as a missing interpreter or a script error, is a FAIL, not a pass.