/atelier:savefrom atelier
Use when ending a session or at a meaningful checkpoint — captures session state for the next resume.
Ships in atelier. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
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.
Call save when closing a session or at a meaningful checkpoint. This is the last thing you do before ending work.
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. Read internal/migrate-local-to-memex/SKILL.md and
follow its prompt protocol. After the user answers, restart the
pre-flight (startup_check() will now return proceed-memex or
proceed-local depending 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.
Check for uncommitted changes. Run (from the target project root):
git status --short
git add -A
git commit -m "<message>"
If git commit fails, surface the error and do not proceed until the working tree is clean.Detect worktree. Run:
git rev-parse --git-dir
.git: not a worktree. Skip to Phase B.worktrees/ (or worktrees\ on Windows): you are in a linked worktree. Continue to Phase A-WT.Merge back, remove worktree, delete branch. Run:
python3 atelier/scripts/worktree.py merge-back
This script:
--no-ff.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.
Determine context.
You need four values before calling session.py write. If you ran load this session they are in working memory. If not:
project_id: run python3 atelier/scripts/projects.py list and 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 with projects.py create or confirm you are in the correct target directory." Do not proceed to step 5.agent_id: run python3 atelier/scripts/agents.py list and identify your own agent record by name. Ask the user if your record is ambiguous or missing.phase: read from the project record returned by projects.py list (phase column).status: determine from session state — in-progress, blocked, or complete.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])."
ingest.session.py write — if the DB write fails, do not confirm success.next_action must be an imperative sentence (e.g., "Run the migration tests"). Reject vague values like "continue" or "TBD".projects.py and session.py use .ai/memex.db. Pass no db path; the default is correct..ai/work.md — that file no longer exists in this architecture.What SKILL.md sets; muted values are Claude Code's defaults
atelier@agora is listed by nitekeeper/agora — review the source before installing
npx claudepluginhub nitekeeper/agora --plugin atelier8 skills in this plugin
/abortUse when tearing down a live agent-team — a graceful (soft) or forced (--hard) abort that records a durable abort-report postmortem, writes the 'aborted' audit event (the resume signal), sets the team status, and applies the worktree policy./ingestUse when capturing a document, URL, decision, or learned context into the shared Memex wiki for future sessions./loadUse when resuming work mid-arc and needing the latest session context loaded into the conversation./migrateUse when manually triggering or re-triggering Local → Memex migration for the current Atelier project — bypasses the .ai/atelier.local-only opt-out marker and retries on prior failure.