skills/memory/world-weaver/skills/ww-consolidate/SKILL.md
Trigger and manage World Weaver memory consolidation
npx skillsauth add astoreyai/claude-skills ww-consolidateInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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 taskscontent-media
# YouTube Transcriber Skill Extract transcripts from YouTube videos, playlists, and channels with automatic intelligent processing. ## Overview One unified command that intelligently assesses input and handles everything—single videos, batch files, playlist expansion, channel extraction. No need to choose between commands; it figures out what to do. ## Capabilities - **Auto-Detect Input**: Single URL, file of URLs, playlist, channel - **Smart Expansion**: Automatically expands playlists/cha
development
# Trading Analysis Skill **Version**: 1.0.0 **Category**: Financial Analysis / Trading **Author**: Claude Code **Last Updated**: November 22, 2025 ## Overview Comprehensive trading performance analysis and edge identification system for Interactive Brokers accounts. Analyzes CSV statements to identify trading patterns, position sizing issues, time-of-day edges, and risk management problems. ## Features ### 1. **CSV Statement Parsing** - Parse Interactive Brokers activity statements (CSV for
development
# System Health Check & Cleanup Skill **Version**: 1.0.0 **Category**: System Administration / Performance Optimization **Author**: Claude Code **Last Updated**: November 22, 2025 ## Overview Automated system health monitoring and cleanup workflow. Diagnoses performance issues, identifies resource bottlenecks, fixes orphaned services, kills stale processes, and cleans cache bloat. Designed for archimedes (32c/125GB) but works on any Linux system. ## Features ### 1. **System Diagnostics** -
testing
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.