share-memory
Skill0 starsChanged 3 months agoMITView on GitHub
Promote durable facts and operating rules from a personal Claude Code memory store into the nearest version-controlled skill, AGENTS.md, documentation, or knowledge file, then remove only memories already verified as redundant on the repository's default branch. Use for sharing, raising, consolidating, or codifying memories.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- ycl-2004/ShareMemorytheir own version, first seen Aug 16, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- ycl-2004/ShareMemory★ 3same 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 repository4 other files it gives its agents.
- create-skillSkill
- prune-memorySkill
- skillifySkill
- update-skillSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 29
Verify every claim against live tracked files.
- Distinctive: line 39
Add the smallest durable rule.
- Distinctive: line 40
Follow the target repository's branch, validation, and review process.
- Distinctive: line 41
Never delete a memory promoted in the same run.
- Very specific: line 47
Only then, and only with explicit approval of the exact files, delete the backing memory and its MEMORY.md row.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Share Memory
Move durable guidance to its real source of truth without losing the only live copy.
Preconditions
- Resolve the project memory directory and exit when
MEMORY.mdis absent or empty. - Identify the target repository and read its instructions before proposing changes.
- Record the index byte size, entry count, and candidate memory files. Run
memory-prune <memory-dir>to inventory expiry debt without changing anything.
Classify Every Candidate
Inspect feedback, reference, and user-preference memories. Treat one-off project status as pruning material unless it contains a reusable rule.
Assign one verdict per memory:
REDUNDANT: fully represented in a tracked file on the default branch.CODIFY: durable and general, with no shared home yet.PARTIAL: represented, but the memory adds durable missing nuance.KEEP: private, machine-specific, transient, personal, or too narrow to share.
Verify every claim against live tracked files. Do not classify from titles alone.
Promote
- Route each
CODIFYorPARTIALitem to the nearest owner:- repository-wide behavior needed in most sessions:
AGENTS.md; - one repeatable workflow: its owning
SKILL.md; - subsystem policy: the nearest subtree instruction or maintained documentation;
- durable architecture, vendor, operations, or domain facts: the repository's knowledge or reference area.
- repository-wide behavior needed in most sessions:
- Add the smallest durable rule. Do not paste investigation history or dated status.
- Follow the target repository's branch, validation, and review process.
- Never delete a memory promoted in the same run. Until the change lands on the default branch, the memory remains the only guaranteed copy.
Remove Redundant Copies
For each REDUNDANT item, re-confirm the complete rule on the current default branch.
Only then, and only with explicit approval of the exact files, delete the backing
memory and its MEMORY.md row. If verification is incomplete, downgrade to KEEP.
Finish by running memory-prune again and reporting verdict counts, tracked changes,
deletions, and index size before and after. Promotion and deletion are intentionally a
two-pass process.
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.

