| name | checkpointing |
| description | Save full session context: git history, Agent Teams activity,
and discover reusable skill patterns โ all in one run. No flags needed.
Run at session end, after major milestones, or when you want to capture learnings.
|
| metadata | {"short-description":"Full session checkpoint with skill pattern discovery"} |
Checkpointing โ ใปใใทใงใณใฎๅ
จ่จ้ฒใจใใฟใผใณ็บ่ฆ
ใปใใทใงใณใฎๅ
จๆดปๅใ่จ้ฒใใๅๅฉ็จๅฏ่ฝใชใใฟใผใณใ็บ่ฆใใใๆฏๅๅ
จ้จใใใ
What It Does (Every Time)
/checkpointing
โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ 1. Collect Everything โ
โ โโโ git log (commits, file changes, line stats) โ
โ โโโ Agent Teams activity (tasks, teammates, messages) โ
โ โโโ Design decisions (.claude/docs/DESIGN.md changes) โ
โ โ
โ 2. Generate Checkpoint โ
โ โ .claude/checkpoints/YYYY-MM-DD-HHMMSS.md โ
โ โ
โ 3. Update Session History โ
โ โ CLAUDE.md (cross-session persistence) โ
โ โ
โ 4. Discover Skill Patterns โ
โ โ Subagent analyzes checkpoint โ
โ โ Suggests reusable skills โ
โ โ User reviews and approves โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Usage
/checkpointing
/checkpointing --since "2026-02-08"
What Gets Captured
Git Activity
- Commits (hash, message, date)
- File changes (created, modified, deleted + line counts)
- Branch information
Agent Teams Activity
- Team composition (Lead + Teammates, roles)
- Shared task list state (completed, in-progress, pending)
- File ownership per teammate
- Communication patterns (who messaged whom, about what)
- Team effectiveness signals (tasks completed vs stuck, file conflicts)
Teammate Work Logs
- Each Teammate's work log from
.claude/logs/agent-teams/{team-name}/{teammate}.md
- Contains: Summary, Tasks Completed, Files Modified, Key Decisions, Communication with Teammates, Issues Encountered
- Written by each Teammate upon completing all assigned tasks
- Only present when Agent Teams were used (
/startproject, /team-implement, /team-review)
Design Decisions
- Changes to
.claude/docs/DESIGN.md since last checkpoint
- New entries in Key Decisions table
Checkpoint Format
# Checkpoint: 2026-02-08 15:30:00 UTC
## Summary
- **Commits**: 12
- **Files changed**: 15 (10 modified, 4 created, 1 deleted)
- **Agent Teams sessions**: 1 (3 teammates)
- **Tasks completed**: 8/10
## Git History
### Commits
- `abc1234` feat: redesign startproject for Opus 4.6
- `def5678` feat: add team-implement skill
...
### File Changes
**Created:**
- `.claude/skills/team-implement/SKILL.md` (+180)
...
**Modified:**
- `CLAUDE.md` (+40, -25)
...
## Agent Teams Activity
### Team: project-planning
**Composition:**
- Lead: Claude (orchestration)
**Task List:**
- [x] Research library options (Researcher)
- [x] Design module architecture (Architect)
- [x] Validate API constraints (Researcher)
- [x] Finalize implementation plan (Architect)
**Communication Patterns:**
- Researcher โ Architect: 3 messages (library constraints)
- Architect โ Researcher: 2 messages (additional research requests)
**Effectiveness:**
- All tasks completed
- No file conflicts
- 2 design iterations triggered by research findings
## Teammate Work Logs
### Team: project-planning
#### researcher
_Source: `.claude/logs/agent-teams/project-planning/researcher.md`_
# Work Log: Researcher
## Summary
Researched httpx library constraints and API patterns for the new API client module.
## Tasks Completed
- [x] Research libraries: httpx supports HTTP/2 via h2 dependency
- [x] Find documentation: httpx connection pool defaults to 100
## Communication with Teammates
- โ Architect: httpx connection pool limit of 100, HTTP/2 requires h2
- โ Architect: Requested HTTP/2 multiplexing research
#### architect
_Source: `.claude/logs/agent-teams/project-planning/architect.md`_
# Work Log: Architect
## Summary
Designed API client module architecture with HTTP/2 support.
## Design Decisions
- Use httpx[http2] for multiplexed connections: reduces latency for parallel requests
## Communication with Teammates
- โ Researcher: Request HTTP/2 multiplexing research
- โ Researcher: httpx supports HTTP/2 via h2
## Design Decisions (New)
- Agent Teams for Research โ Design (bidirectional)
## Skill Pattern Suggestions
### Pattern 1: Research-Design Iteration (Confidence: 0.85)
**Evidence:** Researcher and Architect exchanged findings 5 times, each
exchange refined the design. This back-and-forth is a repeatable pattern.
**Suggested skill:** Already captured as /startproject Phase 2.
### Pattern 2: Parallel File-Isolated Implementation (Confidence: 0.75)
**Evidence:** 3 implementers worked on separate modules with zero conflicts.
Module boundaries were defined by directory ownership.
**Suggested skill:** Already captured as /team-implement.
---
_Generated by checkpointing skill_
Session History Update
Each checkpoint also appends a concise summary to CLAUDE.md:
## Session History
### 2026-02-08
- 12 commits, 15 files changed
- Agent Teams: 1 session (3 teammates, 8/10 tasks completed)
- New skills: /team-implement, /team-review
- Key decisions: Agent Teams for parallel work
This persists across sessions โ new sessions load CLAUDE.md and see what happened before.
Skill Pattern Discovery
The checkpoint is automatically analyzed to find reusable patterns:
What it looks for:
- Sequences of commits forming logical workflows
- File change patterns (e.g., test + implementation together)
- Agent Teams coordination patterns (team composition, task sizing)
- Multi-step operations that could be templated
Output: Skill suggestions with confidence scores. High-confidence patterns (>= 0.8) that don't match existing skills are presented to the user for approval.
Execution Flow
/checkpointing
โ
โโ 1. Run checkpoint.py (collects git + teams data)
โ โ Generates .claude/checkpoints/YYYY-MM-DD-HHMMSS.md
โ
โโ 2. Update CLAUDE.md with session summary
โ
โโ 3. Spawn subagent for skill pattern analysis
โ Reads checkpoint file
โ Identifies reusable patterns
โ Reports suggestions to user
โ User approves โ new skills created in .claude/skills/
When to Run
| Timing | Why |
|---|
| ใปใใทใงใณ็ตไบๅ | ๅ
จๆดปๅใ่จ้ฒใๆฌกใปใใทใงใณใธใฎๅผใ็ถใ |
/team-implement ๅฎไบๅพ | ใใผใ ๆดปๅใใฟใผใณใๆๆ |
/team-review ๅฎไบๅพ | ใฌใใฅใผใใฟใผใณใๆๆ |
| ๅคงใใช่จญ่จๆฑบๅฎๅพ | ๆฑบๅฎใฎใณใณใใญในใใๆฐธ็ถๅ |
| ็นฐใ่ฟใใใฟใผใณใๆใใๆ | ในใญใซๅใฎ็บ่ฆใใฃใณใน |
Notes
- ใใงใใฏใใคใณใใฏ
.claude/checkpoints/ ใซ่็ฉใใใ๏ผ.gitignore ๆธใฟ๏ผ
- ใญใฐใใกใคใซ่ชไฝใฏๅคๆดใใใชใ๏ผ่ชญใฟๅใใฎใฟ๏ผ
- ในใญใซๆๆกใฏๅฟ
ใใฆใผใถใผใใฌใใฅใผใใฆใใๆก็จใใใใจ
- Agent Teams ใฎใใผใฟใฏ
~/.claude/teams/ ใจ ~/.claude/tasks/ ใใๅ้