verify
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 tells Claude to run a project skill named `verify` right before committing (not for docs-only or tests-only 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.
Unsigned, install at your own risk
UnverifiedThis skill has no cryptographic signature attached. We can't verify the contents match what the publisher intended.
Install this skill
No account required. Pick your tool, or use the command that detects it for you.
Run in your terminal. It detects your AI tool.
npx @skills-hub-ai/cli install claude-code-my-workflow-claude-verifyManual setup by platform
Claude Code
~/.claude/skills/claude-code-my-workflow-claude-verify/SKILL.md
Instructions
/verify — the gates, before a commit
Since Claude Code 2.1.286, Claude is told to run a project skill named verify right before it commits, except for docs-only and tests-only commits. This one runs the same gates /commit runs. It is a reminder, not enforcement: Claude can skip it, and an exempt commit never triggers it, even one that changes a .qmd or .tex file. The enforcing gates are the git pre-commit hook (./scripts/install-hooks.sh) and /commit. It does not commit, push, stage, or edit anything.
Steps
-
Is the git hook already doing this? Only when all three checks from
/commitStep 0b hold:git config --get core.hooksPathprints.githooks;test -x "$(git rev-parse --show-toplevel)/.githooks/pre-commit" && echo executableprintsexecutable(git skips a hook file that is missing or not executable, and still commits); andgit status --porcelain -- ':/.githooks'prints nothing (an edited hook is itself what needs testing, and it could exit 0 without running anything). Then 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. Otherwise go on to step 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. -
Score staged prose and code: for each staged file ending in
.qmd,.texor.R(git diff --cached --name-only --diff-filter=ACMR), runpython3 scripts/quality_score.py <file>. A score below 80 fails/verify. -
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:
/commitrecords such an override asSKIP_QUALITY_GATE=1, which skips only the quality score. Never suggestgit 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.
Security
Reviews (0)
Related skills
Browse all →More from claude-code-my-workflow
View source →More Build skills
Browse category →Frequently asked questions about verify
What does the verify skill do?
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 tells Claude to run a project skill named `verify` right before committing (not for docs-only or tests-only 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. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.
How do I install the verify skill?
Run `npx @skills-hub-ai/cli install claude-code-my-workflow-claude-verify` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/claude-code-my-workflow-claude-verify/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.
Which AI tools does verify work with?
verify runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.
Is the verify skill free?
Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.
How do I use verify after installing it?
In Claude Code, type `/claude-code-my-workflow-claude-verify` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.
Can I share the verify skill with my team?
Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.