context-capsule
Write a resume-ready capsule from live memory, then stop. Use when explicitly saving state, preserving context, checkpointing, or completing a milestone.
от wrg32786★ 26 звёзд на GitHub
Установить context-capsule в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
/context-capsule — the capsule verb
The entire job: reconcile → write the capsule → confirm it → chronicle → sync the vault → STOP. The capsule absorbs /close: there is no separate close ceremony, and no separate stamping step — writing a valid capsule (content gate passes, required fields non-empty) and folding the session into durable memory is the capsule contract.
When this skill fires vs the automatic verb
A rolling, best-effort version of this write already runs on every Stop event via daemons/stop-capsule-writer.mjs — you don't need this skill for ordinary turn-by-turn capture. Invoke /context-capsule for the explicit cases: a mid-session checkpoint before risky work, a completion capsule when a thread ships, or a handoff.
Operator sovereignty (never violate)
- The capsule is best-effort autosave, never a gate. An operator
/clearpasses through whether or not a capsule landed; never tell the operator to wait on capsule machinery.
Fences (never cross)
- Do NOT write a narration capsule. Reconcile-from-memory is the value: a capsule that restates the transcript instead of the live memory/git state is the trap this verb exists to prevent.
Steps (tight + terminal)
RECONCILE from live memory — re-read the session log, active priorities, and this session's git commits. Record what happened, not what was said. Budget: 2–4 reads, no more.
WRITE
vault/memory/capsules/<YYYY-MM-DD>-<slug>.md:- Frontmatter — all four REQUIRED fields non-empty, no inline
#comments on them,waiting_onquoted (never barenull):id,objective,waiting_on,next_valid_action; plusparent_capsule_id,status: active,trigger,expires,tags,created_at. Stampcreated_atwith the real current date-time at this write, ISO-8601 with offset (e.g.2026-07-25T11:12:04-07:00) — the selector parses this field, and a date-only stamp backdates the capsule to midnight UTC where it loses to every same-day autosave.resume_triggerandsuccess_criteriaare OPTIONAL — include them when they add real signal, omit otherwise. - Body —
[REFERENCE ONLY]banner, then:Done (don't redo)·Historical-Errors → Resolutions·Historical-Rejected-Approaches·Files-Read / Files-Modified·Operating-Facts·In-Flight Side Effects·Pending-Gates·Claimed-Rows. Historical- prefixes and latest-wins stay (anti-zombie). waiting_onis the resume contract: write it so a fresh session can act from it alone — concrete items, owners, gates.- Follow the Done claims contract.
- Frontmatter — all four REQUIRED fields non-empty, no inline
CONFIRM the write. Re-read the exact file you just wrote: it landed at the path you think it did,
idmatches the filename, and every required field is populated. Self-check the frontmatter against the field list and the content gate (injection echo / ceremony action,daemons/capsule-content-gate.mjs). There is no separate trusted-writer pass to catch a mistake after the fact, so an unread write is an unverified one. Repair before continuing.CHRONICLE — the close-parity pass. This verb absorbed
/close, so it has to absorb what/closeactually did, or the durable record stops growing the moment you stop running the old verb:- Memory-delta pass — fold this session's real changes into the durable notes that changed (typically 2 to 6 files under
vault/memory/). Precise edits, not a transcript dump. - Stage directives — anything decision-shaped or instruction-shaped that isn't already banked goes to
vault/memory/MEMORY_CANDIDATES.md. A directive that exists only inside a capsule dies with that capsule: the capsule is spent on the next resume, and the directive is not meant to be. - One
vault/memory/SESSION_LOG.mdline, newest first:- <YYYY-MM-DD> <capsule-id>: <one-line summary>.
- Memory-delta pass — fold this session's real changes into the durable notes that changed (typically 2 to 6 files under
SYNC fail-soft. After the capsule and memory edits land, run
node daemons/vault-sync.mjs. The helper requires the operator to approve every effective push URL in repository-localaigent.vaultSyncPushUrlbefore staging or publishing memory. A clone'soriginis not approval. Never add that approval yourself to bypass a refusal; seedocs/vault-sync.md. No remote remains a silent no-op. Unapproved destinations and Git failures are recorded in the memory root's.daemon-errors.log; the CLI remains silent and exits 0, which is not proof of sync. Note the byte position of the resolved memory root's.daemon-errors.logbefore the call and inspect newtag="vault-sync"records afterward; an old last line is not this call's outcome. Keep any unsynced or unverified status in the durable record before step 7, without blocking the acknowledgement or clear. Local capsules remain on disk whether or not a remote backup succeeds.EXTENSION ACK, only if this install declares one. Run this and act on what it prints:
node daemons/lifecycle-extension.mjs render capsule_ack
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл context-capsule?
Write a resume-ready capsule from live memory, then stop. Use when explicitly saving state, preserving context, checkpointing, or completing a milestone.
Как установить скилл context-capsule?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл context-capsule запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
AnthropicUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
xlsx
AnthropicUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
pptx
AnthropicUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…