Skip to content
Development
Skill

/memesh-review

Review and optimize the MeMesh memory database. Analyzes health score, finds stale or noisy memories, shows work patterns, and suggests human-reviewed cleanup actions. Use when asked to "review memories", "check memory health", "clean up knowledge", or "what's in my memory".

From plugin
memesh
162 skills7 hooks

Claude Code

$ npx -y skills add pcircle-ai/memesh --skill memesh-review --agent claude-code

SKILL.md

memesh-review.SKILL.md
name: memesh-review
description: Review and optimize the MeMesh memory database. Analyzes health score, finds stale or noisy memories, shows work patterns, and suggests human-reviewed cleanup actions. Use when asked to "review memories", "check memory health", "clean up knowledge", or "what's in my memory".
user-invocable: true

MeMesh Memory Review

Review the memory database and provide actionable cleanup recommendations.

How to Access

Use CLI (works everywhere) or MCP tools (if available). See the `memesh` skill for auto-detect instructions.

Process

Step 1: Gather data

# Get system health
memesh status

# Get all recent memories (structured output for analysis)
memesh recall --limit 50 --json

# `--tag` filters actual tags; inspect each returned entity's `type` to group decisions, lessons, and session records.

Recall is a bounded window, not a whole-database count. For an exact health score and factor totals, use the local `GET /v1/analytics` API after `memesh serve`. If it is unavailable, omit the score and label any counts from recall as sample counts.

If MCP `user_patterns` tool is available, also run it for work pattern analysis:

user_patterns: {}

Step 2: Analyze and report

Use the analytics result for graph-wide totals and health factors; use recalled memories to illustrate findings. Present only fields you actually obtained:

## Memory Health Report

### Overview
- Total entities: N
- Last 30 days active: N (N%)
- Knowledge types: N decisions, N patterns, N lessons, N auto-tracked

### Health Score: N/100
- Activity: N/30 points (active entities accessed in the last 30 days / all active entities)
- Quality: N/30 points (active entities with confidence > 0.7 / all active entities)
- Freshness: N/20 points (entities created in the last 7 days / all active entities, capped at 1)
- Lessons: N/20 points (`lesson_learned` entity count / 5, capped at 1)

### Quality Issues Found

**Stale (not accessed 30+ days, low confidence)**
- "entity-name" — confidence: N% — Suggest: archive?

**Verbose (5+ observations)**
- "entity-name" (N observations) — note it; there is no one-entity compression
  command. If useful knowledge is spread across episodic entries, an already
  running agent can prepare one MCP `work_package` for human review.

**Potential conflicts**
- "entity-A" vs "entity-B" — inspect the text and recommend an explicit
  `contradicts` or `supersedes` relation; MeMesh does not judge it automatically

**Noise ratio**
- N% auto-tracked (session_keypoint, commit) vs N% intentional knowledge
- If noise > 80%: recommend more deliberate `memesh remember` usage

### Recommended Actions
1. `memesh forget --name "old-design"` (superseded)
2. Ask the current agent to prepare one MCP `work_package`; then review the staged proposal
3. `memesh remember ...` (knowledge gap in [area])

Step 3: Execute approved actions

Present the report first. Ask which actions to execute. Then run the commands:

memesh forget --name "outdated-entity"
# MCP work_package submits one proposal; then use dream show / accept / reject
memesh remember --name "missing-knowledge" --type decision --obs "..." --why "the reason, and what would make it stop holding"

Step 4: Verify

memesh recall --limit 5 --json    # confirm changes took effect

Tips

  • Run every 1-2 weeks to keep memory healthy
  • Health score < 50 → inspect the four factor scores before recommending a cause
  • Noise > 80% → encourage deliberate `memesh remember` for decisions
  • Use the Claude Mod or Codex MCP/native forms to view and edit individual memories.
Read more
@pcircle-ai
Ships withmemesh

Local collaboration layer for AI coding agents. MeMesh helps AI coding agents share context, exchange tasks and review results, and leave clear handoffs across sessions.

Stars on GitHub

Momentum

stars in total
16
Star history of PCIRCLE-AI/memesh-llm-memory on GitHub, a chart by star-history.com

Other skills on memesh.

memesh

memesh

Use MeMesh to remember, recall, and manage AI knowledge across sessions, and to exchange task-focused messages with local agents.…

@pcircle-ai@pcircle-aiInstall Skill

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills10d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc12d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react1d252k
@facebook@facebookInstall Skill

Questions about memesh-review.

Which coding agents can use memesh-review?
memesh-review installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.