agentleFS
vltingvlting/claude-skills/skills/memory/SKILL.md

memory

Skill2 starsChanged 9 months agoMITView on GitHub

User-facing memory management. Recall, save, forget, reinforce, cleanup, and stats for the JIT memory system.

66 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use harness-review, postmortem and 10 more.

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.
  • fockusSkill

    harness-review

    Harness v3 統合レビュースキル。コード・プラン・スコープを多角的にレビュー。以下で起動: レビュー、コードレビュー、プランレビュー、スコープ分析、セキュリティ、品質チェック、harness-review。実装・新機能・バグ修正・セットアップ・リリースには使わない。

    Also in 3 projects that use this

  • Hongyu-yuSkill

    postmortem

    Use when analyzing failures, outages, incidents, or negative outcomes, conducting blameless postmortems, documenting root causes with 5 Whys or fishbone diagrams, identifying corrective actions with owners and timelines, learning from near-misses, establishing prevention strategies, or when user mentions postmortem, incident review, failure analysis, RCA, lessons learned, or after-action review.

    Also in 4 projects that use this

  • MicrosoftSkill

    dev

    Development workflows for the playwright-cli repository. Use when the user asks about rolling dependencies, releasing, or other repo maintenance tasks.

    Also in 3 projects that use this

  • AnthropicSkill

    start

    Set up your bio-research environment and explore available tools. Use when first getting oriented with the plugin, checking which literature, drug-discovery, or visualization MCP servers are connected, or surveying available analysis skills before starting a new project.

    Also in 4 projects that use this

  • MicrosoftSkill

    sync

    Sync the current session branch with its upstream branch, or publish the current session branch to a remote. Use when the user asks to sync a branch, pull latest changes, rebase onto upstream, push current branch, publish branch, or set upstream.

    Also in 3 projects that use this

  • GitHubSkill

    refactor

    Surgical code refactoring to improve maintainability without changing behavior. Covers extracting functions, renaming variables, breaking down god functions, improving type safety, eliminating code smells, and applying design patterns. Less drastic than repo-rebuilder; use for gradual improvements.

    Also in 4 projects that use this

  • +1 more from microsoft

The file

Show its rules and text

We split this skill into the rules it gives an agent

15 rules. 0 are common, 7 are distinctive, and 8 are very specific to this project.

  • 0

    Common

    Most of the 57 edited versions we read keep these.

  • 7

    Distinctive

    This author's own choices. Worth a look.

  • 8

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read ~/.claude/skills/memory/MEMORY_OPS.md for tool call templates used by all skills.

    line 32
  2. Very specific:

    Call mcp__memory__memory_recall with no args, limit 1 (just to verify connectivity).

    line 40
  3. Very specific:

    Call mcp__memory__memory_stale with default args.

    line 46
  4. Distinctive:

    Never expose raw UUIDs: Use name + index for reference.

    line 80
  5. Very specific:

    Call mcp__memory__memory_store with parsed args + user selections.

    line 87
  6. Distinctive:

    If 1 result → reinforce directly.

    line 93
  7. Very specific:

    If multiple → AskUserQuestion with numbered list, ask which to reinforce.

    line 94
  8. Distinctive:

    If 1 result → confirm before forgetting.

    line 101
  9. Very specific:

    If multiple → AskUserQuestion with numbered list.

    line 102
  10. Distinctive:

    If 1 result → show current content, ask what to change.

    line 110
  11. Very specific:

    If multiple → AskUserQuestion with numbered list, ask which to update.

    line 111
  12. Distinctive:

    If no candidates → "All memories healthy — nothing to clean up."

    line 119
  13. Distinctive:

    Confirm destructive actions: Always ask before forget/delete.

    line 158
  14. Very specific:

    One question at a time: Use AskUserQuestion sequentially, never multiple.

    line 159
  15. Distinctive:

    Read-only by default: Only modify memories when user explicitly requests it.

    line 161

“Common” is measured: kept by at least 6 in 10 of the 57 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

Memory

Direct interface to the JIT memory system. Search, save, manage, and clean up memories.

/memory                          — show stats (default)
/memory recall {query}           — search memories, display ranked results
/memory save {name} -- {content} — explicit store (asks for type/scope)
/memory reinforce {query}        — boost salience of matching memory
/memory forget {query}           — soft-delete matching memory
/memory stats                    — counts by type/scope, top-5 accessed, staleness
/memory update {query}           — update matching memory in-place
/memory cleanup                  — show cleanup candidates, approve per-memory
/memory archive {query}          — send matching memories to cold storage
/memory promote {query}          — bring cold memories back to hot

Operations Reference

Read ~/.claude/skills/memory/MEMORY_OPS.md for tool call templates used by all skills.


Subcommands

