/project-memory:project-memoryfrom project-memory
A project's shared memory across sessions, its friction cases and skill drafts. Use when CLAUDE.md names a project memory file (read it at task start, append what another task needs), on "remember this" about the project, to set it up, the moment the project (hosts, sign-ins, docs, scripts, setup) cost you a workaround, round trip, whole-tree search or the user's help, on any task, coding or not, or when a procedure of 3+ steps no skill covers comes up a second time (a skill draft).
Ships in project-memory. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
What one task learned that another needs: decisions the user made, pitfalls, conventions found the hard way. It lives
in the project as an index (memory.md) over topic files (memory/*.md), and the project's CLAUDE.md names the
index with a line like Project memory: `docs/claude/memory.md` .
Read the index when you start a task. Each topic has a "read when" trigger: read the topic files whose trigger matches your task, whole, and skip the rest; read one later when the work reaches it. (A project with a single flat file: read it whole.) When you learn something another task's session would need, append it to the matching topic file, one line per entry:
- <YYYY-MM-DD> <TASK>: <the decision or pitfall, and why, in one line>
CLAUDE.md or doc already says.misc.md), never the index itself.>> or an edit at the end; never rewrite or delete other lines. Other sessions write it too.
Deleting, merging and moving entries is the prune's and the graduate pass's..claude/coordination/memory.md (session-orchestration's shared mode), read that team
memory first, the same way (its index, then its memory/<topic>.md files whose trigger matches), then yours, which
uses the same topic names and wins where they differ. Tag an entry true and useful to a collaborator on another
machine [team] (- <date> <TASK>: [team] …); in doubt, leave it untagged. Never write to the committed files
yourself.memory-init DIR [--topic FILE TITLE TRIGGER]… (beside this file) writes the index and a topic file per --topic,
plus the catch-all misc.md, only where missing; --dry-run lists them first. Propose a folder (docs/claude/ or
wherever the project keeps notes for Claude) and two or three topics from the project's areas, write on the user's
yes, then add the Project memory: line to the project's CLAUDE.md (or CLAUDE.local.md when the memory is
personal). session-orchestration's setup does this for you.
Memory is an inbox, not the home: every session start pays for it, so the index stays short and entries leave once
they've proved themselves. On the user's ask (with session-orchestration, the coordinator does it in passing):
delete an entry that is wrong, superseded, about a task state that has since resolved, or already in a CLAUDE.md,
a doc or a skill; merge two about the same trap. A flat file past a screen or so gets split into topics: build the
topic files and the new index as copies, re-check for lines appended meanwhile, and swap the index in with one mv,
so no session's append is lost. Moving entries into the docs, and finding and archiving the ones nobody cites, is the
graduate pass.
File a case the moment you tell the user about friction the project caused (its hosts, sign-ins, docs, scripts, setup): you worked around it, took an extra round trip, misreported because of a file or a script's output, or the user had to step in. It counts on any task, coding or not, and also when you said nothing: you searched the whole tree for what a doc should have pointed to, or the user pointed you to something written where you couldn't find it (a rule you just skipped is your mistake, not a case). A gap you only notice, at no cost yet, is a deferred task. Then carry on.
cases add bugfixes 'Dev host sign-in expires hourly' --where scripts/login.sh:12 \
--found 'a task session; deploying' --evidence 'deploy failed with 401 after an hour' \
--suggested 'refresh the token before deploying'
cases is beside this file; cases alone prints its usage. Category: bugfixes, features or refactorings.
--where is the project file at fault, or the step's name. Write it in the project's own terms.cases seen FILE adds today to its seen: line (that count
ranks it); otherwise rerun with --new.feedback add --project … instead: the same cases, in the store its config
names.A case file, in ${XDG_STATE_HOME:-~/.local/state}/session-orchestration/feedback-projects/<project root, encoded>/
(outside the repo, so a worktree-isolated session can write it, and never committed):
# Dev host sign-in expires hourly
- where: scripts/login.sh:12
- found while: a task session; deploying
- project: /home/u/app
- evidence: deploy failed with 401 after an hour
suggested: refresh the token before deploying
- seen: 2026-10-25, 2026-10-27
- status: open
cases list, cases count, cases mark FILE fixed '<what changed>' | dropped. The graduate pass turns open cases
into fixes.
An out-of-scope bug, feature or refactor you notice goes to the tasks folder cases tasks prints
(defer-task);
the graduate pass sweeps them too.
A procedure sessions keep repeating becomes a skill only on the user's yes. Until then it is a draft in the project's
state folder (skill-drafts dir, beside the tasks folder), never in the repo, so no session loads it.
Write a draft when a procedure of three or more steps that no skill or doc covers comes up a second time:
First skill-drafts list: if a draft already covers it, record the sighting with skill-drafts seen NAME TASK, and
Edit its SKILL.md where its steps were wrong or missing. Otherwise write a SKILL.md in your scratch folder (frontmatter
name: lowercase-and-hyphens, a description: saying when to use it, then the steps as they worked, in the project's
own terms) and run skill-drafts add FILE TASK. Leave out one task's keys and any names: approval's scrub catches
only your home path, login, host, git name and email.
skill-drafts is beside this file; alone, it prints its usage. The graduate pass archives
drafts no one saw for 30 days (skill-drafts sweep; restore brings one back, nothing is deleted), shows the rest for
the user's yes, and on a yes runs skill-drafts promote, which refuses a draft its scrub flags.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub hiverness/session-orchestration --plugin project-memory3 skills in this plugin
/defer-taskUse PROACTIVELY the moment you notice or mention a bug, missing feature, refactor, or docs/config/setup gap OUT OF SCOPE of the current task, coding or not. Writing it as a task file in the project's tasks folder IS the action, not fixing it now or offering a ticket later. Fires on "latent bug", "out of scope", "while I'm here I noticed", "worth a follow-up", "leave that for now". A gap that already cost you is a friction case instead (project-memory)./graduateThe graduate pass over a project's memory, friction cases, deferred tasks and skill drafts - proven entries into their docs, the rest pruned, cases fixed, task files resolved, drafts made skills or archived, each on the user's yes. Use for /graduate, when asked to graduate, prune or tidy project memory or review deferred tasks or cases, or when an R&D run's approved proposals include graduation.