capsule-compact
Compact capsule chains by summarizing older capsules. Use when manually compacting capsules or a context chain grows too long.
от wrg32786★ 26 звёзд на GitHub
Установить capsule-compact в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
/capsule-compact
Run python3 daemons/capsule-compact.py <head_capsule_id> from the vault root.
The script:
- Walks
parent_capsule_idchain backward from the head - If chain length >= 5, summarizes the oldest 3 capsules into a single
chain-summary-<head>-<date>.mdcapsule - Updates pointers: boundary capsule's parent → summary; summary's parent → original chain root's parent
- Marks each compacted capsule with
compacted_into: <summary_id>(they stay on disk for archeology)
When to run
- /close Step 0.5 PART E (v0.4.5) reports the capsule chain length when the threshold is hit
- Manually before a session-heavy week to keep /open Step 2.5 fast
- After narrative-reconstruction archeology when the chain has grown unwieldy
Defaults
- Threshold: 5 capsules
- Summarize-count: 3 oldest
Override via --threshold N and --summarize-count N flags.
What it does NOT do
- Does not auto-compact at /close. Hints, you decide.
- Does not delete compacted capsules. Each gets
compacted_into:marker. - Does not LLM-summarize. Concatenates structured fields (objective, open_threads still live, held decisions).
- Does not walk forks. parent_capsule_id is strictly linear.
Cross-links
- concepts/Somatic v0.4.5 Chain Compaction — spec
- concepts/context-capsule — base capsule schema
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Bash - 02
Read
FAQ
Что делает скилл capsule-compact?
Compact capsule chains by summarizing older capsules. Use when manually compacting capsules or a context chain grows too long.
Как установить скилл capsule-compact?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл capsule-compact запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…