verify-with-tests

Installation
SKILL.md

Verify With Tests

Verify a code change by writing disposable tests, running them on the change branch AND its base, and reporting a behavior-by-behavior verdict matrix. The tests are evidence, not deliverables: never commit them, never delete them. The user decides what happens to them after.

Step 1: Resolve target and base

Target, in order of precedence:

  1. PR number/URL in the invocation → gh pr checkout {n}; base = the PR's baseRefName
  2. Branch name in the invocation → check it out; base = repo default branch
  3. No argument → current branch; base = repo default branch

Repo default branch: gh repo view --json defaultBranchRef --jq .defaultBranchRef.name (fallback: git symbolic-ref refs/remotes/origin/HEAD).

Always compare at the merge-base, not base HEAD: git merge-base origin/{base} {target}. Base HEAD contains unrelated drift that pollutes the comparison.

Record the ref the session started on. You return to it at the end.

Step 2: Preconditions and environment

Installs
2
GitHub Stars
1
First Seen
Jul 18, 2026