agentleFS
indrazmindrazm/personal-skills/skills/changes-verification/SKILL.md

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.

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
  1. Very specific:

    Before creating or updating a pull request (mandatory gate for create-pr)

    line 12
  2. Distinctive:

    After completing a feature, refactor, or bug fix

    line 13
  3. Distinctive:

    When asked to verify that a branch is ready for review or CI

    line 14
  4. Very specific:

    Do NOT eyeball code or skip running commands.

    line 18
  5. Distinctive:

    Run discovery mode first to inspect git state, changed files, and CI workflow commands:

    line 22
  6. Distinctive:

    Every file changed relative to the base branch.

    line 31
  7. Very specific:

    Every CI definition (.github/workflows/*.yml, .gitlab-ci.yml, .circleci/config.yml, Makefile, package.json, pyproject.toml) and the exact …

    line 32
  8. Very specific:

    Run scripts/verify.sh with every test command covering the change AND every locally runnable CI command (tests, linter, type-checker, …

    line 36
  9. Very specific:

    Every --cmd must exit 0. If any command fails, verify.sh exits 1 and writes "passed": false.

    line 46
  10. Very specific:

    When hard push enforcement is requested, install scripts/pre-push-hook.sh into .git/hooks/pre-push:

    line 51
  11. Very specific:

    Never commit .changes-verification-receipt.json.

    line 77

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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-only

Review 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 --cmd must exit 0. If any command fails, verify.sh exits 1 and writes "passed": false.
  • Fix failures, commit the fix, and re-run verify.sh so .changes-verification-receipt.json matches the new HEAD SHA.

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-push

Step 4: Report Verification Evidence

Report the verified receipt details in your final response and PR body:

  • Verified HEAD commit 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.sh and claiming "tests pass" from memory
  • Running verify.sh before the final commit (producing a stale receipt SHA)
  • Omitting locally runnable CI lint, type-check, or build commands from --cmd
  • Bypassing .git/hooks/pre-push with --no-verify

Gotchas

  • Amending or adding commits after running verify.sh changes HEAD and invalidates the receipt; always re-run verify.sh on the final commit.
  • Never commit .changes-verification-receipt.json; keep it ignored via .gitignore or remove it after verification if required.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.