Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsBlogPro
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges
  • Chrome Extension
  • Skill Manager

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Memory Import

ASecurity

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.

7 stars
0 votes
0 copies
0 views
Added 5/28/2026
ai-agentsgo

Security Analysis

A100/100

Scanned 5/28/2026

$npx -y skills add viknesh20-20/claude-code-tool-kit --skill memory-import --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Memory Import?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Memory Import
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/viknesh20-20-memory-import/badge)](https://www.skillsdirectory.com/skills/viknesh20-20-memory-import)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
Files
SKILL.md
---
name: memory-import
description: "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."
argument-hint: "<path-to-other-workspace>"
---

# /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

1. **Validate the source path.** Check that `<path>/.claude/memory/MEMORY.md` exists. If not, tell the user the source workspace doesn't have a memory layer (it may not have been initialized with this toolkit).

2. **Read the source's memory index** and the files it references.

3. **Categorize what to import.** For each memory:
   - **Always copy** `project/` and `reference/` (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.

4. **Show a preview.** List the memories you intend to import, grouped by type. Ask: "Import these <N>?"

5. **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.`

6. **Update the index.** Add lines to `.claude/memory/MEMORY.md` under "Inherited (from other workspaces)."

7. **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-foo` project (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.

Attribution

viknesh20-20viknesh20-20
View sourceSee grades on GitHubMore from viknesh20-20 →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Caveman

Terse caveman voice: answer first, fluff gone, every technical fact kept. Use for /caveman, "caveman mode", "talk like caveman", "be brief", "less tokens". Stays on until "stop caveman" or "normal mode".

1100021 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

698461 votes

Writing Skills

Create and manage Claude Code skills in HASH repository following Anthropic best practices. Use when creating new skills, modifying skill-rules.json, understanding trigger patterns, working with hooks, debugging skill activation, or implementing progressive disclosure. Covers skill structure, YAML frontmatter, trigger types (keywords, intent patterns), UserPromptSubmit hook, and the 500-line rule. Includes validation and debugging with SKILL_DEBUG. Examples include rust-error-stack, cargo-dep...

3931 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3421 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Amp, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Grok Build, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

741 votes
View all in ai-agents →