agentleFS
pauloribeiro16pauloribeiro16/my-skills/context-checkpoint/SKILL.md

context-checkpoint

Skill1 starsChanged 6 months agoMITView on GitHub

Use when conversation context exceeds 70% or before continuing long tasks. Prevents context anxiety, creates structured handoff for next session.

5 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

11 rules. 0 are common, 9 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 9

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before a long task continuation

    line 13
  2. Distinctive:

    When context feels cluttered

    line 14
  3. Very specific:

    Create or update SESSION_STATE.md with:

    line 21
  4. Distinctive:

    Before continuing after checkpoint:

    line 58
  5. Distinctive:

    Read the exact continuation point

    line 60
  6. Distinctive:

    Verify environment (venv, ports, etc.)

    line 61
  7. Distinctive:

    If context must be fully cleared:

    line 66
  8. Distinctive:

    Read all relevant AGENTS.md files

    line 67
  9. Distinctive:

    Read the continuation point file

    line 69
  10. Distinctive:

    Never lose work or repeat steps

    line 76
  11. Very specific:

    Always write to SESSION_STATE.md before checkpoint

    line 81

“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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Context Checkpoint Skill

Prevents context overflow and ensures continuity across sessions.

When to Activate

  • Context window above 70%
  • Before a long task continuation
  • When context feels cluttered
  • Between major phases of work

What to Do

Step 1 — Write Session State

Create or update SESSION_STATE.md with:

# SESSION_STATE — [date]

## Completed
- [x] Task A (file:line)
- [x] Task B (file:line)

## In Progress
- [ ] Task C — blocked by X
- [ ] Task D — in progress, half done

## Next Steps
1. Complete Task C (file:line)
2. Start Task D (target file)
3. Verify with code-reviewer

## Exact Continuation Point
File: [path/to/file.py]
Line: [line number]
Next action: [what to do next]

## Context Summary
- Working on: [what this part does]
- Key files: [list]
- Neo4j ports: 7688/7475 (if applicable)
- Current case: [case name if applicable]

## Handoff Notes
- Don't restart from scratch — read SESSION_STATE.md first
- Check SESSION_STATE.md for blocked tasks
- code-reviewer should verify before continuing

Step 2 — Clear Context Path

Before continuing after checkpoint:

  1. Read SESSION_STATE.md
  2. Read the exact continuation point
  3. Verify environment (venv, ports, etc.)
  4. Continue from where you left off

Step 3 — If Context Reset Required

If context must be fully cleared:

  1. Read all relevant AGENTS.md files
  2. Read SESSION_STATE.md
  3. Read the continuation point file
  4. Resume work

Why This Matters

  • Prevents "context anxiety" (agent wrapping up prematurely)
  • Clean handoff between sessions
  • Never lose work or repeat steps
  • Maintains quality across long tasks

Rules

  • Always write to SESSION_STATE.md before checkpoint
  • Include exact line numbers for continuation
  • Include file paths for all relevant files
  • Note any blocked tasks or dependencies

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.