/pensyve:memory-reviewfrom pensyve
Audits memory health by detecting stale, contradictory, low-confidence, and consolidation-candidate memories, then offers cleanup actions with user confirmation.
Ships in pensyve. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Audit Pensyve memory health and identify issues that need attention: stale memories, contradictions, low-confidence entries, and consolidation candidates.
When this skill is invoked, follow these steps:
If an entity is specified, call pensyve_inspect with that entity (limit: 50). If no entity is specified, run a broad pensyve_recall query with "*" (limit: 50) to discover entities, then inspect the top entities found.
Collect all memories for analysis.
Analyze the collected memories for four categories of issues:
Identify memories where last_accessed is more than 30 days ago or where retrievability has dropped below 0.3 (indicating FSRS decay). These memories are at risk of becoming irrelevant.
Flag criteria:
last_accessed older than 30 days from todayretrievability below 0.3access_count of 0 (never retrieved since creation)Identify semantic memories for the same entity that have conflicting predicates or objects. Look for:
invalid_at setIdentify memories with confidence below 0.5. These may have been stored speculatively or may reflect uncertain information.
Flag criteria:
confidence below 0.5reliability below 0.5 and trial_count above 3Identify memories that could benefit from consolidation:
Present the findings in a structured report:
Memory Hygiene Report
Audited: 42 memories across 5 entities
Stale Memories (4 found)
# Entity Memory Last Accessed Retrievability 1 old-api Used XML responses 45 days ago 0.15 2 config Default port was 3000 38 days ago 0.22 3 testing Used mocha for tests 60 days ago 0.08 4 deploy Manual deploy to staging 33 days ago 0.28 Contradictions (1 found)
# Entity Memory A Memory B Issue 5 auth-service "uses HS256 signing" (conf: 0.8) "uses RS256 signing" (conf: 0.9) Conflicting signing algorithm Low Confidence (2 found)
# Entity Memory Confidence 6 cache "might need Redis for sessions" 0.3 7 api "possibly rate limited at 100 req/s" 0.4 Consolidation Candidates (1 found)
# Entity Description Suggestion 8 database 3 episodic memories about migration fixes Promote to semantic: "migration script requires version check" Summary: 4 stale, 1 contradiction, 2 low-confidence, 1 consolidation candidate
If a category has no issues, omit that section entirely. If all checks pass, report:
Memory Hygiene Report
Audited: 42 memories across 5 entities
All checks passed. Memory store is healthy.
After presenting the report, offer cleanup actions with user confirmation:
Recommended Actions:
- Archive stale memories (#1-4): Remove from active recall. Use
pensyve_forgeton each.- Resolve contradiction (#5): Keep the RS256 memory (higher confidence, more recent). Forget the HS256 memory.
- Review low-confidence (#6-7): Confirm or remove these uncertain memories.
- Run consolidation (#8): Use
/consolidateto promote episodic patterns to semantic memories.Which actions should I take? (e.g., "1,2", "all", "none")
NEVER execute actions without user confirmation. Wait for explicit approval before calling any MCP tools to modify memory.
For confirmed actions:
pensyve_forget with the entity name for each confirmed deletion.pensyve_forget for the outdated memory. If both should be kept, note the conflict and move on./consolidate (this skill does not run consolidation directly).Report results after each action.
.claude/ memory files. All memory operations go through the Pensyve MCP tools exclusively.pensyve_inspect fails for an entity, skip it and note the failure in the report.pensyve_recall returns errors, report partial results and note which queries failed.pensyve_forget fails during cleanup, report the error and continue with remaining actions.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
7 skills in this plugin
/context-loaderSession start context priming -- loads relevant memories from Pensyve at the beginning of a session to provide continuity across sessions. Use when switching projects or needing historical context./memory-informed-debugDebug with working memory -- before diagnosing, recall prior root causes and known-good diagnostic procedures; when a root cause is confirmed, capture it immediately. Use whenever debugging a non-trivial failure./memory-informed-designArchitecture/design decisions with working memory -- before recommending, recall prior decisions and tradeoffs; when a decision is made, capture it immediately. Use for any substantive design question./memory-informed-longitudinal-workLong-running multi-session work (research, eval loops, iterative benchmarks) with continuity -- resume prior lessons, capture per-run outcomes, build up stable truths over time. Use for eval/research/benchmark work that spans sessions./memory-informed-refactorPre-refactor context loading -- queries Pensyve memory for past decisions, failures, and patterns related to a refactoring target, then compiles a briefing. Use when starting a refactor to avoid repeating past mistakes./session-memoryEnd-of-session memory capture -- analyzes session for decisions, outcomes, and patterns worth remembering, then stores confirmed items via Pensyve. Use when ending a work session or when the user wants to capture what was learned.npx claudepluginhub major7apps/pensyve --plugin pensyveOther plugins' skills for the same job