Skip to content
Back to skills

Ccheckpoint

ASecurity

Same as /checkpoint (checkpoint kept in the repository's main folder, also when run from a linked worktree), plus a local commit of just the checkpoint file it writes.

  • 2 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added October 22, 2026
ai-agentsbashgit

Security analysis

A100/100

Scanned November 13, 2026

npx -y skills add PHPCraftdream/cc-arch-hands --skill ccheckpoint --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ccheckpoint?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ccheckpoint
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/phpcraftdream-ccheckpoint-2f0afb87/badge)](https://www.skillsdirectory.com/skills/phpcraftdream-ccheckpoint-2f0afb87)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ccheckpoint
description: "Same as /checkpoint (checkpoint kept in the repository's main folder, also when run from a linked worktree), plus a local commit of just the checkpoint file it writes."
---

# ccheckpoint

Run `/checkpoint` with the same argument, then commit only the file it wrote,
with ordinary Git commands. Never push.

## Usage

```
/ccheckpoint
/ccheckpoint pre-refactor
```

## Behavior

1. Invoke `Skill('checkpoint', <the same argument, or none>)` from the same
   caller working directory. If it refused (not a Git repository), relay that
   and stop: nothing to commit. In a linked worktree it writes into the main
   folder, or into the worktree when the harness confines the session there;
   continue with whichever file it reported. Never enter a worktree for this.
2. Take the basename of the reported path, as data. It must match
   `^[a-z0-9]+(?:-[a-z0-9]+)*\.md$` and the file must be
   `<folder>/docs/checkpoints/<basename>`, with `<folder>` the main folder
   `/checkpoint` resolved, or the worktree for a fallback checkpoint. Its
   stem is `NAME`.
3. Commit only that file in `<folder>`: separate short Bash calls, `NAME`
   replaced by the stem, `<folder>` by its absolute path (quoted). `-C` runs
   Git there whatever the caller's directory; `:(top)` addresses the path
   from that folder's root:

   ```bash
   git -C "<folder>" status --porcelain -- ':(top)docs/checkpoints/NAME.md'
   git -C "<folder>" add -- ':(top)docs/checkpoints/NAME.md'
   git -C "<folder>" commit --only -m 'checkpoint: NAME' -- ':(top)docs/checkpoints/NAME.md'
   git -C "<folder>" rev-parse --short HEAD
   ```

   - Empty `git status` output → the file already matches `HEAD`: report
     "unchanged" and stop (success).
   - `git add` says the path is ignored → report "not committed:
     docs/checkpoints/ is ignored". Never use `git add -f`.
   - Add the active commit-attribution trailers with an extra `-m`.
   - The commit lands on the branch checked out in `<folder>`; from a
     worktree say which branch that is in the report.
   - The harness refuses `git -C` because this session is confined to its
     worktree → report "not committed: this session is confined to its
     worktree; commit it from `<folder>`" and stop. The checkpoint is
     already written. Never work around the refusal (`cd`, `GIT_DIR`,
     `GIT_WORK_TREE`, wrapper scripts).
   - `git commit --only` commits just this path; everything else stays staged
     as it was.

## Errors

- A failure caused by how you typed the command (quoting, a wrong path, a
  missing argument) is yours to fix: correct the command and run it again.
  Don't end the turn on a failure an ordinary Git command can still fix.
- Stop and report (quoting Git) only a real blocker for the user: a merge,
  rebase, cherry-pick or revert in progress, another process holding
  `index.lock`, a failing commit hook, or a denied permission (including a
  session confined to its worktree).
- Never remove a lock you did not create, never bypass hooks (`--no-verify`),
  never reset, restore or discard anything.
- Do not use `git commit-tree`, `git update-ref`, a custom `GIT_INDEX_FILE`,
  hand-made lock files or a generated multi-line script.

## Important

- Never stage or commit any other file. Never push. Never launch sub-agents.
- Finish with the checkpoint's absolute path and the commit SHA (or
  "unchanged", or the blocker). The checkpoint stays valid without a commit.
- `/checkpoint`'s Important rules still apply.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.