Skip to content
Back to skills

Checkpoint

ASecurity

Save session state for later resumption

  • 7 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 26, 2026
developmentbashgit

Security analysis

A100/100

Scanned May 27, 2026

npx -y skills add jhlee0409/all-for-claudecode --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/jhlee0409-checkpoint/badge)](https://www.skillsdirectory.com/skills/jhlee0409-checkpoint)

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: afc:checkpoint
description: "Save session state for later resumption"
argument-hint: "[checkpoint message]"
model: sonnet
allowed-tools:
  - Read
  - Write
  - Glob
  - Bash
---

# /afc:checkpoint — Save Session State

> Saves the current work state to .claude/afc/memory/checkpoint.md.
> Preserves progress even if the session is interrupted.

## Arguments

- `$ARGUMENTS` — (optional) checkpoint message (e.g., "Phase 2 complete, before starting UI implementation")

## Current State (auto-loaded)

!`git rev-parse --abbrev-ref HEAD 2>/dev/null || echo "[NO_BRANCH]"`
!`git log --oneline -1 2>/dev/null || echo "[NO_COMMITS]"`
!`ls .claude/afc/specs/ 2>/dev/null || echo "[NO_SPECS]"`

## Execution Steps

### 1. Collect Current State

Collect automatically (use pre-fetched state above when available):

1. **Git status**:
   - Current branch
   - Last commit hash + message
   - List of changed files (`git status --short`)
2. **Active Features**:
   - Check subdirectories under `.claude/afc/specs/`
   - Progress state of each feature (spec only? through plan? implementing?)
3. **Tasks Progress**:
   - If tasks.md exists, count `[x]`/`[ ]` items
4. **Current Work Context**:
   - `$ARGUMENTS` message
   - Recently modified files (`git diff --name-only`)

### 2. Save Checkpoint

**Overwrite** `.claude/afc/memory/checkpoint.md` (keep only the latest state):

````markdown
# Session Checkpoint

> Saved: {YYYY-MM-DD HH:mm}
> Branch: {branch name}
> Commit: {hash} — {message}

## Message
{$ARGUMENTS or "automatic checkpoint"}

## Active Features
| Feature | Status | Progress |
|---------|--------|----------|
| {name} | {spec/plan/implementing/done} | {N/M tasks} |

## Incomplete Work
{concrete next steps}

## Changed Files
```
{git status --short output}
```

## Context Notes
{things to remember about the current work}
````

### 3. Final Output

```
Checkpoint saved
├─ Time: {HH:mm}
├─ Branch: {branch name}
├─ Active features: {count}
├─ Progress: {completed tasks}/{total tasks}
└─ Restore: /afc:resume
```

## Notes

- **Overwrite**: Always keep only the latest state. Git handles history.
- **Auto-collect**: Collect information automatically as much as possible. Minimize user input.
- **Keep it concise**: Exclude unnecessary details. Only what is needed to restore.

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.

Comments

Loading comments…

Newsletter

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