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/github.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/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for memory-quality

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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.5 $0.00028 $0.00230
Sonnet 5.5 $0.00014 $0.00115
Haiku 4.5 $0.00007 $0.00057

Measured 2mo ago against content hash 62a6a79f48a7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-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 2mo 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 cost → audit
  • See what should be deleted → report (calls LLM, results cached)
  • Delete low-quality memories → cleanup then cleanup --execute (two steps, see below)
  • Open visual report in browser → dashboard (needs cached report first)
  • Evaluate a single memory → score "<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. 2mo 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 7mo ago), licensed MIT. It adds 69 tokens to every session and 575 once invoked, about $0.0003 per session on Opus 5.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

memory-quality compared with skills from other repositories

memory-quality next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
memory-qualityladyiceberg/memory-quality-mcpSkill17mo agoMITB69Claude Code
dataecho-memorymohocp/dataechoSkill04mo agoMITC103Claude Code
session-orchestratorrocketmandrey/claude-recallSkill54mo agoMITB196Claude Code
dataechomohocp/dataechoSkill04mo agoMITA102Claude Code
archivejcordon5/archive-skillSkill27mo agononeA178Claude Code, Codex
ccthreadjakemarsh/ccthreadSkill16mo agoMITD123Claude Code
obsidian-basesAgriciDaniel/claude-obsidianSkill16k13d agoMITA75Claude Code