changes-verification
Skill15 starsChanged 4 days agoMITView on GitHub
Enforces deterministic pre-PR verification by discovering changed files and CI workflows, running change-related tests and locally runnable CI checks via scripts/verify.sh, and writing a commit-bound verification receipt. Use before creating a pull request, after completing an implementation or fix, or when verifying that a branch is ready to ship.
In this repository14 other files it gives its agents.
- agent-instruction-auditSkill
- agent-tool-auditSkill
- cheap-ui-auditSkill
- code-reviewSkill
- create-prSkill
- debuggingSkill
- engineering-decisionSkill
- formal-verificationSkill
- micro-animationSkill
- optimistic-uiSkill
- optimize-ciSkill
- oxlint-setupSkill
- test-auditSkill
- zstack-modeSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 4 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
Before creating or updating a pull request (mandatory gate for create-pr)
- Distinctive: line 13
After completing a feature, refactor, or bug fix
- Distinctive: line 14
When asked to verify that a branch is ready for review or CI
- Very specific: line 18
Do NOT eyeball code or skip running commands.
- Distinctive: line 22
Run discovery mode first to inspect git state, changed files, and CI workflow commands:
- Distinctive: line 31
Every file changed relative to the base branch.
- Very specific: line 32
Every CI definition (.github/workflows/*.yml, .gitlab-ci.yml, .circleci/config.yml, Makefile, package.json, pyproject.toml) and the exact …
- Very specific: line 36
Run scripts/verify.sh with every test command covering the change AND every locally runnable CI command (tests, linter, type-checker, …
- Very specific: line 46
Every --cmd must exit 0. If any command fails, verify.sh exits 1 and writes "passed": false.
- Very specific: line 51
When hard push enforcement is requested, install scripts/pre-push-hook.sh into .git/hooks/pre-push:
- Very specific: line 77
Never commit .changes-verification-receipt.json.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Changes Verification
Execute deterministic pre-merge verification backed by scripts/verify.sh and an optional git pre-push hook so every check is backed by observed command execution tied to the exact HEAD commit SHA.
When to Use
- Before creating or updating a pull request (mandatory gate for
create-pr) - After completing a feature, refactor, or bug fix
- When asked to verify that a branch is ready for review or CI
Mandatory Enforcement Flow
Do NOT eyeball code or skip running commands. Always execute scripts/verify.sh against the target repository so every check is run and recorded in .changes-verification-receipt.json for the exact HEAD commit SHA. Resolve <skill-dir> to the directory containing this SKILL.md.
Step 1: Discover Changed Files and CI Checks
Run discovery mode first to inspect git state, changed files, and CI workflow commands:
bash <skill-dir>/scripts/verify.sh --discover-onlyReview the output to identify:
- Whether the working tree is clean (
git status --short). - Every file changed relative to the base branch.
- Every CI definition (
.github/workflows/*.yml,.gitlab-ci.yml,.circleci/config.yml,Makefile,package.json,pyproject.toml) and the exact commands CI will execute.
Step 2: Execute Tests and CI-Mirrored Checks
Run scripts/verify.sh with every test command covering the change AND every locally runnable CI command (tests, linter, type-checker, build) using repeatable --cmd flags:
bash <skill-dir>/scripts/verify.sh \
--strict \
--cmd "<change-related test command>" \
--cmd "<ci lint or typecheck command>" \
--cmd "<ci test or build command>"- Every
--cmdmust exit0. If any command fails,verify.shexits1and writes"passed": false. - Fix failures, commit the fix, and re-run
verify.shso.changes-verification-receipt.jsonmatches the newHEADSHA.
Step 3: Optional Git Pre-Push Hook
When hard push enforcement is requested, install scripts/pre-push-hook.sh into .git/hooks/pre-push:
cp <skill-dir>/scripts/pre-push-hook.sh .git/hooks/pre-push
chmod +x .git/hooks/pre-pushStep 4: Report Verification Evidence
Report the verified receipt details in your final response and PR body:
- Verified
HEADcommit SHA - Base ref and changed file count
- Exact commands executed and their exit codes
- Any CI-only jobs that require remote execution
Red Flags
- Skipping
scripts/verify.shand claiming "tests pass" from memory - Running
verify.shbefore the final commit (producing a stale receipt SHA) - Omitting locally runnable CI lint, type-check, or build commands from
--cmd - Bypassing
.git/hooks/pre-pushwith--no-verify
Gotchas
- Amending or adding commits after running
verify.shchangesHEADand invalidates the receipt; always re-runverify.shon the final commit. - Never commit
.changes-verification-receipt.json; keep it ignored via.gitignoreor remove it after verification if required.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

