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
- garrytan/gstacktheir own version, first seen Oct 7, 2026
- HanksChen0110/skillstheir own version, first seen Oct 3, 2026
- leishifu666/skillstheir own version, first seen Sep 29, 2026
- greenharborlabs/claude-skillstheir own version, first seen Aug 9, 2026
- mphaxise/gstack-port-for-codextheir own version, first seen Aug 6, 2026
- Quarktex/qcobraintheir own version, first seen Aug 2, 2026
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.
CodeWithBehnamSkillgstack-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
SentrySkillspec
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
Other versions14 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 14
- garrytan/gstack★ 143ksame name
- thanh-abaii/gstack-windows-port★ 36same name
- eeshansrivastava89/skills★ 4same name
- mphaxise/gstack-port-for-codex★ 4same name
- Quarktex/qcobrain★ 4same name
- GTMify/claude-skills-starter★ 2same name
- HanksChen0110/skills★ 2same name
- chloropine/cgstack★ 1same name
- leishifu666/skills★ 1same name
- mahiunfiltered/claude-code-skills★ 1same name
4 more not listed
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 repository12 other files it gives its agents.
- AGENTS.mdAGENTS.md
- deepseek/AGENTS.mdAGENTS.md
- kimi/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- close-sessionSkill
- cold-emailSkill
- deploySkill
- endSkill
- outreach-atlasSkill
- pickup-contextSkill
- research-vizSkill
- triageSkill
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
- Distinctive: line 15
Goal: leave enough on disk that the next window resumes this work without retrying dead ends.
- Distinctive: line 32
Keep it under about 80 lines.
“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.
Files
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.
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.

