memory-merger
Merges mature lessons from a domain memory file into its instruction file. Syntax: `/memory-merger >domain [scope]` where scope is `global` (default), `user`, `workspace`, or `ws`.
Security Assessment
About memory-merger
The memory-merger skill is designed to streamline the process of consolidating mature lessons from a domain-specific memory file into its corresponding instruction file. By doing so, it ensures that valuable knowledge is preserved while reducing redundancy and maintaining clarity. This skill is particularly useful in environments where instructions and best practices are continuously evolving, such as in software development, project management, or AI prompt engineering. It automates the tedious process of reviewing and merging information manually, making knowledge management more efficient and reliable.
The skill provides several key features to facilitate this process. Users can specify the scope of memory merging, choosing between global (applied across all projects) and workspace (applied only to the current project) instructions. The workflow guides users through parsing input, reading relevant files, analyzing memory content, proposing mergers, defining a quality bar, and iteratively refining the merged instructions until they meet high standards for completeness, clarity, and minimal redundancy. It also ensures proper file updates, including frontmatter handling and merging of `applyTo` patterns, while cleaning up merged sections from memory files.
Memory-merger is ideal for developers, technical writers, and knowledge managers who need to maintain consistent and high-quality instruction files across multiple projects or teams. It is particularly beneficial in collaborative environments where lessons learned and best practices need to be integrated systematically. By using this skill, users can save time, reduce human error, and ensure that all relevant knowledge is captured and easily accessible, ultimately supporting better decision-making and more efficient workflows.
FAQ
How do I use the memory-merger skill?
You use the skill with the syntax `/memory-merger >domain-name [scope]`. The domain name is required, and the optional scope can be `global`, `user`, `workspace`, or `ws`. If no scope is provided, it defaults to global.
What directories does memory-merger use to read and write files?
For global scope, it uses `<global-prompts>` (`vscode-userdata:/User/prompts/`), and for workspace scope, it uses `<workspace-instructions>` (`<workspace-root>/.github/instructions/`). These paths determine where memory and instruction files are read from and written to.
Can memory-merger handle mistyped domain names?
Yes. If a memory file matching the specified domain is not found, the skill will attempt to locate potential matches by scanning the directory and may ask the user for clarification.
Does memory-merger update files automatically?
The skill drafts merged instructions and iteratively refines them, but it only updates the instruction file and cleans the memory file once the merged instructions meet the defined quality criteria.
Who can benefit from using memory-merger?
Developers, technical writers, and knowledge managers working in VS Code who need to consolidate domain-specific lessons into instruction files, ensuring consistency and clarity across projects or teams.
Install memory-merger
Quick Setup:
- Copy the skill folder to
.claude/skills/ - Claude will automatically detect and use the skill
Repository
github/awesome-copilot