memory-enhancementlisted
Install: claude install-skill rjmurillo/ai-agents
# Memory Enhancement
Manage citations, verify code references, and track confidence scores for Serena memories. Ensures memories stay accurate by linking them to specific code locations and detecting when those locations change.
## Triggers
- `add citation to memory` - Link memory to specific code location
- `verify memory citations` - Check if code references are still valid
- `check memory health` - Generate staleness report across all memories
- `update memory confidence` - Recalculate trust score based on verification
## Quick Reference
| Input | Output | Duration |
|-------|--------|----------|
| Memory ID + code reference | Citation added with validation | < 5 seconds |
| Memory directory | Health report with stale memories | < 30 seconds |
| Verification results | Updated confidence scores | < 10 seconds |
## Decision Tree
```text
Need memory enhancement?
│
├─ Add citation to memory → add-citation command
├─ Verify citations → verify or verify-all command
├─ Check memory health → health command
├─ Traverse memory graph → graph command
└─ Update confidence → update-confidence command
```
## Process
### Phase 1: Identify Target Memory
Locate memory file by ID or path:
1. **Check default directory** - Look in `.serena/memories/` for `<memory-id>.md`
2. **Try direct path** - If full path provided, use it directly
3. **Validate existence** - Error if memory file not found (exit code 2)
**Verification:** Memory file exists and is readable
### Phase 2: Add/Verify