memory-import
Skill7 starsChanged 7 months agoMITView on GitHub
Inherit memories from another workspace. Reads .claude/memory/ from a source path and imports its memories into the current workspace under .claude/memory/inherited/<source-name>/. Tagged with provenance so the user can tell where each came from.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- kevintsai1202/deep-memorytheir own version, first seen Oct 25, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- kevintsai1202/deep-memory★ 41same 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 repository45 other files it gives its agents.
- .claude/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- a11y-auditSkill
- api-designSkill
- architecture-reviewSkill
- business-blueprintSkill
- business-logic-auditSkill
- changelogSkill
- ci-pipelineSkill
- code-coverageSkill
- competitive-analysisSkill
- convert-codeSkill
- create-componentSkill
- db-migrationSkill
- debugSkill
- dependency-auditSkill
- deploy-checklistSkill
- design-flowSkill
- docker-setupSkill
- env-setupSkill
- error-monitorSkill
- estimateSkill
- explain-codeSkill
- fix-issueSkill
- generate-docsSkill
- git-cleanupSkill
- grill-meSkill
- handoffSkill
- legal-pagesSkill
- memorySkill
- microcopySkill
- migrate-frameworkSkill
- onboardSkill
- optimizeSkill
- pr-summarySkill
- refactorSkill
- reference-appSkill
- review-prSkill
- security-scanSkill
- seo-scaffoldSkill
- tddSkill
- web-launch-checkSkill
- wireframeSkill
- write-skillSkill
- write-testsSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 5 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
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 19
Validate the source path: Check that <path>/.claude/memory/MEMORY.md exists.
- Very specific: line 37
Update the index: Add lines to .claude/memory/MEMORY.md under "Inherited (from other workspaces)."
- Distinctive: line 43
If a target file already exists:
- Very specific: line 45
If a similar memory (similar topic) already exists, ask the user: "Your current project already has a memory <name>.
- Distinctive: line 49
When an agent later relies on an inherited memory, it must:
- Distinctive: line 52
Verify by reading current code before applying.
- Distinctive: line 79
After confirmation: write files, update index, print summary.
- Very specific: line 83
Never import secrets even if they appear in source memory (filter for patterns: *_KEY, *_TOKEN, Bearer , sk_live_, etc.).
- Distinctive: line 84
Never modify the source workspace.
≈ “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
/memory-import
Pull memories from another workspace into the current one. Useful when the user has built a previous app and wants its accumulated context — conventions, gotchas, references — to inform a new project.
When to use
- Starting a new project that's similar to one the user already built.
- Doing a code review on a project where the user wants you to reference patterns from another of their projects.
- Onboarding to a new repo where the team's conventions are already documented in another workspace.
Operating method
- Validate the source path. Check that
<path>/.claude/memory/MEMORY.mdexists. If not, tell the user the source workspace doesn't have a memory layer (it may not have been initialized with this toolkit). - Read the source's memory index and the files it references.
- Categorize what to import. For each memory:
- Always copy
project/andreference/(with provenance tag) — they're the most likely to inform the new project. - Ask before copying
feedback/— preferences from another project may not transfer ("no Tailwind in app A" doesn't mean "no Tailwind in app B"). Show the user the list and let them check/uncheck. - Ask before copying
user/— usually applies (it's about the user, not the project), but the user should confirm. - Skip
handoffs/— those are session-specific to the source workspace. - Skip
inherited/— don't transitively chain inherits. If the user wants those too, they can re-import from the original source.
- Always copy
- Show a preview. List the memories you intend to import, grouped by type. Ask: "Import these
<N>?" - Copy with provenance. Each imported memory gets:
- Filename prefixed with the source workspace name:
inherited/<source>-<original-filename>.md. - Frontmatter
source-workspace: <path>added. - A header line in the body:
> Imported from <source> on <date>. Treat as suggestive, not authoritative for the current project.
- Filename prefixed with the source workspace name:
- Update the index. Add lines to
.claude/memory/MEMORY.mdunder "Inherited (from other workspaces)." - Print a summary. "Imported N project facts, M references, K user notes from
<source>."
Behavior on conflicts
If a target file already exists:
- For an exact-name collision (rare since we prefix with source), append
-2,-3, etc. - If a similar memory (similar topic) already exists, ask the user: "Your current project already has a memory
<name>. The inherited one says<X>. Keep both, replace, or skip?"
What "suggestive, not authoritative" means
When an agent later relies on an inherited memory, it must:
- Cite the source workspace.
- Frame the suggestion as a pattern to consider, not a fact about the current project.
- Verify by reading current code before applying.
Example:
- Bad: "We use Postgres + Drizzle here."
- Good: "Your
app-fooproject (inherited memory) used Postgres + Drizzle. Want me to set up the same here, or is this project different?"
Output format
## Source: <path>
- Found memory layer: yes
- Memories available: 4 project, 2 user, 1 feedback, 3 reference, 6 handoffs
## Plan
- Auto-import (project + reference): 4 + 3 = 7 files
- Confirm-import (user + feedback): showing 3 to review
- Skipped: handoffs (6), inherited (0)
## Confirm imports
[ ] user/role.md — "senior eng, platform team"
[ ] user/preferences.md — "terse, no emojis, vitest"
[ ] feedback/no-mocks.md — "integration tests hit real DB"
(answer with the indices to import, or "all" / "none")After confirmation: write files, update index, print summary.
Safety
- Never import secrets even if they appear in source memory (filter for patterns:
*_KEY,*_TOKEN,Bearer,sk_live_, etc.). Replace with[REDACTED — was a secret in source]. - Never modify the source workspace.
- Show the user every file before writing.
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.

