New to Claude Skills? Learn how to install them →

github on GitHub

Memory Merger

OfficialFree

Consolidate domain knowledge into instruction files.

by github37.7k stars on github/awesome-copilot
1 views
Updated Aug 10, 2026
Get this skill

Free · Opens the source repo

What Memory Merger does

Memory Merger is a tool designed to help developers and designers streamline the integration of learned lessons from a domain memory file into its corresponding instruction file. This skill is particularly useful for maintaining knowledge continuity and reducing redundancy across various projects in Visual Studio Code. By utilizing the command /memory-merger >domain [scope], users can specify the domain they wish to merge and the scope—either global or workspace—where the instructions will be applied. The default setting is global, affecting all projects, while the workspace option targets the current project only.

The process begins with parsing the user input to identify the domain and scope, followed by reading the relevant memory and instruction files. If the memory file is not found, the skill intelligently suggests potential matches. Once the memory sections are analyzed, the user is presented with proposed memories for merger. This interactive step allows users to approve or skip specific memories, ensuring that only the most relevant information is integrated.

After gathering user input, the skill establishes a quality bar based on criteria such as zero knowledge loss, minimal redundancy, and maximum scannability. The merging process is iterative, allowing for refinement until the merged instructions meet the defined standards. Finally, the skill updates the instruction file with the new content and cleans up the memory file by removing merged sections, thus keeping the knowledge base organized and up-to-date.

Memory Merger is ideal for teams and individuals who regularly work with evolving knowledge bases and need a systematic way to keep their instructional content current and relevant. It enhances productivity by automating the consolidation of information, making it easier to access and utilize learned lessons across multiple projects.

When to use it

Use Memory Merger when you need to consolidate learnings from a domain memory file into your instruction files, especially in collaborative or evolving projects.

When not to use it

This skill may not be suitable for one-off projects with static knowledge requirements or when no domain memory files are available.

What you can build with it

Updating Documentation for a New Project

When starting a new project, use Memory Merger to integrate relevant domain knowledge into your project's instruction files.

Maintaining Consistency Across Multiple Projects

Utilize the global scope to ensure that all projects have access to the latest merged instructions from shared domain memory.

Streamlining Team Knowledge Sharing

In a collaborative environment, Memory Merger helps consolidate team learnings into a single instruction file, enhancing knowledge sharing.

How to install Memory Merger

View source

1. Install with the skills CLI

npx skills add github/awesome-copilot/memory-merger --agent claude-code

2. Or install it manually

Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.

Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs

Inside SKILL.md

Written by github

Memory Merger

You consolidate mature learnings from a domain's memory file into its instruction file, ensuring knowledge preservation with minimal redundancy.

Use the todo list to track your progress through the process steps and keep the user informed.

Scopes

Memory instructions can be stored in two scopes:

  • Global (global or user) - Stored in <global-prompts> (vscode-userdata:/User/prompts/) and apply to all VS Code projects
  • Workspace (workspace or ws) - Stored in <workspace-instructions> (<workspace-root>/.github/instructions/) and apply only to the current project

Default scope is global.

Throughout this prompt, <global-prompts> and <workspace-instructions> refer to these directories.

Syntax

/memory-merger >domain-name [scope]
  • >domain-name - Required. The domain to merge (e.g., >clojure, >git-workflow, >prompt-engineering)
  • [scope] - Optional. One of: global, user (both mean global), workspace, or ws. Defaults to global

Examples:

  • /memory-merger >prompt-engineering - merges global prompt engineering memories
  • /memory-merger >clojure workspace - merges workspace clojure memories
  • /memory-merger >git-workflow ws - merges workspace git-workflow memories

Process

1. Parse Input and Read Files

  • Extract domain and scope from user input
  • Determine file paths:
    • Global: <global-prompts>/{domain}-memory.instructions.md<global-prompts>/{domain}.instructions.md
    • Workspace: <workspace-instructions>/{domain}-memory.instructions.md<workspace-instructions>/{domain}.instructions.md
  • The user can have mistyped the domain, if you don't find the memory file, glob the directory and determine if there may be a match there. Ask the user for input if in doubt.
  • Read both files (memory file must exist; instruction file may not)

2. Analyze and Propose

Review all memory sections and present them for merger consideration:

## Proposed Memories for Merger

### Memory: [Headline]
**Content:** [Key points]
**Location:** [Where it fits in instructions]

[More memories]...

Say: "Please review these memories. Approve all with 'go' or specify which to skip."

STOP and wait for user input.

3. Define Quality Bar

Establish 10/10 criteria for what constitutes awesome merged resulting instructions:

  1. Zero knowledge loss - Every detail, example, and nuance preserved
  2. Minimal redundancy - Overlapping guidance consolidated
  3. Maximum scannability - Clear hierarchy, parallel structure, strategic bold, logical grouping

4. Merge and Iterate

Develop the final merged instructions without updating files yet:

  1. Draft the merged instructions incorporating approved memories
  2. Evaluate against quality bar
  3. Refine structure, wording, organization
  4. Repeat until the merged instructions meet 10/10 criteria

5. Update Files

Once the final merged instructions meet 10/10 criteria:

  • Create or update the instruction file with the final merged content
    • Include proper frontmatter if creating new file
    • Merge applyTo patterns from both memory and instruction files if both exist, ensuring comprehensive coverage without duplication
  • Remove merged sections from the memory file

Example

User: "/memory-merger >clojure"

Agent:
1. Reads clojure-memory.instructions.md and clojure.instructions.md
2. Proposes 3 memories for merger
3. [STOPS]

User: "go"

Agent:
4. Defines quality bar for 10/10
5. Merges new instructions candidate, iterates to 10/10
6. Updates clojure.instructions.md
7. Cleans clojure-memory.instructions.md

Frequently asked questions about Memory Merger

Similar skills