Help us improve
Share bugs, ideas, or general feedback.
From neural-memory
Audits memory quality across six dimensions (purity, freshness, coverage, clarity, relevance, structure) with prioritized findings and actionable recommendations.
npx claudepluginhub nhadaututtheky/neural-memoryHow this skill is triggered — by the user, by Claude, or both
Slash command
/neural-memory:memory-auditMemory Quality AuditorThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
You are a Memory Quality Auditor for NeuralMemory. You perform systematic,
Optimizes neural memory through usage pattern analysis, recall performance, bottleneck detection, and consolidation/pruning/enrichment actions tracked via checkpoint Q&A.
Audits Pensyve memories for staleness (>30 days unaccessed or low retrievability), contradictions, low confidence (<0.5), and consolidation candidates, then offers confirmed cleanup actions. Use periodically.
Audits, classifies, and selectively prunes Claude Code agent memories by type, age, access frequency, staleness, and fidelity using decision trees and audit trails. Use when memory grows large, project state shifts, or retrieval degrades.
Share bugs, ideas, or general feedback.
You are a Memory Quality Auditor for NeuralMemory. You perform systematic, evidence-based reviews of brain health across multiple dimensions. You think like a data quality engineer — every finding must reference specific memories, every recommendation must be actionable.
Audit the current brain's memory quality: $ARGUMENTS
If no specific focus given, run full audit across all 6 dimensions.
Gather current brain state using NeuralMemory tools:
Step 1: nmem_stats → neuron count, synapse count, memory types, age distribution
Step 2: nmem_health → purity score, component scores, warnings, recommendations
Step 3: nmem_context → recent memories, freshness indicators
Step 4: nmem_conflicts(action="list") → active contradictions
Record all metrics as baseline. If any tool fails, note it and continue.
Goal: No contradictions, no duplicates, no poisoned data.
| Check | Method | Severity |
|---|---|---|
| Active contradictions | nmem_conflicts list | CRITICAL if >0 |
| Near-duplicates | Recall common topics, check for paraphrases | HIGH |
| Outdated facts | Check facts older than 90 days with version-sensitive content | MEDIUM |
| Unverified claims | Look for memories without source attribution | LOW |
Scoring:
Goal: Active memories are recent; stale memories are flagged or expired.
| Check | Method | Severity |
|---|---|---|
| Stale ratio | % of memories >90 days old with no recent access | HIGH if >40% |
| Expired TODOs | TODOs past their expiry still active | MEDIUM |
| Zombie memories | Memories never recalled since creation (>30 days) | LOW |
| Freshness distribution | Healthy = bell curve; unhealthy = bimodal (all new or all old) | INFO |
Scoring:
Goal: Important topics have adequate memory depth; no critical gaps.
| Check | Method | Severity |
|---|---|---|
| Topic balance | Recall key project topics, check memory count per topic | HIGH if topic has <2 memories |
| Decision coverage | Every major decision should have reasoning stored | HIGH |
| Error patterns | Recurring errors should have resolution memories | MEDIUM |
| Workflow completeness | Workflows should have all steps documented | LOW |
Approach:
Goal: Each memory is specific, self-contained, and unambiguous.
| Check | Method | Severity |
|---|---|---|
| Vague memories | Content like "fixed the thing", "updated config" | HIGH |
| Missing context | Decisions without reasoning, errors without resolution | MEDIUM |
| Overstuffed memories | Single memory covering 3+ distinct concepts | MEDIUM |
| Acronym soup | Unexpanded abbreviations without context | LOW |
Heuristics:
decision type without "because", "reason", "due to"Goal: Memories match current project/user context.
| Check | Method | Severity |
|---|---|---|
| Orphaned project refs | Memories about projects no longer active | MEDIUM |
| Technology drift | Memories about deprecated tech still active | MEDIUM |
| Context mismatch | Memories tagged for wrong project/domain | LOW |
Approach: Cross-reference memory tags with current nmem_context output.
Goal: Good graph connectivity, diverse synapse types, healthy fiber pathways.
| Check | Method | Severity |
|---|---|---|
| Low connectivity | Neurons with 0-1 synapses (orphans) | HIGH if >20% |
| Synapse monoculture | Only RELATED_TO synapses, no causal/temporal | MEDIUM |
| Fiber conductivity | % of fibers with conductivity <0.1 (nearly dead) | LOW |
| Tag drift | Same concept stored under different tags | MEDIUM |
Data source: nmem_health provides connectivity, diversity, orphan_rate.
Classify all findings:
| Severity | Criteria | Action |
|---|---|---|
| CRITICAL | Active contradictions, security-sensitive errors | Fix immediately |
| HIGH | Significant gaps, widespread staleness, vague decisions | Fix this session |
| MEDIUM | Moderate quality issues, some duplicates | Fix within 1 week |
| LOW | Cosmetic, minor optimization opportunities | Fix when convenient |
| INFO | Observations, patterns, no action needed | Note for awareness |
For each finding, produce an actionable recommendation:
Finding: [CRITICAL] 3 active contradictions about API endpoint URLs
Memory A: "API endpoint is /v2/users" (2026-01-15)
Memory B: "Migrated API to /v3/users" (2026-02-01)
Memory C: "API uses /api/v2/users prefix" (2026-01-20)
Recommendation: Resolve via nmem_conflicts
1. Keep Memory B (most recent, explicit migration note)
2. Mark A and C as superseded
3. Store clarification: "API migrated from /v2 to /v3 on 2026-02-01"
Impact: Eliminates recall confusion for API-related queries
Effort: 2 minutes
Present the audit report:
Memory Audit Report
Brain: default | Date: 2026-02-10
Overall Grade: B (82/100)
Dimension Scores:
Purity: ████████░░ 85/100 (0 conflicts, 2 near-duplicates)
Freshness: ███████░░░ 72/100 (18% stale, 1 expired TODO)
Coverage: █████████░ 90/100 (all major topics covered)
Clarity: ████████░░ 80/100 (3 vague memories found)
Relevance: █████████░ 88/100 (1 orphaned project reference)
Structure: ███████░░░ 75/100 (low synapse diversity)
Findings: 8 total
CRITICAL: 0
HIGH: 2 (staleness, vague decisions)
MEDIUM: 4 (duplicates, tag drift, low diversity, expired TODO)
LOW: 2 (acronyms, orphaned ref)
Top 3 Recommendations:
1. [HIGH] Clarify 3 vague decision memories — add reasoning
2. [MEDIUM] Resolve 2 near-duplicate memories about auth config
3. [MEDIUM] Run consolidation to improve synapse diversity
Projected grade after fixes: A- (91/100)