with one click
descriptive-name
Checkpoint — Persistent Memory Archival
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Checkpoint — Persistent Memory Archival
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
| description | Checkpoint — Persistent Memory Archival |
"What you don't save, you will rediscover — painfully."
You are being asked to perform a complete knowledge archival. This is NOT optional.
Checkpoint is a memory persistence skill that prevents AI coding assistants from losing critical discoveries between conversations. It systematically captures what worked, what failed, and why — so you never solve the same problem twice.
/checkpoint command┌─────────────────────────────────────┐
│ /checkpoint triggered │
└──────────────┬──────────────────────┘
│
▼
┌─────────────────────────────────────┐
│ Step 1: SCAN conversation history │
│ ───────────────────────────────── │
│ Find ALL: │
│ • Solved technical problems │
│ • Failed approaches (and why) │
│ • User preferences & feedback │
│ • API paths, config values, env │
│ • Architecture decisions │
└──────────────┬──────────────────────┘
│
▼
┌─────────────────────────────────────┐
│ Step 2: CHECK existing memory │
│ ───────────────────────────────── │
│ Read MEMORY.md index │
│ Compare: what's saved vs. what's │
│ new in this conversation │
└──────────────┬──────────────────────┘
│
▼
┌─────────────────────────────────────┐
│ Step 2.5: CONSOLIDATE (lightweight)│
│ ───────────────────────────────── │
│ • Fix ghosts (dead index links) │
│ • Fix orphans (unindexed files) │
│ • Flag duplicates for later │
│ • Cross-scope check (project ↔ │
│ global) if both exist │
│ (Full consolidation: use │
│ /checkpoint:consolidate) │
└──────────────┬──────────────────────┘
│
▼
┌─────────────────────────────────────┐
│ Step 3: SAVE new discoveries │
│ ───────────────────────────────── │
│ For each unsaved finding: │
│ 1. Classify type (see table below) │
│ 2. If existing memory covers same │
│ topic → UPDATE it, don't create │
│ a duplicate │
│ 3. Write memory file w/ frontmatter│
└──────────────┬──────────────────────┘
│
▼
┌─────────────────────────────────────┐
│ Step 4: UPDATE index │
│ ───────────────────────────────── │
│ Add new entries to MEMORY.md │
│ Update descriptions if changed │
└──────────────┬──────────────────────┘
│
▼
┌─────────────────────────────────────┐
│ Step 5: VERIFY completeness │
│ ───────────────────────────────── │
│ List all saved entries │
│ Report consolidation findings │
│ Confirm nothing was missed │
└─────────────────────────────────────┘
| Type | What to capture | When to save |
|---|---|---|
| user | Role, goals, preferences, expertise | Learning about the user |
| feedback | Corrections AND confirmations | User says "don't do X" or "yes, exactly" |
| project | Goals, decisions, deadlines, context | Learning who/what/why/when |
| reference | Pointers to external systems | Discovering external resources |
Each memory file MUST use this frontmatter format:
---
name: {{descriptive name}}
description: {{one-line summary for relevance matching}}
type: {{user | feedback | project | reference}}
---
{{content body}}
git log / git blame)Over time, memories accumulate duplicates, stale entries, and index inconsistencies. Checkpoint includes a consolidation system to keep memory clean.
/checkpoint)Step 2.5 runs automatically during every checkpoint:
/checkpoint:consolidate)A standalone command for periodic deep maintenance:
See references/consolidation.md for the full algorithm.
When both global (~/.claude/memory/) and project memory exist:
user type in project scope → suggest promotion to globalCheckpoint works with a passive defense layer (the Anti-Amnesia Protocol) that can be added to CLAUDE.md. While Checkpoint is the active "save now" command, the Anti-Amnesia Protocol ensures the AI checks memory BEFORE starting work and saves AFTER breakthroughs — even without explicit user prompting.
See references/anti-amnesia-protocol.md for the full protocol.
User: /checkpoint
AI: Scanning conversation... Found 3 new discoveries:
1. [SAVED] project_auth_tenant.md
- Tenant blocks app consent
- Must use pre-authorized client ID
- Type: project
2. [SAVED] feedback_no_admin.md
- Never suggest "ask your admin"
- User has no admin rights
- Type: feedback
3. [UPDATED] reference_notebook_structure.md
- Added new section IDs discovered today
- Type: reference
Memory index updated. 3 entries saved/updated.
Without Checkpoint:
With Checkpoint:
/checkpoint