restore-checkpoint
Skill12 starsChanged 4 months agoMITView on GitHub
Load a checkpoint artifact at session start and restore the session state it describes per spec section 4.4 restore rules. Use only when a checkpoint file is explicitly provided at the beginning of a session.
In this repository11 other files it gives its agents.
- AGENTS.mdAGENTS.md
- create-agents-mdSkill
- create-checkpointSkill
- create-project-instructionsSkill
- create-skillSkill
- create-usercontext-instructionsSkill
- repository-drift-controlSkill
- validate-agents-mdSkill
- validate-project-instructionsSkill
- validate-skillSkill
- validate-usercontext-instructionsSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 5 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
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
- Distinctive: line 15
Do not apply checkpoint state mid-session or without the user explicitly providing the artifact.
- Very specific: line 22
Read the checkpoint artifact and confirm it contains the checkpoint: true marker and all required schema fields per …
- Distinctive: line 25
Ask the user which source to apply for each conflict.
- Distinctive: line 28
Do not begin any task work until the user has confirmed the restored state.
- Distinctive: line 39
Never apply checkpoint state silently — always confirm with the user first.
- Distinctive: line 41
If the checkpoint is missing required fields, flag them before proceeding.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Restore Checkpoint
Purpose
Load a checkpoint artifact and restore the session state it describes, surfacing any conflicts with active instruction files before any work begins.
When To Use
- At the start of a session when the user provides a checkpoint file.
- Do not apply checkpoint state mid-session or without the user explicitly providing the artifact.
Required Inputs
- The checkpoint artifact file (provided by the user at session start).
- Active instruction files (user context and project AGENTS.md) already loaded in context.
Workflow
- Read the checkpoint artifact and confirm it contains the
checkpoint: truemarker and all required schema fields perreferences/restore-rules.md. - For each field in the checkpoint, compare it against any values defined in active instruction files.
- For each conflict found: surface it explicitly — state the conflicting values from both sources and which source each value comes from.
- Ask the user which source to apply for each conflict.
- Apply instruction file values as the default for any conflict the user does not respond to.
- Present the full resolved session state to the user for confirmation.
- Do not begin any task work until the user has confirmed the restored state.
Output Expectations
- A clear confirmation summary showing all restored session state values and their sources.
- Each conflict recorded as resolved, with the winning source noted.
- Any missing required fields flagged, with the user asked to supply them or apply the instruction file default.
Resources
references/restore-rules.mdfor spec section 4.4.3 restore rules, conflict resolution logic, and examples.
Constraints And Safety
- Never apply checkpoint state silently — always confirm with the user first.
- Instruction files are the default source when the user does not respond to a conflict prompt.
- If the checkpoint is missing required fields, flag them before proceeding.
- Checkpoint state is only valid when provided at session start — do not apply it mid-session.
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.

