# Checkpoint

> Capture current session progress as a structured checkpoint

- Skill: `majiayu000/checkpoint-7` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds add majiayu000/checkpoint-7`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/checkpoint-7/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/majiayu000/checkpoint-7

---


When the user invokes /checkpoint, follow these steps:

## 1. Gather Current State
- Get current git branch and status (`git status`, `git log --oneline -5`)
- List files modified in the last 30 minutes: `find . -name '*.rs' -o -name '*.sh' -o -name '*.md' -o -name '*.json' -o -name '*.toml' -mmin -30 -not -path './.git/*' -not -path './target/*'`
- Check TaskList for in-progress and completed tasks (if a team exists)

## 2. Check Linear Status
- Get the current Linear ticket status for the active branch's ticket

## 3. Build Checkpoint
Create a JSON checkpoint file at `.claude/checkpoints/<ISO-timestamp>.json`:
```json
{
  "timestamp": "<ISO-8601>",
  "branch": "<current-branch>",
  "ticket": "<ENG-XX>",
  "recent_commits": ["<last 5 commit subjects>"],
  "modified_files": ["<files changed in last 30 min>"],
  "tasks": {
    "completed": ["<completed task subjects>"],
    "in_progress": ["<in-progress task subjects>"],
    "pending": ["<pending task subjects>"]
  },
  "summary": "<1-2 sentence summary of current state>"
}
```

## 4. Save to Cross-Session Memory
Save a brief observation to claude-mem with:
- What was accomplished
- What's in progress
- Any blockers or decisions made

## 5. Print Summary
Display the checkpoint contents in a readable format.

