context-checkpoint
Skill98 starsChanged 2 months agoMITView on GitHub
Externalize working state to a checkpoint file so long tasks survive context compaction, interruption, and handoff. Use at the start of any task expected to exceed ~30 minutes, touch many files, or run many commands; whenever a phase completes, the plan changes, or a dead end is confirmed; and immediately after any compaction or session resume, before editing. Not for short single-file edits.
5 other projects use a version of this.
Adopted by
Most recently taken up by
- yogsoth-ai/context-managementtheir own version, first seen Oct 13, 2026
- cyrus-tt/claude-context-checkpointtheir own version, first seen Jul 4, 2026
- clarity-digital-development/tworkflowtheir own version, first seen Jul 1, 2026
- prasadmogulothu/agent-skillstheir own version, first seen Jun 28, 2026
- pauloribeiro16/my-skillstheir own version, first seen May 28, 2026
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 5
- clarity-digital-development/tworkflow★ 47same name
- cyrus-tt/claude-context-checkpoint★ 9same name
- yogsoth-ai/context-management★ 2same name
- pauloribeiro16/my-skills★ 1same name
- prasadmogulothu/agent-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository38 other files it gives its agents.
- ambiguity-commitSkill
- api-surface-careSkill
- calibrated-recommendationSkill
- codebase-orientationSkill
- concurrency-reasoningSkill
- config-and-flagsSkill
- cross-platform-careSkill
- data-loss-guardSkill
- data-migration-safetySkill
- dependency-changesSkill
- docs-as-contractSkill
- edge-case-sweepSkill
- environment-firstSkill
- error-message-qualitySkill
- escalate-vs-decideSkill
- estimation-and-scopingSkill
- explain-at-the-right-levelSkill
- generalize-the-correctionSkill
- git-hygieneSkill
- incident-diagnosisSkill
- leave-no-messSkill
- llm-app-codeSkill
- numerical-careSkill
- performance-investigationSkill
- perf-sanitySkill
- question-vs-taskSkill
- resource-lifecycleSkill
- reviewing-a-changeSkill
- root-cause-debuggingSkill
- security-reflexesSkill
- stop-thrashingSkill
- subagent-fanoutSkill
- surgical-refactoringSkill
- task-decompositionSkill
- test-designSkill
- untrusted-content-guardSkill
- verify-ui-visuallySkill
- workmanshipSkill
The file
We split this skill into the rules it gives an agent
1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
Write checkpoint.md in the session scratchpad (or a gitignored .claude/ path in the repo — never a tracked file).
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
context-checkpoint
Weak checkpointing looks like: forty minutes of decisions living only in conversation history, then a compaction, then a confident post-compaction session redoing step 2 while overwriting completed step 4. Strong checkpointing keeps ground truth in a file a cold reader could resume from in under a minute.
1. Create the file at task start
Write checkpoint.md in the session scratchpad (or a gitignored .claude/ path in the repo — never a tracked file). Contents, in this order:
- Goal — one line, in the user's words.
- Acceptance — the concrete command or observation that proves done (e.g. the exact test command).
- Steps — ordered, each with a status marker:
[ ]todo,[x]done,[-]dead end. - Decisions — "chose X over Y because Z". The why is what evaporates first.
- Resume point — see §3. Empty at start.
Tell the user the path once; don't narrate every update.
2. Update at phase boundaries, not continuously
Rewrite the file when a step completes, the plan changes, a dead end is confirmed, or you're about to start something long-running or risky. Record dead ends with what was tried and the evidence it failed, so they aren't retried. Don't checkpoint every edit — noise hides the signal.
3. Make the resume point executable
The resume section contains, verbatim: the last command you ran and its current output (trimmed to the failing lines), the file:line you were editing, and the next single concrete action. "Continue the migration" is useless after compaction; "run <test cmd> -k utf8; still failing at ingest.py:214 null check; next: guard row.name before .encode" resumes in seconds.
4. After compaction or resume, trust the file over the summary
Before any edit in a resumed session: re-read the checkpoint, run git status and git diff --stat, and reconcile them. The compacted summary is lossy; the file and the diff are ground truth. Where they disagree, the diff wins and the file gets corrected. Never redo a step marked [x] without evidence it is actually undone.
5. Commit at safe points
When the work is committable and committing is within your brief, a described commit is the strongest checkpoint there is (see git-hygiene). Don't let 400 lines of uncommitted work ride on one fragile context; at minimum list "uncommitted: files A, B, C" in the resume point.
Exit check
At the end of the task the checkpoint holds the final state and the report can be written from it alone. If the task is handed off unfinished, the resume point is the handoff.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

