Command Palette

Search for a command to run...

Назад к скиллам
скилл № 75658

close

Save session outcomes to durable vault memory and prepare a resume point. Use when ending a session, wrapping up, or done for today.

БесплатноБез исполняемых скриптов
wrg32786от wrg32786★ 26 звёзд на GitHub

Установить close в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Session Close

Deprecated. This skill is superseded by skills/context-capsule/SKILL.md|/context-capsule (docs/two-verb-lifecycle.md). New installs should reach for /context-capsule; this file stays for anyone still invoking /close by habit during the transition.

Run the aigent-OS end-of-session memory commit inline. The close must be idempotent: rerunning it after a partial failure must not duplicate ledger entries, capsules, or session summaries.

All operator-owned durable state lives under vault/. Framework indexes such as memory/SKILL_LEDGER.md remain outside the vault and are not session memory.

Hardened compatibility contract

The active two-verb lifecycle does not run a second close ceremony, but manual /close keeps the same shared postconditions as nightly:

  • exact already-authored decision outcomes append only through daemons/nightly-decision-outcome.mjs, with a unique decision/interval match and compare-and-swap;
  • bounded Session Log or Active Priorities trimming runs only through skills/context-hygiene/SKILL.md, archives before removal, and must end in CONTEXT_HYGIENE PASS;
  • Dream synthesis follows skills/dream/SKILL.md and must end in DREAM_CONTRACT PASS;
  • cognitive changes follow skills/cognitive-update/SKILL.md and must end in COGNITIVE_CONTRACT PASS;
  • missing canonical input is failure, not "nothing to do";
  • judgment-bearing measurement entries are staged through skills/nightly-ledger-capture/SKILL.md.

These helpers use local memory, Git, stderr, and the SessionStart surface. No external coordination service is required.

Step 0: discipline audit

Run these checks before writing the daily note.

Gate A: honesty ledger

If the session included non-trivial work, completed-task claims, multi-file edits, or consequential decisions and vault/memory/HONESTY_LEDGER.md was not updated:

  1. Run /honesty-check on the most consequential work block.
  2. Append one structured entry covering verified, inferred, guessed, tradeoffs, stopped short, cost implications, self-rating, and resolution.
  3. Continue only after the entry is durable.

Gate B: trust-decay capture

If consequential work was described as fixed, verified, tested, deployed, complete, shipped, ready, running, merged, or passing and vault/memory/TRUST_DECAY.md was not updated, append one to three open Phase 1 claims. Do not convert confident language into evidence after the fact.

Gate C: failure corpus

If /diagnose established a verified cause, append it to vault/memory/FAILURE_MODES.md unless an equivalent entry already exists.

Gate D: decision outcomes

If the operator answered a decision-aging prompt, use the dedicated writer before closing:

node daemons/nightly-decision-outcome.mjs --root "$AIGENT_ROOT" \
  --as-of <YYYY-MM-DD> --decision-date <YYYY-MM-DD> \
  --decision-title "<exact heading>" --interval <30|60|90> \
  --outcome "<enum>" --operator-text "<exact enum>" \
  --operator-source "<durable direct operator ref>" \
  --expected-file-sha "<pre-read sha256>"

Ambiguous, not-yet-due, already-recorded, or raced correspondence is staged instead of guessed.

Gate E: weekly measurement

On Friday, include one line summarizing honesty entries, trust-decay captures, failure modes, and decision outcomes for the week. Zero activity after a non-trivial week is a signal that the measurement loop did not fire.

Step 0.5: somatic integrations

Review staged memory

Read vault/memory/MEMORY_CANDIDATES.md. If staged candidates exist, run /digest. Promotion remains human-gated; a close may record deferral but must not silently promote candidates.

Create a context capsule when needed

Create vault/memory/capsules/<capsule_id>.md when any of these are true:

  • Context pressure is medium or higher.
  • More than five delegations remain open.
  • A non-trivial task shipped.
  • The operator explicitly requested a capsule.

Use the context-capsule schema, set status: active, and connect resumed sessions with parent_capsule_id. If a previous capsule is still active, demote it to resumed before making the new one active.

Update vault/memory/BODY_STATE.json at state.last_capsule only after the capsule file is durable.

Skip capsule creation when there is no meaningful state to preserve.

Step 1: identify durable changes

Update only files whose owned state changed. Typical sessions touch two to six notes.

Location Update when
vault/memory/SESSION_LOG.md Always, with one idempotent entry per session
vault/memory/DECISION_LOG.md A lasting, non-obvious decision was made
vault/memory/ACTIVE_PRIORITIES.md Priority, mode, blocker, or completion changed
vault/memory/DELEGATION_TRACKER.md A delegation opened, moved, blocked, or closed
vault/projects/*.md Project state materially changed
vault/agents/*.md Agent scope or capability changed
vault/people/*.md A p
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл close?

Save session outcomes to durable vault memory and prepare a resume point. Use when ending a session, wrapping up, or done for today.

Как установить скилл close?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл close запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить close с