memory-quality

memory-quality is a skill for Claude Code from ladyiceberg/memory-quality-mcp. It costs 69 tokens per session (575 once invoked), scanned B, original, MIT.

A tool for checking and cleaning memory files automatically saved by Claude Code, an AI coding assistant. It scores memory quality, finds conflicts, previews cleanup, and can open a visual dashboard.

In plain words
What is it for?
Use it to audit memory files, review suggested deletions, remove low-quality memories after confirmation, inspect one memory, or view a dashboard.
Why use it?
It helps keep saved project memories useful and prevents outdated, duplicated, or conflicting notes from accumulating.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; mentions Claude Code.

Part of the memory-quality plugin — 1 skill, 1 hook shipped together

Good fit Use it to audit memory files, review suggested deletions, remove low-quality memories after confirmation, inspect one memory, or view a dashboard.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ladyiceberg/memory-quality-mcp/memory-quality
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ladyiceberg/memory-quality-mcp --skill memory-quality
Clone the repo
git clone --depth 1 https://github.com/ladyiceberg/memory-quality-mcp

Made for: Claude Code.

Or install memory-quality, the plugin that ships this one along with the rest of its 1 skill, 1 hook.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for memory-quality

README.md
[![agentmods](https://agentmods.dev/badge/skills/ladyiceberg/memory-quality-mcp/memory-quality.svg)](https://agentmods.dev/skills/ladyiceberg/memory-quality-mcp/memory-quality)
Your own site
<a href="https://agentmods.dev/skills/ladyiceberg/memory-quality-mcp/memory-quality"><img src="https://agentmods.dev/badge/skills/ladyiceberg/memory-quality-mcp/memory-quality.svg" alt="Measured on agentmods" height="20"></a>
Per session 69 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 575 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00069 $0.00575
Opus 5 $0.00034 $0.00287
Sonnet 5 $0.00014 $0.00115
Haiku 4.5 $0.00007 $0.00057

Measured 6d ago against content hash 62a6a79f48a7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade B, and why

memory-quality scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/memory_quality.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

find ~/.claude/projects -name "*.md" -path "*/memory/*" 2>/dev/null \
skills/skills/memory-quality/SKILL.md · 63 lines

What it actually says

Memory Quality

Helps users understand and clean up the memory files that Claude Code saves automatically. Files live in ~/.claude/projects/*/memory/.

Memory files on this machine:

find ~/.claude/projects -name "*.md" -path "*/memory/*" 2>/dev/null \
  | grep -v "MEMORY\.md" | wc -l | tr -d ' '

If the count above is 0, tell the user they don't have memory files yet and suggest they keep using Claude Code normally — files appear after a few sessions.

Choosing what to run

  • Quick overview, no costaudit
  • See what should be deletedreport (calls LLM, results cached)
  • Delete low-quality memoriescleanup then cleanup --execute (two steps, see below)
  • Open visual report in browserdashboard (needs cached report first)
  • Evaluate a single memoryscore "<text>"

For detailed command options and example output, see references/commands.md.

Running a command

python ${CLAUDE_SKILL_DIR}/scripts/memory_quality.py <command> [options]

Cleanup is always two steps

  1. Run cleanup — shows a preview of what would be deleted.
  2. Show the user the list and ask for confirmation.
  3. Only after confirmation, run cleanup --execute.

Never skip the preview step. Even though a .trash/ backup is created automatically, users don't expect silent deletions.

When there's no cached report

cleanup and dashboard both require a prior report to be run. If the script says "No cached report found", run report first, then retry.

API Key

audit and dashboard (with cache) need no API key. report and score need one. If missing, ask the user to set OPENAI_API_KEY, ANTHROPIC_API_KEY, MINIMAX_API_KEY, or KIMI_API_KEY in their environment, or configure it via plugin settings.

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 63 lines · 69 tokens per session scan B 62a6a79f48a7

Subscribe to this mod's changes

memory-quality is a skill published in the GitHub repository ladyiceberg/memory-quality-mcp (1 stars, last pushed 5mo ago), licensed MIT. It adds 69 tokens to every session and 575 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

dataecho-memory

Persistent memory for agents — durable across sessions, machines, sandboxes, and agent platforms, stored in a private DataEcho cloud drive. Use at the start of a session to recall who the user is and what you were working on; whenever the user says "remember this", "don't forget", "like last time", or references past…

mohocp/dataecho · 103 tokens

session-orchestrator

Session orchestrator on top of the recall index of all Claude Code sessions: finds a past session by task description, dives in (context, project, skill, artifacts) and acts in one of three modes — finish here, hand off the resume command, or open the session in a new terminal window. Use when user asks: "find the…

rocketmandrey/claude-recall · 196 tokens

lobstr

R lobstr package for memory inspection. Use for understanding R object memory usage and structure.

LeoLin990405/r-analytics-skill · 21 tokens

archive

Persistent knowledge wiki and memory system that compounds across conversations using an Obsidian-compatible vault. Consult at the START of any non-trivial task to recall project context, preferences, and past discoveries. Ingest sources and build wiki pages when accumulating knowledge on a topic. Save at the END when…

jcordon5/archive-skill · 178 tokens

ccthread

Read, search, and summarize Claude Code conversation history. Use when the user asks to find things discussed in past sessions, review old threads, summarize recent work for teammates, extract learnings into a skill or CLAUDE.md, or answer "what was that value/port/command we used?" — ccthread reads /.claude/projects/…

jakemarsh/ccthread · 123 tokens

dataecho

Deploy anything an agent builds to a live URL via the DataEcho platform at https://dataecho.ai — a single file, a static site, OR a server-side app (any stack) by including a Dockerfile. Also private cloud Drives for agent memory/handoff. Use whenever the user asks to publish, host, share, deploy, or "put online" a…

mohocp/dataecho · 102 tokens