save
Skill0 starsChanged 5 months agoMITView on GitHub
Use when ending a session or at a meaningful checkpoint — captures session state for the next resume.
36 other projects use a version of this.
Adopted by
Most recently taken up by
- FabianoArthur/claude-code-kitchentheir own version, first seen Nov 8, 2026
- paulogabriel/beryltheir own version, first seen Nov 8, 2026
- matthewwong525/WongStacktheir own version, first seen Nov 8, 2026
- pche-broken-artist/forge-of-thoughttheir own version, first seen Nov 6, 2026
- egregore-labs/egregoretheir own version, first seen Nov 6, 2026
- vidit19sharma/neogentstheir own version, first seen Nov 1, 2026
Used with
Projects with it also use query, idea and 7 more.
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.
ArtemXTechSkillquery
Query data from this vault. USE WHEN user asks about projects, clients, tasks, daily notes. Use grep to extract frontmatter - do NOT read full files.
Also in 4 projects that use this
szweibelSkillidea
Generate a wide field of options when the user is brainstorming, exploring, expanding, or pressure-testing — not recommending or implementing
Also in 3 projects that use this
GoogleSkilldashboard
Configures and launches the GKE Capacity & Triage Dashboard scoped to a GCP project ID, GKE cluster name, or target ML workload ID. Uses the configure-and-launch-dashboard action and launch-workload-dashboard workflow to verify local dashboard health, discover cluster capacity, trigger live scans, and generate deep-linked URLs. Use when the user types "/dashboard", says "launch dashboard", "open dashboard", "show capacity", or "view triage dashboard" with a project, cluster, or workload. Don't use for general workload log querying or automated failure attribution (use the troubleshoot skill).
Also in 4 projects that use this
Microsoft AzureSkilllint
Run all linting and spell checking for TypeScript and Rust code. Run this before committing to catch style issues, clippy warnings, and misspellings.
Also in 5 projects that use this
HK-hubSkilldefuddle
Extract clean markdown content from web pages using Defuddle CLI, removing clutter and navigation to save tokens. Use instead of WebFetch when the user provides a URL to read or analyze, for online documentation, articles, blog posts, or any standard web page.
Also in 3 projects that use this
termdockSkillrecall
Retrieves cross-session memories about past decisions, lessons, and patterns. Use when user asks about prior work, past decisions, or mentions a feature. Triggers include check memory, what did we decide, how did we solve.
Also in 4 projects that use this
Other versions36 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 36
- AgriciDaniel/claude-obsidian★ 16ksame name
- egregore-labs/egregore★ 293same name
- romarayt/raytsystem-public-os★ 140same name
- thiagofinch/mega-brain★ 95same name
- sturlese/hippocampus★ 28same name
- endlessblink/master-plan★ 26same name
- pche-broken-artist/forge-of-thought★ 12same name
- CarbeneAI/Forge★ 9same name
- seongjaeryu/bindly-claude-code★ 8same name
- ARCASSystems/FounderOS★ 7same name
26 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.
The file
Show its rules and text
We split this skill into the rules it gives an agent
19 rules. 0 are common, 11 are distinctive, and 8 are very specific to this project.
0
Common
Most of the 31 edited versions we read keep these.
11
Distinctive
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 11
Call save when closing a session or at a meaningful checkpoint.
- Very specific: line 29
Settings recommendation (after pre-flight): if startup_check() returned a settings_rec_offer with eligible=True and non-empty changes, read …
- Distinctive: line 32
BEFORE proceeding to the rest of this skill.
- Distinctive: line 40
Run (from the target project root):
- Distinctive: line 44
If clean (no output): skip to step 2.
- Distinctive: line 45
If dirty: ask the user for a brief commit message, then:
- Distinctive: line 50
If git commit fails, surface the error and do not proceed until the working tree is clean.
- Very specific: line 57
If the output is literally .git: not a worktree.
- Very specific: line 58
If the output path contains worktrees/ (or worktrees\ on Windows): you are in a linked worktree.
- Distinctive: line 73
If the script exits non-zero (conflict, dirty main, detached HEAD): follow its printed recovery instructions.
- Very specific: line 80
If the output is empty (
[]or no rows): stop. Tell the user: "No projects found in .ai/memex.db. - Distinctive: line 96
Ask: "Does this capture the session correctly?
- Distinctive: line 109
If the command exits non-zero or returns an error: abort.
- Distinctive: line 116
Ask: "Anything to capture to the knowledge base?
- Very specific: line 117
If yes: invoke ingest.
- Distinctive: line 122
Never skip Phase A — git state must be clean before writing a session row.
- Distinctive: line 123
Always check for worktree (step 2) — leaked worktrees accumulate silently.
- Very specific: line 124
Never proceed past a failed session.py write — if the DB write fails, do not confirm success.
- Very specific: line 127
Never reference .ai/work.md — that file no longer exists in this architecture.
“Common” is measured: kept by at least 6 in 10 of the 31 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
save
Session-close command. Commits git state, writes a session row to the DB, and optionally captures session knowledge to Memex. In a git worktree, also merges back to the base branch and cleans up the worktree.
When to use
Call save when closing a session or at a meaningful checkpoint. This is the last thing you do before ending work.
Pre-flight (always first)
Run from scripts.atelier_entrypoint import startup_check; startup_check().
Branch on the returned action:
proceed-local— Memex is not installed. Continue with the rest of this skill's recipe; all writes go to the project-local.ai/atelier.db.proceed-memex— Memex is installed and bootstrapped. Continue; all writes go through Memex.prompt-migration— Memex is installed but this project still has a local DB. Readinternal/migrate-local-to-memex/SKILL.mdand follow its prompt protocol. After the user answers, restart the pre-flight (startup_check()will now returnproceed-memexorproceed-localdepending on the user's choice).
Settings recommendation (after pre-flight): if startup_check() returned a
settings_rec_offer with eligible=True and non-empty changes, read
internal/settings-recommendation/SKILL.md and follow its prompt protocol
BEFORE proceeding to the rest of this skill. After the user's choice, continue
the original command.
Procedure
Phase A — Git state
- Check for uncommitted changes.
Run (from the target project root):
git status --short- If clean (no output): skip to step 2.
- If dirty: ask the user for a brief commit message, then:
Ifgit add -A git commit -m "<message>"git commitfails, surface the error and do not proceed until the working tree is clean.
- Detect worktree.
Run:
git rev-parse --git-dir- If the output is literally
.git: not a worktree. Skip to Phase B. - If the output path contains
worktrees/(orworktrees\on Windows): you are in a linked worktree. Continue to Phase A-WT.
- If the output is literally
Phase A-WT (linked worktree only)
Merge back, remove worktree, delete branch. Run:
python3 atelier/scripts/worktree.py merge-backThis script:
- Verifies the main workspace is on the expected base branch and clean.
- Merges the worktree branch into the base branch with
--no-ff. - Removes the worktree directory.
- Deletes the worktree branch.
If the script exits non-zero (conflict, dirty main, detached HEAD): follow its printed recovery instructions. Do not proceed to Phase B until cleanup is complete or the user explicitly decides to skip cleanup.
Phase B — Write session
- Determine context.
You need four values before calling
session.py write. If you ranloadthis session they are in working memory. If not:project_id: runpython3 atelier/scripts/projects.py listand select the active project. If the output is empty ([]or no rows): stop. Tell the user: "No projects found in.ai/memex.db. Create a project first withprojects.py createor confirm you are in the correct target directory." Do not proceed to step 5.agent_id: runpython3 atelier/scripts/agents.py listand identify your own agent record by name. Ask the user if your record is ambiguous or missing.phase: read from the project record returned byprojects.py list(phasecolumn).status: determine from session state —in-progress,blocked, orcomplete.
Gather session fields. Draft the following from your working memory of this session, then present as a block for user confirmation:
current_tasks : <one sentence — what is in progress right now> accomplished : <what was completed or meaningfully advanced this session> next_action : <first imperative action for the next session> status : in-progress | blocked | complete blocking_reason: <required only if status is "blocked">Ask: "Does this capture the session correctly? (edit or confirm)" Wait for confirmation before writing.
Write the session. Run:
python3 atelier/scripts/session.py write <project_id> <agent_id> <phase> <status> \ --current-tasks "<current_tasks>" \ --accomplished "<accomplished>" \ --next-action "<next_action>" \ [--blocking-reason "<blocking_reason>"](DB:
.ai/memex.db)If the command exits non-zero or returns an error: abort. Do not confirm success. Surface the error to the user.
On success, confirm: "Session saved (project [project_id], session [id from output])."
Phase C — Knowledge capture
- Offer Memex ingest.
Ask: "Anything to capture to the knowledge base? (y/n)"
- If yes: invoke
ingest. - If no: done.
- If yes: invoke
Hard rules
- Never skip Phase A — git state must be clean before writing a session row.
- Always check for worktree (step 2) — leaked worktrees accumulate silently.
- Never proceed past a failed
session.py write— if the DB write fails, do not confirm success. next_actionmust be an imperative sentence (e.g., "Run the migration tests"). Reject vague values like "continue" or "TBD".- Both
projects.pyandsession.pyuse.ai/memex.db. Pass no db path; the default is correct. - Never reference
.ai/work.md— that file no longer exists in this architecture.
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.