/memory or /memory stats

  1. Call mcp__memory__memory_recall with no args, limit 1 (just to verify connectivity).
  2. Query counts by type:
    For each type in [user, feedback, project, reference, episodic]:
      mcp__memory__memory_recall(type: type, limit: 1) → use result to show "N+ memories"
  3. Call mcp__memory__memory_stale with default args.
  4. Display:
    Memory System
    ─────────────────────────────
    Hot:   {count} memories
    Stale: {stale_count} (>{max_days} days untouched)
    
    By type:
      feedback:  {n}    reference: {n}
      user:      {n}    project:   {n}
      episodic:  {n}
    
    Top 5 most accessed:
      1. {name} ({type}, {access_count} accesses)
      ...
    
    Tip: /memory cleanup — review stale memories

/memory recall {query}

  1. Call mcp__memory__memory_recall(query: "{query}", limit: 15).
  2. Display ranked results:
    {N} results for "{query}"
    ─────────────────────────────
    1. {name}  [{type}]  score: {score}
       {description — first 100 chars}
    
    2. {name}  [{type}]  score: {score}
       {description — first 100 chars}
    ...
  3. Never expose raw UUIDs. Use name + index for reference.

/memory save {name} -- {content}

  1. Parse {name} (before --) and {content} (after --).
  2. AskUserQuestion: "Type? (feedback / reference / project / user / episodic)"
  3. AskUserQuestion: "Scope? (global / project / discipline:{name})"
  4. Call mcp__memory__memory_store with parsed args + user selections.
  5. Confirm: Saved: "{name}" [{type}, {scope}]

/memory reinforce {query}

  1. Call mcp__memory__memory_recall(query: "{query}", limit: 5).
  2. If 1 result → reinforce directly.
  3. If multiple → AskUserQuestion with numbered list, ask which to reinforce.
  4. Call mcp__memory__memory_reinforce(id: "{resolved_id}").
  5. Confirm: Reinforced: "{name}" (salience +0.3)

/memory forget {query}

  1. Call mcp__memory__memory_recall(query: "{query}", limit: 5).
  2. If 1 result → confirm before forgetting.
  3. If multiple → AskUserQuestion with numbered list.
  4. AskUserQuestion: "Forget '{name}'? This soft-deletes it. (y/n)"
  5. Call mcp__memory__memory_forget(id: "{resolved_id}").
  6. Confirm: Forgotten: "{name}"

/memory update {query}

  1. Call mcp__memory__memory_recall(query: "{query}", limit: 5).
  2. If 1 result → show current content, ask what to change.
  3. If multiple → AskUserQuestion with numbered list, ask which to update.
  4. AskUserQuestion: "What fields to update?" — show current name, description, content. Accept new values.
  5. Call mcp__memory__memory_update(id, ...changed_fields).
  6. Confirm: Updated: "{name}"

/memory cleanup

  1. Call mcp__memory__memory_cleanup(max_stickiness: 0.3, limit: 20).
  2. If no candidates → "All memories healthy — nothing to clean up."
  3. Display candidates:
    Cleanup Candidates (stickiness < 0.3)
    ─────────────────────────────
    1. {name}  [{type}]  stickiness: {score}
       Suggested: {compress|archive|delete}
       {description — first 80 chars}
    
    2. ...
  4. AskUserQuestion: "Action per memory — enter numbers to act on, or (s)kip all: 1a = archive #1, 2d = delete #2, 3c = compress #3"
  5. Execute approved actions:
    • archive: mcp__memory__memory_archive(id)
    • delete: mcp__memory__memory_forget(id) (confirm: "Permanently forget?")
    • compress: mcp__memory__memory_consolidate(ids: [id], name, description, content: <summarized>)
  6. Summary: Cleaned: {N} archived, {N} deleted, {N} compressed

/memory archive {query}

  1. Call mcp__memory__memory_recall(query: "{query}", limit: 5).
  2. Resolve target (single or ask).
  3. Call mcp__memory__memory_archive(id: "{resolved_id}").
  4. Confirm: Archived: "{name}" — excluded from default recall

/memory promote {query}

  1. Need to search cold storage. Call mcp__memory__memory_recall(query: "{query}", limit: 5).
    • Note: if the memory is already archived, it won't appear in default recall. Use broader search terms.
  2. Resolve target.
  3. Call mcp__memory__memory_promote(id: "{resolved_id}").
  4. Confirm: Promoted: "{name}" — back in hot tier

Rules

  1. Never expose UUIDs. Resolve by name/query internally. Users see names + indices.
  2. Confirm destructive actions. Always ask before forget/delete.
  3. One question at a time. Use AskUserQuestion sequentially, never multiple.
  4. Compact output. Tables and lists, no prose.
  5. Read-only by default. Only modify memories when user explicitly requests it.

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.