Memory init
Skill vergil-project/vergil-claude-plugin/skills/memory-init
Set up or refresh a project's memory directory. Use when the human asks to initialize, set up, bootstrap, or update memory ("init memory", "set up MEMORY.md", "add the memory policy header", "refresh the memory header"). Creates or updates MEMORY.md with the human-approval policy header.From its SKILL.md
npx -y skills add vergil-project/vergil-claude-plugin --skill memory-initAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
2.4 KB, as published. Nobody here has run it
Memory Init
Set up the project memory directory with a policy header that requires human approval before any memory write. Idempotent — safe to run repeatedly.
Behavior
-
Resolve the memory directory. The path is
~/.claude/projects/<slug>/memory/where<slug>is derived from the session's starting CWD. Use the path the runtime provides — do not reimplement slug derivation. -
Ensure the directory exists. Create it if missing.
-
Create or update MEMORY.md.
- If
MEMORY.mddoes not exist: create it with the policy header below and no index entries. Leave any pre-existing.mdfiles in the directory as orphans —memory-audithandles those. - If
MEMORY.mdexists: compare the first block (everything before the first blank line after the closing-->) against the canonical header below. If it differs, replace the header, preserving all content after it.
- If
Canonical policy header
This is the source of truth. If the header in MEMORY.md does not
match this text exactly, replace it.
<!-- POLICY: Do not edit this file or any file in this directory without
explicit human approval. Before writing, propose the content to the human
and suggest where it belongs: repo memory, global CLAUDE.md, or a
plugin/skill issue. See the global CLAUDE.md memory management policy
for the full workflow. User-invoked skills (e.g., /handoff) are exempt. -->
Empty MEMORY.md template
When creating a new MEMORY.md, use this structure:
<!-- POLICY: Do not edit this file or any file in this directory without
explicit human approval. Before writing, propose the content to the human
and suggest where it belongs: repo memory, global CLAUDE.md, or a
plugin/skill issue. See the global CLAUDE.md memory management policy
for the full workflow. User-invoked skills (e.g., /handoff) are exempt. -->
(no entries yet)
Properties
- Idempotent. Running twice produces the same result.
- Header only. Never modifies index entries or other memory files.
- No category scaffolding. Future extension.