agentleFS
mphaxisemphaxise/gstack-port-for-codex/skills/context-restore/SKILL.md

context-restore

Skill4 starsChanged 4 months agoMITView on GitHub

Restore saved working context and orient a new Codex session before continuing work.

29 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use grill-me.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • GoogleSkill

    grill-me

    A relentless interview to sharpen a plan or design.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

8 rules. 0 are common, 8 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 24 edited versions we read keep these.

  • 8

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when the user asks to resume, restore context, pick up where they left off, or figure out where the work stands.

    line 8
  2. Distinctive:

    Read the latest relevant saved context:

    line 17
  3. Distinctive:

    prefer explicit user-provided context

    line 18
  4. Distinctive:

    if the current branch has none, fall back to the newest relevant cross-branch checkpoint for an intentional worktree handoff

    line 20
  5. Distinctive:

    Do not overwrite local changes while restoring context.

    line 32
  6. Distinctive:

    Do not assume untracked files are disposable.

    line 33
  7. Distinctive:

    Do not let a newer sibling-worktree checkpoint shadow a current-branch checkpoint.

    line 34
  8. Distinctive:

    If saved context conflicts with current files, trust the current files and call out the mismatch.

    line 36

“Common” is measured: kept by at least 6 in 10 of the 24 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 Restore

Use this skill when the user asks to resume, restore context, pick up where they left off, or figure out where the work stands.

Workflow

  1. Inspect current state:
    • current branch
    • git status --short
    • recent commits
    • any reports, checkpoints, or brain pages related to the task
  2. Read the latest relevant saved context:
    • prefer explicit user-provided context
    • then the newest repo-local report or checkpoint for the current branch
    • if the current branch has none, fall back to the newest relevant cross-branch checkpoint for an intentional worktree handoff
    • then local brain search via query or brain-ops
  3. Reconstruct:
    • what was done
    • what changed locally
    • what remains
    • what should not be touched
  4. Continue only after the working boundary is clear.

Guardrails

  • Do not overwrite local changes while restoring context.
  • Do not assume untracked files are disposable.
  • Do not let a newer sibling-worktree checkpoint shadow a current-branch checkpoint. Keep cross-branch state as a fallback, not the first choice.
  • If saved context conflicts with current files, trust the current files and call out the mismatch.

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.