pre-push-checks
Installation
SKILL.md
Pre-push checks
Run relevant local evidence once before a push. Select the narrowest check that would fail for each regression; CI owns exhaustive coverage and the platform matrix.
Inspect the outgoing change
- Confirm the checkout and branch:
git status --short --branch
git rev-parse --show-toplevel
- Verify the live base or stack parent, then inspect the complete scope against it. Prefer the repository's change-scope tool, when present: it never guesses or fetches a base, so supply the ref you verified and add its head option only when inspecting a commit other than
HEAD(in a pnpm repository, for example,pnpm --silent run change-scope --base <verified-base-ref>). Without that tool, fall back togit diff --stat origin/$(git branch --show-current) 2>/dev/null || git diff --stat HEAD~1.
Confirm the files the diff actually touches. After merging a changed base, rerun the scope report, reassess which checks the combined scope can still affect, and rerun only the checks the merge invalidated.