memory-capture
БесплатноБез исполняемых скриптовНе проверенCapture a working thread's current state into one coherent Basic Memory note; on re-capture, rewrite it in place. Use mid- or end-of-thread when decisions…
от basicmachines-co★ 4 799 звёзд на GitHubОб этом скилле
Memory Capture
Capture the gist of a working thread — the decisions made, insights surfaced, and context built — into a single coherent Basic Memory note that reflects where the thread has landed.
Project scope
If the project is unknown, discover it with bm_project_list().
Pass a nonempty project on every note, folder, context and schema call, even
with one project or a qualified memory:// URL. Use the chosen project's name,
workspace/project, or external ID; <project> below is a placeholder for it.
Recent activity also requires project. Search accepts project for one
project, projects for selected projects, or all_projects=True explicitly.
Discovery and bundled manuals need no project. Keep the same scope when following
returned paths, paginating, or recovering from a refusal.
Purpose
A thread has a beginning, middle, and end. Things change as the conversation progresses: an early decision gets revised, a problem looks different in light of new information, a trade-off is settled differently than it first seemed. When this skill is invoked, capture the current state of understanding, not the history of how it got there.
If the skill is invoked more than once in the same thread, the same note is rewritten so it stays coherent — not appended to. The result should read top-to-bottom as a single document about the thread's outcome, with brief prose where a meaningful change is worth acknowledging.
When to Use
Typical timing is mid-thread or end-of-thread, after enough has been settled to be worth preserving.
Use this skill when:
- Key decisions have been made and shouldn't evaporate when the thread closes
- A design, debugging, or planning discussion has produced something concrete
- The user explicitly asks to capture, save, or remember what's been discussed
- Toward the end of a session, to summarize the outcome
It is fine — and expected — to invoke this skill multiple times in the same thread as the conversation evolves.
Same-Thread Detection
To rewrite the same note on re-capture instead of duplicating, key the note to a stable thread_id in its frontmatter.
If your agent exposes a stable session or thread id, store it as thread_id so subsequent captures within the same thread find and rewrite the same note. Any value that stays constant for the duration of the thread works — a session UUID, a conversation id, a ticket number the work is scoped to.
Example (hosts with a JSONL transcript): some agents write a per-session transcript whose filename is a stable session UUID. If yours does, you can derive the id from the most-recently-modified transcript file and use it as
thread_id. This is optional — only do it if your host actually exposes such a transcript.
If no stable id is available, match the existing note by title/topic instead: search for a note covering the same thread (bm_search(query="<topic>", project="<project>")), and if you find the one this thread already produced, rewrite it. Omit thread_id and rely on a consistent title.
Decision Flow
- Determine the thread key. Use a stable session/thread id if your agent exposes one; otherwise plan to match by title/topic.
- Search Basic Memory for the existing thread note.
- With a thread id, use
filters(notquery) — full-text query doesn't reliably match YAML frontmatter custom fields:bm_search( filters={"thread_id": "<thread-id>"}, project="<project>" ) - Without one, search by topic and identify the note this thread already produced:
bm_search(query="<thread topic>", project="<project>")
- With a thread id, use
- If a match is found:
- Read the existing note as JSON (use the full permalink returned by search) and keep its
checksum - Synthesize a new version that integrates the latest understanding from the conversation
- Overwrite via
bm_writewithoverwrite=Trueandexpected_checksumset to that checksum using the returnedfile_pathasidentifier(samethread_idif used). AREVISION_CONFLICTerror means another session changed the note since you read it: read it again and re-synthesize
- Read the existing note as JSON (use the full permalink returned by search) and keep its
- If no match is found:
- Synthesize the note from the conversation
- If you have a thread id, pass
metadata={"thread_id": "<thread-id>"}tobm_write(it surfaces as a custom frontmatter field) - Save it. If
bm_writelists similar existing notes, check whether one of them is this thread's note before keeping the new one
Synthesis Rules
When updating an existing thread note, synthesize, don't append:
- Decisions that are still current → keep, possibly refined
- Decisions that have been superseded → replaced inline (the new one goes where the old one was)
- Significant revisions that deserve explanation → a sentence woven into the relevant section, not an appended changelog
- Outdated context → removed
Goal: the note reads top-to-bottom as a singl
Установить memory-capture в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл memory-capture?
Capture a working thread's current state into one coherent Basic Memory note; on re-capture, rewrite it in place. Use mid- or end-of-thread when decisions, insights, or context are worth keeping.
Как установить скилл memory-capture?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл memory-capture запускает скрипты?
Нет, скилл состоит только из инструкций (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