Save session state for later resumption
Scanned 5/27/2026
Install via CLI
openskills install jhlee0409/all-for-claudecodeAre you the author of Checkpoint?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/jhlee0409-checkpoint)More formats (shields.io, HTML) on the badges page.
---
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.
No comments yet. Be the first to comment!