# Afc:checkpoint

> Save session state for later resumption

- **Type:** Skill
- **Install:** `agentstack add skill-jhlee0409-all-for-claudecode-checkpoint`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [jhlee0409](https://agentstack.voostack.com/s/jhlee0409)
- **Installs:** 0
- **Category:** [Developer Tools](https://agentstack.voostack.com/c/developer-tools)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [jhlee0409](https://github.com/jhlee0409)
- **Source:** https://github.com/jhlee0409/all-for-claudecode/tree/main/skills/checkpoint
- **Website:** https://www.npmjs.com/package/all-for-claudecode

## Install

```sh
agentstack add skill-jhlee0409-all-for-claudecode-checkpoint
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# /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.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [jhlee0409](https://github.com/jhlee0409)
- **Source:** [jhlee0409/all-for-claudecode](https://github.com/jhlee0409/all-for-claudecode)
- **License:** MIT
- **Homepage:** https://www.npmjs.com/package/all-for-claudecode

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-jhlee0409-all-for-claudecode-checkpoint
- Seller: https://agentstack.voostack.com/s/jhlee0409
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
