agentleFS
UtsavBalar1231UtsavBalar1231/oh-my-claudeagent/skills/consolidate-memory/SKILL.md

consolidate-memory

Skill3 starsChanged 33 days agoMITView on GitHub

Use when a plan finishes or agent memories have piled up. Merges agent project memories and notepad learnings into the project's auto-memory index.

10 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use skill-creator.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • SentrySkill

    skill-creator

    Create new agent skills following the Agent Skills specification. Use when asked to "create a skill", "add a new skill", "write a skill", "make a skill", "build a skill", or scaffold a new skill with SKILL.md. Guides through requirements, writing, registration, and verification.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 10 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read agent memory files at both scopes if accessible:

    line 13
  2. Very specific:

    Update the project's auto-memory index, ~/.claude/projects/<project>/memory/MEMORY.md (or MEMORY.md under the autoMemoryDirectory setting …

    line 17
  3. Distinctive:

    Only persist patterns confirmed across multiple interactions

    line 22
  4. Distinctive:

    Remove session-specific context (in-progress tasks, temporary state)

    line 23

“Common” is measured: kept by at least 6 in 10 of the 10 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Consolidate memory

Consolidate session knowledge into persistent memory.

Steps

  1. notepad_read(plan_name): all sections for active plan; load it if needed: ToolSearch({query: "select:mcp__plugin_oh-my-claudeagent_omca__notepad_read", max_results: 1})
  2. Read agent memory files at both scopes if accessible:
    • user scope: ~/.claude/agent-memory/*/MEMORY.md
    • project scope: .claude/agent-memory/*/MEMORY.md (platform writes project memories here, resolving from the project root)
  3. Identify learnings, patterns, decisions worth preserving
  4. Update the project's auto-memory index, ~/.claude/projects/<project>/memory/MEMORY.md (or MEMORY.md under the autoMemoryDirectory setting when set): concise, deduplicated
  5. Note what was kept vs too session-specific

Guidelines

  • Only persist patterns confirmed across multiple interactions
  • Remove session-specific context (in-progress tasks, temporary state)
  • Organize by topic, not chronologically
  • MEMORY.md loads first 200 lines or 25KB per session. Consolidate when approaching limits.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.