con un clic
ww-consolidate
Trigger and manage World Weaver memory consolidation
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Menú
Trigger and manage World Weaver memory consolidation
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Basado en la clasificación ocupacional SOC
Comprehensive SessionEnd hook that syncs and synthesizes all daily completions, notes, todos, and conversation data into unified daily notes and knowledge bases.
Unified worklog system. Synthesizes session work into daily markdown files with clean bullet points. Supports weekly rollups for Slack #progress sharing. Replaces fragmented checkpoint/session-state/weekly-notes systems.
Comprehensive pre-submission review orchestrator. Coordinates methodology checks, bias detection, AI text detection, statistical validation, and reporting guideline compliance for journal submissions.
Kymera Systems brand design - Jarvis-inspired HUD aesthetic with dark and light modes. Use for branded UI, dashboards, presentations, and technical artifacts.
Deep analysis workflows for World Weaver memory systems, code, and architecture
Architecture documentation generation and maintenance for World Weaver
| name | ww-consolidate |
| description | Trigger and manage World Weaver memory consolidation |
| version | 1.0.0 |
| allowed-tools | ["Bash","Read"] |
Manage memory consolidation in World Weaver - the process of organizing, clustering, and optimizing stored memories.
Memory consolidation mirrors biological memory processes:
Invoke this skill when:
mcp__ww-memory__consolidate_now - Run consolidation
mcp__ww-memory__memory_stats - Get system metrics
mcp__ww-memory__get_provenance - Check memory lineage
Fast, safe, run frequently.
Operations:
Duration: 2-10 seconds Frequency: Daily or after 20+ new episodes
Thorough, compute-intensive, run weekly.
Operations: All of light consolidation, plus:
Duration: 30-120 seconds Frequency: Weekly or after 100+ new episodes Requirement: HDBSCAN library installed
1. Get current stats: mcp__ww-memory__memory_stats()
2. Check episode count since last consolidation
3. Verify HDBSCAN available (for full consolidation)
4. Estimate consolidation duration
1. Load all episodes from Qdrant
2. For each episode pair accessed together:
- Calculate co-access score
- Update relationship weight in Neo4j
3. Apply FSRS decay to all episodes:
- R(t, S) = (1 + 0.9 * t/S)^(-0.5)
4. Normalize fan-out weights:
- Prevent hub nodes from dominating
5. Prune relationships with weight < 0.1
1. Run light consolidation first
2. Extract episode embeddings
3. Apply stratified sampling if >5000 episodes
4. Run HDBSCAN clustering:
- min_cluster_size=3
- metric="cosine"
5. Assign non-sampled episodes to nearest cluster
6. For each cluster:
- Extract common entities (rule-based or LLM)
- Identify successful patterns
- Generate candidate skills
7. Merge duplicate entities:
- Same name, similar embedding
8. Rebuild Neo4j indexes
mcp__ww-memory__consolidate_now(
consolidation_type="light", # or "full"
dry_run=false, # true to preview only
session_filter=null # null for all, or specific session_id
)
{
"status": "completed",
"type": "light",
"duration_seconds": 4.2,
"stats": {
"episodes_processed": 47,
"relationships_strengthened": 23,
"relationships_pruned": 5,
"stability_updates": 35
},
"errors": []
}
mcp__ww-memory__memory_stats()
Returns:
{
"episodes": {"total": 47, "this_session": 12, "avg_stability": 0.72},
"entities": {"total": 156, "orphaned": 3},
"skills": {"total": 23, "active": 20},
"relationships": {"total": 312, "avg_weight": 0.54},
"last_consolidation": "2025-11-27T10:00:00",
"episodes_since_consolidation": 15
}
| Metric | Healthy | Needs Attention |
|---|---|---|
| Episodes since consolidation | < 50 | > 100 |
| Orphaned entities | < 5 | > 20 |
| Average relationship weight | 0.3-0.7 | < 0.2 or > 0.9 |
| Average stability | > 0.5 | < 0.3 |
If full consolidation requested but HDBSCAN not installed:
1. Log warning
2. Fall back to light consolidation
3. Report that clustering was skipped
4. Suggest: pip install hdbscan
If HDBSCAN runs out of memory:
1. Catch MemoryError
2. Return all episodes as single cluster
3. Log warning about dataset size
4. Suggest reducing hdbscan_max_samples
If Neo4j/Qdrant operations fail:
1. Log specific error
2. Continue with remaining operations
3. Report partial completion
4. Do not lose data
## Consolidation Complete
**Type**: Light
**Duration**: 4.2s
### Changes
| Metric | Before | After | Delta |
|--------|--------|-------|-------|
| Episodes | 47 | 47 | 0 |
| Relationships | 312 | 307 | -5 (pruned) |
| Avg Weight | 0.48 | 0.54 | +0.06 |
| Avg Stability | 0.68 | 0.65 | -0.03 (decay) |
### Actions Taken
- Strengthened 23 relationship pairs
- Pruned 5 weak relationships
- Updated 47 stability scores
### Recommendations
- Consider full consolidation (15 new entities detected)
## Consolidation Preview (Dry Run)
### Would Process
- 47 episodes
- 312 relationships
- 156 entities
### Would Strengthen
- Neo4j ↔ Cypher: 0.7 → 0.82
- Testing ↔ pytest: 0.5 → 0.65
### Would Prune
- 5 relationships with weight < 0.1
### Would Extract (Full Only)
- 3 potential new entities
- 1 potential new skill
*No changes made*
This skill is called by:
/consolidate commandww-memory agent for maintenance tasks