Run local tests before pushing. Catches CI failures locally in ~30 seconds instead of a 4-minute CI round-trip.
/precheck [--skip-revert-check]
/pr expects a passing precheck/ci-fix/precheck
What you’ll see: a revert-safety check, then the test suites relevant to your changed files, ending with ✓ Precheck passed (N tests, Xs) — Ready to push. On success it also records a pass marker, then automatically commits, pushes, opens a PR, squash-merges it, and deletes the branch without asking for confirmation. If you want to review the PR on GitHub before it merges, stop the skill after the pass marker is written, or use /pr for a create-only flow.
/precheck # standard run — pick suites from the diff, test, then ship
/precheck --skip-revert-check # you intentionally deleted recently-merged code (refactor)
| Flag | Values | Default | What it does |
|---|---|---|---|
--skip-revert-check |
: | off | Skips the accidental-revert detection when a deletion is intentional |
/revert-check in strict mode to catch stale-buffer or bad-stash-pop changes that would silently undo recently-merged PRs. A failure here stops everything and shows the suspected files.main (asks you to branch first)..claude/.precheck-passed marker (the toolkit’s routing checks this before allowing /pr), then proceeds to the full ship sequence, commit, push, PR, squash-merge, and branch cleanup (git checkout main && git pull && git branch -d {branch}), without re-asking..claude/.precheck-passed, timestamped pass marker consumed by /prmain checked out locally| Problem | Fix |
|---|---|
Switch to a feature branch first |
Precheck refuses to run on main: git checkout -b my-change and re-run |
| Revert check flags files you deleted on purpose | Re-run with /precheck --skip-revert-check |
Tests pass locally but /pr still complains |
The pass marker is stale (new commits since the run): re-run /precheck |
/pr, use this instead of /precheck when you want to create (or update) a PR without also triggering the auto-merge; /precheck still expects /pr-created PRs to have a passing precheck marker/revert-check, the safety check precheck runs first (standalone usage)