memory-init
Skill0 starsChanged 5 months agoMITView on GitHub
Use to bootstrap Anchor in a project — scaffolds AGENTS.md/CLAUDE.md/GEMINI.md, the memory ledger, anchor.config.json, and wires the integrity hooks. Idempotent.
8 other projects use a version of this.
Adopted by
Most recently taken up by
- dmzoneill/skillstheir own version, first seen Oct 24, 2026
- osipovn/agents-skillstheir own version, first seen Oct 17, 2026
- haraldalder-vibemogger/project-memorytheir own version, first seen Sep 26, 2026
- flc1125/skillstheir own version, first seen Aug 12, 2026
- yunshu0909/yunshu_skillshubtheir own version, first seen Aug 10, 2026
- clearstackhq/clearstack-litetheir own version, first seen Aug 10, 2026
Other versions8 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 8
- yunshu0909/yunshu_skillshub★ 760same name
- flc1125/skills★ 38same name
- d2a8k3u/claude-code-memory★ 8same name
- osipovn/agents-skills★ 4same name
- dmzoneill/skills★ 2same name
- haraldalder-vibemogger/project-memory★ 2same name
- spudy-vibing/Claude-Code-Prompts★ 2same name
- clearstackhq/clearstack-lite★ 1same name
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 repository6 other files it gives its agents.
- capture-decisionSkill
- handoffSkill
- recallSkill
- review-prSkill
- session-wrapupSkill
- update-statusSkill
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 2 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 7 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 17
Interview (minimal): Ask only:
- Very specific: line 39
Add .anchor/session-state.md to the project .gitignore (the live auto-saved state is local-only.
- Very specific: line 41
Verify: Run python3 <linter> --root .
- Distinctive: line 46
Never delete existing memory.
- Very specific: line 47
All substitutions are literal string replacements of the {{...}} tokens.
“Common” is measured: kept by at least 6 in 10 of the 7 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-init
Scaffold the Anchor memory system into the current project. Safe to re-run (never overwrites an existing file without showing a diff and asking).
Steps
- Detect context. Confirm you are at the repo root (
git rev-parse --show-toplevel). Detect if Anchor is installed as a plugin ($CLAUDE_PLUGIN_ROOTset) or being used template-style (files copied into the repo). - Interview (minimal). Ask only:
- Project name (default: repo directory name).
- Primary build/test command (default: leave the
{{BUILD_CMD}}placeholder). Everything else uses defaults and is editable later inanchor.config.json.
- Resolve template source. Templates live at
${CLAUDE_PLUGIN_ROOT}/templates(plugin mode) or./templates(template mode). Abort with a clear message if neither exists. - Write files (skip+report any that already exist; offer to diff/overwrite):
AGENTS.md,CLAUDE.md,GEMINI.md← templates, with{{PROJECT_NAME}},{{MEMORY_DIR}},{{BUILD_CMD}},{{DATE}}substituted.memory/FACTS.md,memory/decisions.md,memory/status.md,memory/README.md,memory/HANDOFF.md.anchor.config.json← template with substitutions.
- Wire hooks.
- Plugin mode: hooks are already active via the plugin's
hooks/hooks.json. Tell the user no settings change is needed. - Template mode: copy
templates/../hooks/into.anchor/hooks/, copyscripts/memory_lint.pyinto.anchor/scripts/, then mergetemplates/settings.fragment.jsoninto.claude/settings.json(create the file if absent; merge arrays, don't clobber existing hooks). - Add
.anchor/session-state.mdto the project.gitignore(the live auto-saved state is local-only; the vendored.anchor/engine stays tracked).
- Plugin mode: hooks are already active via the plugin's
- Verify. Run
python3 <linter> --root .and report the result. Then print a 3-line "what changed + next steps" summary (edit AGENTS.md project sections; record your first decision with /capture-decision).
Guardrails
- Never delete existing memory. Never overwrite without explicit confirmation.
- All substitutions are literal string replacements of the
{{...}}tokens.
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.

