memory
Skill13 starsChanged 8 months agoMITView on GitHub
Project memory — search, workstreams, notes, decisions. Auto-initializes on first use.
66 other projects use a version of this.
Adopted by
Most recently taken up by
- ProjectAJ14/eklavyatheir own version, first seen Oct 4, 2026
- DioNanos/nexuscrewtheir own version, first seen Oct 3, 2026
- Quad4-Software/skillstheir own version, first seen Oct 3, 2026
- pobsteta/aigoratheir own version, first seen Oct 2, 2026
- vbcherepanov/total-agent-memorytheir own version, first seen Sep 30, 2026
- harshanandak/forgetheir own version, first seen Sep 28, 2026
Used with
Projects with it also use harness-review, postmortem and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
fockusSkillharness-review
Harness v3 統合レビュースキル。コード・プラン・スコープを多角的にレビュー。以下で起動: レビュー、コードレビュー、プランレビュー、スコープ分析、セキュリティ、品質チェック、harness-review。実装・新機能・バグ修正・セットアップ・リリースには使わない。
Also in 3 projects that use this
Hongyu-yuSkillpostmortem
Use when analyzing failures, outages, incidents, or negative outcomes, conducting blameless postmortems, documenting root causes with 5 Whys or fishbone diagrams, identifying corrective actions with owners and timelines, learning from near-misses, establishing prevention strategies, or when user mentions postmortem, incident review, failure analysis, RCA, lessons learned, or after-action review.
Also in 4 projects that use this
MicrosoftSkilldev
Development workflows for the playwright-cli repository. Use when the user asks about rolling dependencies, releasing, or other repo maintenance tasks.
Also in 3 projects that use this
AnthropicSkillstart
Set up your bio-research environment and explore available tools. Use when first getting oriented with the plugin, checking which literature, drug-discovery, or visualization MCP servers are connected, or surveying available analysis skills before starting a new project.
Also in 4 projects that use this
MicrosoftSkillsync
Sync the current session branch with its upstream branch, or publish the current session branch to a remote. Use when the user asks to sync a branch, pull latest changes, rebase onto upstream, push current branch, publish branch, or set upstream.
Also in 3 projects that use this
GitHubSkillrefactor
Surgical code refactoring to improve maintainability without changing behavior. Covers extracting functions, renaming variables, breaking down god functions, improving type safety, eliminating code smells, and applying design patterns. Less drastic than repo-rebuilder; use for gradual improvements.
Also in 4 projects that use this
- +1 more from microsoft
Other versions66 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 66
- google-gemini/gemini-cli★ 107ksame name
- Chachamaru127/claude-code-harness★ 3.1ksame name
- codeaholicguy/ai-devkit★ 1.6ksame name
- Muuuun/luxas★ 1.2ksame name
- rshankras/claude-code-apple-skills★ 777same name
- memvid/claude-brain★ 578same name
- shobcoder/shob★ 577same name
- boshu2/agentops★ 447same name
- lokikill123/codex-token-skills★ 119same name
- 686f6c61/alfred-dev★ 116same name
56 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository10 other files it gives its agents.
- docs-reflectSkill
- memory-setupSkill
- parkSkill
- reflectSkill
- session-continueSkill
- session-endSkill
- session-insightsSkill
- session-restoreSkill
- session-startSkill
- task-templateSkill
The file
We split this skill into the rules it gives an agent
9 rules. 0 are common, 5 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 57 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 32
Create memory dir: mkdir -p "$MEM_DIR"
- Very specific: line 33
Do NOT copy memory.js if the plugin is installed — use $MEM resolved above.
- Very specific: line 34
Ask: "What workstreams does the project have?" → create workstreams.json
- Distinctive: line 35
Ask: "Describe your role in 1-2 sentences" → Profile
- Distinctive: line 36
Ask: "Key links?" → Reference
- Very specific: line 89
All commands pass --dir=$MEM_DIR to ensure correct memory directory (required when memory.js is a symlink to plugin):
- Distinctive: line 194
Check for dead links, stale entries, size overflow, duplicates.
- Distinctive: line 200
Don't dump raw output — summarize and highlight relevant
- Distinctive: line 201
If not initialized → bootstrap automatically, don't error
“Common” is measured: kept by at least 6 in 10 of the 57 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/memory — Project Memory
Step 0: Resolve memory directory
# Claude Code uses git root (not cwd) and replaces / and . with - for project key
GIT_ROOT=$(git rev-parse --show-toplevel 2>/dev/null || pwd)
PROJ_KEY=$(echo "$GIT_ROOT" | tr '/.' '-' | sed 's/^-//')
MEM_DIR="$HOME/.claude/projects/-${PROJ_KEY}/memory"Resolve memory.js:
MEM="${CLAUDE_PLUGIN_ROOT}/scripts/memory.js"If not initialized (no memory.js and no plugin found)
Bootstrap for this project:
- Create memory dir:
mkdir -p "$MEM_DIR" - Do NOT copy
memory.jsif the plugin is installed — use$MEMresolved above. Only copy if plugin is not installed and no$MEMfound. - Ask: "What workstreams does the project have?" → create
workstreams.json - Ask: "Describe your role in 1-2 sentences" → Profile
- Ask: "Key links?" → Reference
- Create MEMORY.md:
# {Project} — Memory
## API
\```bash
node {absolute $MEM path} --dir={MEM_DIR} <command>
\```
## Profile
{user answer}
## Rules
### Save
- Decision with reasoning → memory file with **Why:** and **How to apply:**
- User corrects you or confirms non-obvious choice → feedback memory
- Something surprising or counter-intuitive → note + memory
- Convert relative dates to absolute: "Thursday" → "2026-04-10"
### Don't save
- What git log already knows (commits, who changed what)
- What the code already shows (patterns, architecture)
- What CLAUDE.md already says
- Ephemeral task state (use TodoWrite)
### Format
- MEMORY.md = index only, max 200 lines. Details in separate .md files
- Each .md file has frontmatter: name, description, type (feedback/project/user/reference)
- workstreams.json = source of truth for aliases
- Use --brief for quick overviews, full output only when needed
### Session lifecycle
- Start of work → /session-start or /session-continue
- Ideas for later → /park (don't lose the thought)
- After big block of work → /reflect (workarounds, repetitions, insights → backlog)
- Before compact: save key decisions + update handoff
- Long session + topic changed → suggest /session-end
- End of work → /session-end (handoff for next session)
## Reference
{user links}- Verify:
node "$MEM" --dir="$MEM_DIR" list - "Memory ready. You can start working —
/memoryfor lookup."
Commands (when initialized)
All commands pass --dir=$MEM_DIR to ensure correct memory directory (required when memory.js is a symlink to plugin):
node "$MEM" --dir="$MEM_DIR" <command> [args]No arguments
Show workstreams + quick actions:
node "$MEM" --dir="$MEM_DIR" workstreamssearch <query>
node "$MEM" --dir="$MEM_DIR" search "<query>"Summarize — don't dump raw. Highlight relevant to current task.
workstream <name>
node "$MEM" --dir="$MEM_DIR" workstream "<name>"workstreams
node "$MEM" --dir="$MEM_DIR" workstreamsadd-workstream <name> <keywords...>
node "$MEM" --dir="$MEM_DIR" add-workstream "<name>" <keywords...>recent [n]
node "$MEM" --dir="$MEM_DIR" recent <n>decisions [topic]
node "$MEM" --dir="$MEM_DIR" decisions "<topic>"list [type]
node "$MEM" --dir="$MEM_DIR" list <type>note <text>
node "$MEM" --dir="$MEM_DIR" note "<text>"handoff [<workstream>]
node "$MEM" --dir="$MEM_DIR" handoff # global handoff
node "$MEM" --dir="$MEM_DIR" handoff <workstream> # per-ws (falls back to global)Prints NO_HANDOFF when neither per-workstream nor global file exists.
write-handoff --workstream=<name> --content=<file>
node "$MEM" --dir="$MEM_DIR" write-handoff --workstream=<name> --content=<path>Atomic write to workstreams/<name>/handoff.md. Frontmatter auto-added.
classify --items=<json>
node "$MEM" --dir="$MEM_DIR" classify --items=<path-to-json>Keyword-routes items by workstreams.json. Multi-label, case-insensitive. Unmatched → _unassigned.
session-activity
node "$MEM" --dir="$MEM_DIR" session-activityCurrent session's items (and DOC: subset) since last SESSION_START marker in today's notes. JSON output.
session-changes
node "$MEM" --dir="$MEM_DIR" session-changesGit commits + files union since session start. JSON output. Pipe with session-activity into classify for routing analysis (see /session-end Phase 1b).
docs
node "$MEM" --dir="$MEM_DIR" docsCollect DOC: notes from daily notes for /docs-reflect.
recurring
node "$MEM" --dir="$MEM_DIR" recurringFind recurring feedback patterns.
reindex
node "$MEM" --dir="$MEM_DIR" reindexRebuild MEMORY.md index sorted by weight.
health
node "$MEM" --dir="$MEM_DIR" healthCheck for dead links, stale entries, size overflow, duplicates.
Rules
- Don't dump raw output — summarize and highlight relevant
- If not initialized → bootstrap automatically, don't error
- MEMORY.md = index. Detailed content in separate .md files
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

