agentleFS
onbluerosesonblueroses/strata/skills/context-save/SKILL.md

context-save

Skill3 starsChanged 3 months agoMITView on GitHub

Write a short session brief to state/auto-context-save-SESSION_ID.md so the same work resumes after compaction, then point operator-supplied memory at it. Manual: /context-save at milestones or before manual compaction.

14 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use gstack-upgrade and spec.

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.
  • CodeWithBehnamSkill

    gstack-upgrade

    Upgrade gstack to the latest version. Detects global vs vendored install, runs the upgrade, and shows what's new.

    Also in 3 projects that use this

  • SentrySkill

    spec

    Produce a verified spec — problem, desired outcome, and acceptance criteria — before building. Use when given a GitHub/Linear issue link, when starting from a fuzzy in-conversation idea, or asked to "figure out what to do" / "scope this" / "what should I build" — whenever the *what* isn't yet pinned down. Grills the ambiguities, checks the premise against the code, and produces acceptance criteria you sign off on — then hands to design-first.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 10 edited versions we read keep these.

  • 2

    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:

    Goal: leave enough on disk that the next window resumes this work without retrying dead ends.

    line 15
  2. Distinctive:

    Keep it under about 80 lines.

    line 32

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

Goal: leave enough on disk that the next window resumes this work without retrying dead ends.

Success means: the save file exists with the six sections below, and one operator-supplied memory pointer names it.

Stop when: the file is written and the pointer is appended (or the session has no entity to scope it to).

Write the save

Take the session id from the SESSION SCOPE: @s/<id> line of the SessionStart wake output. Write <state-dir>/auto-context-save-<id>.md with these sections and nothing else:

  • Goal — what this session is for.
  • State — done / in flight / blocked.
  • Decisions — each with its reason.
  • Next moves.
  • Read on resume — paths, one phrase of cue each.
  • Gotchas learned this session.

Keep it under about 80 lines. Point at durable documents by path instead of copying them; operator-supplied memory, specs, and git survive compaction untouched. Keep secrets out. Merge over an existing save for this session rather than starting fresh.

Point operator-supplied memory at it

Append one pointer per entity the session worked (usually one), skipping it when the session has no entity:

P @e/<entity> @s/<id> @k/context-save <absolute path> | <why this save matters>

Pass it as one shell-quoted argument to python3 <memory-adapter> note '<line>'. The whole line must fit 280 UTF-8 bytes; shorten the why, never the path.

Report the save path in one line.

Portable adapter

Set <state-dir> and <memory-adapter> to the target operator's local state and memory interfaces before using this skill. Do not run the literal placeholders.

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.