memory-compound
БесплатноБез исполняемых скриптовНе проверенUse when memory nears the first 200 lines or 25 KB, whichever comes first — compound it into qmd notes
от yotamleo-org★ 15 звёзд на GitHubОб этом скилле
memory-compound — distil auto-memory into searchable substrate
Lean-invoke skill. Run it when MEMORY.md approaches its load limit (the
first 200 lines or 25 KB, whichever comes first — Claude Code loads no more of
the index) or when audit-memory-capture.sh --structure reports an over-cap
topic file. The session-load size-limit warning and the SessionStart
index-state notice are the natural cues. It encodes the by-hand 56KB → 16KB compaction as ONE pass. Do not
wire this as an
always-on hook — the classification (durable vs disposable), dedupe, and
placement are judgement-heavy, which is exactly why it sits at the
lean-invoke layer.
The documented move it automates: docs/luna/compounding.md §"A second loop:
auto-memory → vault".
Safety rails — read first
These are non-negotiable. The pass is zero-loss only if you keep this order.
- Read-many, write-once (single-writer rule). Fan out reader subagents
READ-ONLY to mine the topic files in parallel. Exactly ONE writer (you,
the parent) appends synthesized content to the vault. Never fan parallel
writes at a shared note. (Single-writer rule: root
CLAUDE.md.) All landings go on a BRANCH in a worktree — vault AND repo (operator directive 2026-07-14): himmel docs through the normal worktree → PR flow, and vault notes via a vault worktree on achore/memory-compound-<date>branch (git -C <vault> worktree add <path-outside-vault> -b <branch>), committed + pushed, and merged by the OPERATOR after review. The vault is a single-writer personal repo with no PR gate by design (the.single-writerconvention in rootCLAUDE.md) — the branch + operator merge IS its review step; himmel-side landings keep the full PR + approval flow. Never write the live vault checkout or main directly — the branch is about trackability and reviewable merges, not parallelism. - Land before you trim. Append the durable learning to its vault note
BEFORE you touch
MEMORY.md, and trimMEMORY.mdBEFORE deleting any topic file. - qmd gate before any deletion. Re-index (
qmd update+qmd embed) and spot-check that the moved content is findable. Delete a topic file only after its content is confirmed searchable in the vault. No gate pass → no deletion. - Snapshot first. Before the first write,
memory-snapshot.sh takecopies the whole store (index and every topic file) and a checkpoint follows each step (step 5 of the runbook), so an interrupted or wrong pass rolls back without clobbering another writer's edits. If the script is not found, stop: never run a pass without a verified snapshot. - Status is disposable, not durable. PR numbers, "merged", ticket state,
dates → drop them (already recoverable from Jira, git history, and the
sessions/captures). Only the reusable gotcha / decision compounds. - Run in a DEDICATED session. A hurried inline trim loses recall hooks,
and the judgement (what compounds, what is disposable) deserves its own
context. When the size warning fires mid-task: note it, finish the task,
run the
himmel-ops:memory-compoundskill in its own session. (Adding a genuinely NEW entry mid-task stays fine.) Cache cost is small, not a reason to defer — still batch the edits into ONE pass; measurement in references/cache-cost.md. - Memory does not propagate — adopter-generic learnings MUST land in himmel docs. Auto-memory and the luna vault are operator-side only; a generic gotcha compounded only into luna is invisible to every other himmel user. The propagation review in step 3 is a gate, not a suggestion.
Resolve the memory dir (step 0)
Resolve the himmel checkout first (the scripts below are called by absolute path, so this works from any cwd):
git rev-parse --path-format=absolute --git-common-dir
Run printenv HIMMEL_REPO first; if it prints a path, that is <himmel>, the
checkout's absolute path. Otherwise, inside a himmel checkout, run the line
above and drop the trailing /.git from what it prints. Then confirm the
snapshot script is there:
ls <himmel>/scripts/memory/memory-snapshot.sh
If it is missing, stop, and set HIMMEL_REPO to a himmel checkout: a pass never
runs without a verified snapshot.
Command shape. The guards accept a bare literal absolute path, not a shell
variable or a chain. Type the absolute path wherever a command below shows
<himmel>, <memdir> (the memory dir) or <snap> (the step-5 snapshot
directory): no $VAR, no || or &&, one command per tool call; read each
exit code.
The auto-memory lives at ~/.claude/projects/<project-slug>/memory/, where
<project-slug> is the primary checkout's path with every character outside
[A-Za-z0-9] turned into -. The MEMORY.md already injected into THIS
session is the authorit
Установить memory-compound в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл memory-compound?
Use when memory nears the first 200 lines or 25 KB, whichever comes first — compound it into qmd notes
Как установить скилл memory-compound?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл memory-compound запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set 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…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic