project-memory
БесплатноБез исполняемых скриптовНе проверенUse when a project has docs/memory, when running /memory-init, when a design decision is made (write an ADR), or when a change touches a bounded context whose…
от fmflurry★ 173 звезды на GitHubОб этом скилле
Project memory (split memory)
Project memory is split so that a session loads only what the task needs. It is on by default.
FMFLURRY_MEMORY=off turns it off: skip this skill, and memory-lint passes without checking.
Layout
| Path | Holds | Loaded |
|---|---|---|
AGENTS.md (root) |
Stable rules and pointers only, about 80 lines at most | Every session |
docs/memory/INDEX.md |
One line per memory doc: path and what it covers | Every session, after AGENTS.md |
docs/memory/contexts/<bounded-context>.md |
How one bounded context works: language, invariants, entry points | Only when the task touches that bounded context |
docs/memory/decisions/NNNN-<slug>.md |
One ADR per decision | When a context or the task cites it |
docs/memory/glossary.md |
Shared terms, one line each | When a term is unclear |
The rule instructions/project-memory.md holds the loading rule.
Frontmatter
Every file under docs/memory/ starts with this frontmatter:
---
owner: billing-team # a person or team that answers for the doc
reviewed: 2026-11-03 # YYYY-MM-DD, the last time someone checked it against the code
refs: # files or file#symbol the doc describes; [] when none
- src/billing/invoice.ts
- src/billing/invoice.ts#InvoiceService
---
A ref is a path relative to the project root. path#symbol also needs the symbol as a whole word in that file.
memory-lint
agent-harness memory-lint [ROOT] checks docs/memory. It fails on:
- a doc with no frontmatter, no
owner, or noreviewed - a
revieweddate older than 90 days - a dead ref: a missing path, a path outside the project, or a symbol not found in its file
ADRs under decisions/ still need owner and a valid reviewed, but skip the age and ref checks: they are immutable records. A ref that resolves outside the project, including through a symlink, is dead. It warns when AGENTS.md is longer than 80 lines. A project without docs/memory passes. The PR hook lints the project of the session's working directory, so open the PR from the project it targets.
The ship stop gate puts lint findings in its block reason. agent-harness pr-report-check and the
gh pr create hook run it too. When docs/memory exists, they also require the PR body line below.
/memory-init
Scaffold the layout in the target project. Do not overwrite a file that already exists. Report the files you created and the ones you skipped.
- Read the existing root
AGENTS.md(orCLAUDE.md). Keep stable rules and pointers there. Move bounded-context detail tocontexts/, and decisions todecisions/. Keep it at 80 lines or fewer. - Find the bounded contexts from the source tree (modules, packages, top-level feature folders). Create one
contexts/<bounded-context>.mdper context, with refs to its entry points. Ask when the split is unclear. Do not guess. - Create
decisions/0001-record-architecture-decisions.mdfrom the ADR template. - Create
glossary.mdandINDEX.md. Write one INDEX line per doc. - Set
ownerfrom the user's answer orCODEOWNERS, and setreviewedto today. - Run
agent-harness memory-lintand fix every finding.
AGENTS.md pointer block:
## Project memory
- Index: `docs/memory/INDEX.md`. Read it first.
- Read `docs/memory/contexts/<bc>.md` only when the task touches that bounded context.
- Decisions: `docs/memory/decisions/`. ADRs are immutable.
INDEX.md line: - [contexts/billing.md](contexts/billing.md): invoices, payment terms, credit notes
ADR template
---
owner: <team>
reviewed: <YYYY-MM-DD>
refs: []
---
# NNNN. <Title>
Status: accepted <!-- proposed | accepted | superseded by NNNN -->
Date: <YYYY-MM-DD>
## Context
## Decision
## Consequences
ADRs are immutable. To change a decision, write a new ADR. In the old one, change only Status: to superseded by NNNN and the frontmatter. Keep the old file. Number with the next free four-digit NNNN. Add the new ADR to INDEX.md.
Upkeep
- A decision is made (architect, writer): write an ADR.
- A change touches a bounded context (doc-updater): update that context file so it matches the code, fix its refs, and set
reviewedto today. - A PR body states
mémoire : màjwhen memory changed, ormémoire : aucun changementwhen it did not.
Установить project-memory в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл project-memory?
Use when a project has docs/memory, when running /memory-init, when a design decision is made (write an ADR), or when a change touches a bounded context whose memory file must stay true. Skip it when FMFLURRY_MEMORY=off.
Как установить скилл project-memory?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл project-memory запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic