One-click install
npx skills add https://github.com/alvarovillalbaa/plugins --skill memory-management-alvarovillalbaa
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: memory-management
Source: https://github.com/alvarovillalbaa/plugins/tree/main/learning-system/skills/memory-management
Command: npx skills add https://github.com/alvarovillalbaa/plugins --skill memory-management-alvarovillalbaa

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill prevents valuable learnings from getting buried in auto-memory, lost to truncation, or left as outdated debugging notes by providing a deliberate lifecycle for reviewing, promoting, and enforcing agent knowledge across memory layers.

Core Features & Use Cases

  • Review & promote memory: Analyze MEMORY.md entries to find promotion candidates, stale content, and opportunities to consolidate.
  • Enforce with scoped rules: Move proven patterns into CLAUDE.md or .claude/rules/ so they load reliably and only when relevant files are open.
  • Extract reusable skills: Turn recurring solutions into standalone portable skills to avoid re-solving the same problem.
  • Measure memory health: Track capacity (e.g., MEMORY.md 200-line startup cutoff and CLAUDE.md line budget) and recommend next actions.
  • Explicitly remember fixes: Immediately persist a pattern to auto-memory using /si:remember when you know it will recur.

Quick Start

Run the memory review to identify promotion candidates by asking for the command: /si:review.

Frequently Asked Questions about memory-management

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I promote auto-memory entries into enforced rules in Claude Code?

Promoting auto-memory into enforced rules involves analyzing MEMORY.md entries to find proven debugging patterns and moving them into CLAUDE.md or .claude/rules/ with scoped YAML frontmatter paths for reliable, context-aware loading. This prevents valuable learnings from being lost to truncation or left as outdated notes.

What is the best way to manage CLAUDE.md line budget when memory grows too large?

The best way to manage CLAUDE.md line budget is to measure memory health against capacity limits, consolidate stale content, and extract recurring solutions into standalone portable skills. This keeps the file within budget while preserving proven patterns as reusable, portable assets.

Can I scope rules to only load when specific files are open in Claude Code?

Yes, you can scope rules to load only when relevant files are open by applying structured rule scoping via YAML frontmatter paths. This ensures enforced instructions activate contextually, preventing unnecessary token consumption and keeping the agent focused on the active workflow.

How do I extract recurring debugging solutions into reusable skills?

Extracting recurring debugging solutions into reusable skills requires analyzing MEMORY.md to identify recurring patterns and packaging them as standalone portable skills. This avoids re-solving the same problem and frees up memory capacity by removing the need to keep the full solution in auto-memory.

Why does my Claude Code agent keep losing debugging solutions from auto-memory?

Your agent loses debugging solutions from auto-memory because valuable learnings get buried or lost to truncation when MEMORY.md grows too large. Without a deliberate lifecycle for reviewing and promoting agent knowledge across memory layers, recurring solutions remain unstructured and are not enforced as durable rules.

When should I persist a fix to auto-memory instead of waiting for review?

You should persist a fix to auto-memory immediately when you know a debugging pattern will recur, using command-driven memory curation. This explicitly captures the solution before it is lost, making it available for later promotion to enforced rules or extraction as a portable skill during a memory review.