Push Checkpoint

VerifiedCaution

Runs the every-10-pushes quality checkpoint: a scoped code review plus a test-and-lint debug pass.

Sby Skills Guide Bot
DevelopmentIntermediate
8/26/2026
Claude Code
#code-review#quality-gate#git#testing#linting

Recommended for

Automated summary

This skill runs a quality checkpoint every 10 pushes: a scoped code review of everything accumulated since the last checkpoint, followed by a test-and-lint debug pass.

Strengths

  • Scopes the review precisely using the last checkpoint SHA stored in .claude/state/last-checkpoint
  • Combines code review with an actual build check (pytest, ruff) in a single consolidated report
  • Explicitly forbids gaming red tests (skip, xfail, loosened assertions) and separates pre-existing failures from ones introduced by the batch
  • Auto-fixes only small, unambiguous issues while escalating anything larger with a concrete proposal

Limitations

  • Automatic triggering relies on an external hook (push-counter.py); without it, the cadence never fires on its own
  • The verification commands are written for a Python project (pytest/ruff) and need manual adaptation for other stacks
  • Assumes .claude/state/ is gitignored and local to each checkout, so there is no shared tracking across environments
When to use it

Use it when a hook reports a multiple-of-10 push count, when running /push-checkpoint, or when you want to review a recent batch of work as a whole.

When not to use it

Avoid it for reviewing a single small change or for a large refactoring, which this checkpoint deliberately does not take on.

Security analysis

Caution
Quality score88/100

The skill executes bash commands (git, cat, pytest, ruff, and potentially repo-defined checks) for a legitimate code review and debug workflow. There is no destructive, exfiltrating, or obfuscated action, but running arbitrary project-defined commands introduces a moderate risk if the repository contains malicious configuration, so caution is warranted.

Findings
  • •Runs shell commands including project-defined test/lint commands from pyproject.toml, Makefile, or CI config, which could execute arbitrary code if the repository is malicious or compromised.
  • •Writes to .claude/state/last-checkpoint, modifying local state, but no destructive or exfiltrating behavior.
How this analysis is made

Examples

Checkpoint automatique
The hook says I just hit push 30 — run the push checkpoint for everything since the last one.
Revue de lot explicite
/push-checkpoint — review the last batch of work and tell me if the tree is still healthy.
Bilan depuis la dernière revue
What has accumulated since the last checkpoint? Review it and run the tests and lint.

name: push-checkpoint description: Run the every-10-pushes quality checkpoint — a scoped code review of everything since the last checkpoint, plus a test-and-lint debug pass. Use this skill whenever a hook reports that a push count hit a multiple of 10, whenever the user types /push-checkpoint, and whenever the user asks for a checkpoint, a periodic review, a "review the last batch of work" pass, or asks what has accumulated since the last review. Prefer this over an ad-hoc review whenever the request is about reviewing recent pushes as a batch.

Push Checkpoint

A periodic quality gate. Every 10 successful pushes, review what accumulated and confirm the project still builds clean — so problems surface on a cadence instead of piling up until release.

This skill does two things: a scoped review, then a debug pass. Do both, in order, and report once at the end.

How this gets triggered

.claude/hooks/push-counter.py runs after every Bash call, counts successful git push commands in .claude/state/push-count, and asks for this skill on every 10th. The user can also run /push-checkpoint at any time.

Skills cannot fire themselves on an event — the hook is what makes the cadence automatic. If the checkpoint never fires on its own, the hook is the thing to debug, not this file.

Step 0 — establish the range

Find the last checkpoint and scope all work to what came after it:

cat .claude/state/last-checkpoint 2>/dev/null || echo "(no previous checkpoint)"
git rev-parse HEAD
  • If a SHA is recorded, the range is <sha>..HEAD.
  • If not (first ever checkpoint), fall back to the last 10 commits: HEAD~10..HEAD, or the full history if the repo is shorter than that.

Confirm the range is non-empty before continuing:

git diff --stat <range>

If the range is empty, say so and stop — there is nothing to check, and the counter should still be reset in step 3.

Step 1 — review

Invoke the built-in code-review skill scoped to that range (pass the range as its target). Review the batch, not all of history.

Report findings ranked most-severe first. Apply a fix yourself only when it is small, local, and unambiguous — a clear bug, a typo, a missing guard. Anything larger gets described, not silently changed: this is a checkpoint, not a refactoring session.

Step 2 — debug

There is no /debug skill; this is the debug step. Run the project's own checks and triage anything that fails.

For this repository (Python):

python3 -m pytest -q
python3 -m ruff check .

If the project layout changes, run whatever the real checks are — prefer what pyproject.toml, a Makefile, or CI config actually defines over the commands above.

For each failure, find the root cause before proposing anything. Do not paper over a red test:

  • Never skip, disable, or xfail a test to get green.
  • Never loosen an assertion to match wrong output.
  • A failure that reproduces on the base branch too is pre-existing — say so, and keep it separate from failures this batch introduced.

Fix what is small and certain. Escalate the rest with a concrete proposal.

Step 3 — record the checkpoint

Only after both steps are done:

git rev-parse HEAD > .claude/state/last-checkpoint

This is what keeps the next checkpoint scoped to the next batch. .claude/state/ is gitignored, so the counter and the checkpoint SHA stay local to each checkout.

Step 4 — report

One consolidated summary:

  • Range — the commit span reviewed, and how many commits it covered.
  • Review — findings by severity; what you fixed vs. what needs a decision.
  • Debug — test and lint results; root cause for each failure; pre-existing failures called out separately.
  • Verdict — is the tree healthy, or is there something to act on now?

Be direct about a bad result. A checkpoint that always says "all clear" is worthless — if tests fail, lead with that.

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/push-checkpoint-mt9mglwb/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/push-checkpoint-mt9mglwb' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/push-checkpoint-mt9mglwb/download' --output '.skill-downloads/push-checkpoint-mt9mglwb/SKILL.md.part' && mv '.skill-downloads/push-checkpoint-mt9mglwb/SKILL.md.part' '.skill-downloads/push-checkpoint-mt9mglwb/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/push-checkpoint-mt9mglwb/SKILL.md' && test -s '.skill-downloads/push-checkpoint-mt9mglwb/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/push-checkpoint' && cp -R '.skill-downloads/push-checkpoint-mt9mglwb' '.claude/skills/push-checkpoint'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/push-checkpoint-mt9mglwb'

openskills read 'push-checkpoint-mt9mglwb'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/push-checkpoint-mt9mglwb/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills