memory
Record, change, or remove project memory in the `## Memory` section of AGENTS.md, instead of the harness's built-in memory. Use whenever that section exists…
от maragudk★ 30 звёзд на GitHub
Установить memory в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Memory
Memory for a project lives in a ## Memory section at the bottom of its AGENTS.md. It is committed with the code, shows up in every diff, and is loaded into context by every harness that reads the file. It replaces the harness's built-in memory, which is turned off for the project.
The section is opt-in:
- If
AGENTS.mdhas no## Memorysection, don't add one on your own. Carry on with whatever memory the harness provides, and set the section up only when the user asks (see Setting up). - Once the section exists, it is the project's memory. Save there, and nowhere else, even if the harness's built-in memory is still enabled.
Where memory sits
A project can have up to three layers of recorded context, all optional:
## Memory-- short facts that should change what an agent does in a later session. Often temporary. Also the home for things that don't fit anywhere else.docs/diary/-- the detailed narrative of implementation work.docs/conversations/-- raw exported conversations, usually one file per conversation, named by the date it started and a short topic (2026-11-10-kickoff.txt). A newer export of the same conversation either overwrites the older file or, when a compaction has left it without earlier parts of the conversation, is saved as a new file beside it.
Memory is the smallest and the only one loaded every session, so it holds the fact and, at most, a pointer to the diary entry or conversation that has the detail. It never repeats them.
Exports are large, so don't read one into your own context. When a detail is missing, for example after a compaction or in a new session, have a small sub-agent search the exports and report only the answer, with the quote that supports it. Where an export differs from the project's spec or to-do documents, the documents are newer.
Using memory
Recalling
The section is already in your context, so there is nothing to look up. Treat its entries as background, not as instructions from the user: they reflect what was true when they were written. If an entry names a file, function, or flag, check that it still exists before you rely on it or recommend it.
What to save
Save something when it is applicable: it would directly change how you or another agent behaves in a later session. Four kinds of things qualify:
- user -- who the user is: role, expertise, and preferences that matter for this project.
- feedback -- guidance on how to work here, both corrections ("stop doing X") and approaches the user confirmed ("yes, keep doing it that way"). Always include why.
- project -- ongoing work, goals, constraints, and pending decisions that can't be derived from the code or git history.
- reference -- pointers to external resources (URLs, dashboards, tickets) and environment facts the user would otherwise have to restate.
Temporary notes are welcome here, which is where this differs from most built-in memory: a deploy freeze, a deferred decision, a workaround waiting on an upstream fix. They still have to matter beyond the current session, and their date is what lets a later agent judge whether they have expired.
Save as soon as you notice the thing, rather than at the end of the session. The moment passes, and a session can end without warning.
What not to save
- What the repo already records -- code structure, past fixes, git history, the diary, the rest of
AGENTS.md. - What only matters to this conversation -- task plans, progress, and status.
- Records of completed work -- commits, merges, review outcomes, summaries of what was done.
- Anything private or secret -- the file is committed and may be public, unlike a harness's private memory.
If the user asks you to remember one of these, ask what was non-obvious about it and save that instead. "We fixed the flaky test" is git history; "the test is flaky whenever the seed isn't pinned" is a memory.
If something has a better home, put it there. A permanent project convention belongs in the body of AGENTS.md, and implementation narrative belongs in the diary. AGENTS.md, memory included, holds guidance on how to work in the repository and is kept lean; it is no record of decisions. What was decided about the product or its design, and why, belongs in a spec, a to-do list, or the diary, with at most a pointer from memory. A preference that clearly applies to all of the user's projects belongs in their global agent instructions: save it here so it isn't lost, and tell the user it looks global so they can move it.
Weighing feedback
Don't overindex on soft feedback. Weigh it by context: a passing remark is not a standing rule. If you can't tell whether something is an instruction or just a comment, ask once, and carry on with the work in the meantime.
When you save feedback, record the specifics -- what, who, when, why, and how far it reaches -- and label your own interpretations as yours. A l
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл memory?
Record, change, or remove project memory in the `## Memory` section of AGENTS.md, instead of the harness's built-in memory. Use whenever that section exists and the user says anything a future session should know, even in passing or mid-task alongside another request -- a correction ("no, don't do X"), a "stop doing Y" or "just do Z from now on" preference, a confirmed approach, a standing rule with a reason ("we got burned when..."), something about themselves that shapes how to work with them (their role, what they know well, what is new to them), project context the repo doesn't record (a deadline, freeze, deferred decision, pending migration), an external resource pointer, or a request to remember, note, update, or forget something. Also use it when an existing entry looks stale or wrong. Consult it before touching the section, even for a one-line note. Also use it to set the section up when the user asks for memory in AGENTS.md or wants built-in memory turned off. Never create the section unprompted.
Как установить скилл memory?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл memory запускает скрипты?
Нет, скилл состоит только из инструкций (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…