Skip to content
Back to skills

Checkpoint

ASecurity

Persist session state — summary, active goal, TaskList with blockedBy, recent decisions, open questions, repo state — to docs/checkpoints/ in the repository's main folder (also when run from a linked worktree). Use before auto-compact, a long pause, or a machine switch. Pairs with /resume.

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

Security analysis

A100/100

Scanned December 1, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Checkpoint?

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

Security grade badge for Checkpoint
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/phpcraftdream-checkpoint-e08dcaf2/badge)](https://www.skillsdirectory.com/skills/phpcraftdream-checkpoint-e08dcaf2)

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: checkpoint
description: "Persist session state — summary, active goal, TaskList with blockedBy, recent decisions, open questions, repo state — to docs/checkpoints/ in the repository's main folder (also when run from a linked worktree). Use before auto-compact, a long pause, or a machine switch. Pairs with /resume."
---

# checkpoint

Write the live session state to one markdown file so a later session (or this one after compact) can continue.

## Usage

```
/checkpoint               # timestamped: 2026-06-19-1432.md
/checkpoint pre-refactor  # pre-refactor.md; re-running overwrites it
```

Names are slugs (lowercase, hyphens, no spaces); `/resume pre-refactor` finds it.

{{include:checkpoint-main-worktree}}

{{include:checkpoint-no-machine-paths}}

## Behavior

1. **Guard** as above. Target: `<name>.md`, else `YYYY-MM-DD-HHMM.md`, in the checkpoint directory: `<repo-root>/docs/checkpoints/`, or the worktree fallback above.
2. **Collect** (omit an absent item silently):
   - **Session summary** — 5–15 sentences in your own words: what the user is working on, what is done, what is in flight, live hypotheses, inspected files/URLs, active /loop or /babysit timers. This is what survives compact: write it for a stranger. Uncertain → say "unclear", don't smooth it over.
   - **Active goal** — a `/goal` Stop hook's condition, verbatim.
   - **TaskList** — call TaskList; record `id`, `status`, `subject`, `blockedBy`. Order: in_progress, pending, completed (latest 10), deleted as a count only.
   - **Decisions** — up to 5 recent material ones: what was chosen, what was rejected. None clearly visible → skip, never invent.
   - **Open questions** — unresolved items flagged as needing user input.
   - **Repo state** — as described above: the main folder first, then every linked worktree and what is done there.
3. **Write** the file:

   ````markdown
   # Checkpoint — <YYYY-MM-DD HH:MM> [<label>]

   ## Session summary
   <5–15 sentences>

   ## Active goal
   <goal text or "none">

   ## TaskList
   ### in_progress
   - #<id> <subject>  (blockedBy: #<id>, …)
   ### pending
   - #<id> <subject>  (blockedBy: …)
   ### recently completed
   - #<id> <subject>

   ## Decisions
   - chose X over Y because Z

   ## Open questions
   - …

   ## Repo state
   ### main folder [<branch>]
   ```
   <git status>
   ```
   ```
   <git log -5>
   ```
   ### worktrees
   - <folder name> [<branch>] — <what is done there>; <status: clean / N changed>; last <sha subject>  (this session)
   ````

4. **Report** one line with the absolute path. Do not add the file to git.

## Important

- Empty sections keep a one-line reason; never invent content to look complete.
- No secrets, tokens or large file dumps — metadata and decisions only.
- Read-mostly: writes one file, never alters the TaskList or goal.

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.