ww-analyze
Deep analysis workflows for World Weaver memory systems, code, and architecture
What this skill does
# WW Analyze Skill
Deep analysis workflows for World Weaver memory systems, code quality, and architecture.
## Purpose
This skill provides comprehensive analysis capabilities:
1. **Code Analysis**: Audit WW codebase for bugs, patterns, and improvements
2. **Memory Analysis**: Analyze memory contents, patterns, and health
3. **Architecture Analysis**: Evaluate system design and propose improvements
4. **Performance Analysis**: Profile and identify bottlenecks
## When to Use
Invoke this skill when:
- User asks "analyze the memory system"
- User wants to understand memory patterns
- Code quality audit is needed
- Performance issues are suspected
- Architecture review is requested
## Analysis Workflows
### 1. Bug Hunting Workflow
Orchestrate specialized bug-hunting agents:
```bash
# Run all bug hunters in sequence
paths=(
"src/ww/learning/"
"src/ww/memory/"
"src/ww/storage/"
"src/ww/mcp/"
"src/ww/core/"
)
for path in "${paths[@]}"; do
echo "Analyzing: $path"
done
```
Agent orchestration:
1. **ww-bio-auditor** - Check biological plausibility
2. **ww-race-hunter** - Find concurrency bugs
3. **ww-leak-hunter** - Detect memory leaks
4. **ww-hinton-validator** - Validate learning theory
5. **ww-cache-analyzer** - Check cache coherence
6. **ww-trace-debugger** - Debug eligibility traces
### 2. Memory Pattern Analysis
Analyze stored memories for patterns:
```python
# Query memory statistics
mcp__ww-memory__memory_stats()
# Analyze episode distribution
mcp__ww-memory__recall_episodes(
query="*",
limit=1000,
include_metadata=True
)
# Analyze entity graph
mcp__ww-memory__semantic_recall(
query="*",
include_connections=True
)
```
Output analysis:
- Episode count by outcome (success/failure/partial)
- Entity type distribution
- Relationship density
- Temporal patterns
- Importance distribution
### 3. Architecture Analysis
Evaluate system architecture:
```bash
# File structure analysis
find /home/aaron/ww/src -name "*.py" | wc -l
# Dependency analysis
grep -r "^from ww" /home/aaron/ww/src --include="*.py" | cut -d: -f2 | sort | uniq -c | sort -rn
# Test coverage check
cd /home/aaron/ww && pytest --cov=src/ww --cov-report=term-missing
```
Architecture metrics:
- Module coupling (import analysis)
- Test coverage by module
- Cyclomatic complexity
- Code duplication
### 4. Performance Analysis
Profile system performance:
```python
import cProfile
import pstats
# Profile memory operations
profiler = cProfile.Profile()
profiler.enable()
# ... memory operations ...
profiler.disable()
stats = pstats.Stats(profiler)
stats.sort_stats('cumulative')
stats.print_stats(20)
```
Performance metrics:
- Query latency (p50, p95, p99)
- Memory usage over time
- CPU utilization
- I/O operations
## Analysis Report Format
```markdown
## WW Analysis Report
**Type**: {Bug Hunt | Memory Pattern | Architecture | Performance}
**Date**: {timestamp}
**Scope**: {paths analyzed}
### Summary
{High-level findings}
### Metrics
| Metric | Value | Status |
|--------|-------|--------|
| Files analyzed | N | - |
| Issues found | N | {OK/WARNING/CRITICAL} |
| Test coverage | N% | {OK if >80%} |
### Findings
#### Critical (P0)
{List of critical issues}
#### High (P1)
{List of high priority issues}
#### Medium (P2)
{List of medium priority issues}
### Recommendations
1. {Priority action items}
### Visualizations
{Embedded diagrams or links to generated visualizations}
```
## Integration with Agents
This skill orchestrates bug-hunting agents:
```
/ww-analyze bugs src/ww/learning/
→ Spawns: ww-bio-auditor, ww-hinton-validator, ww-trace-debugger
/ww-analyze concurrency src/ww/mcp/
→ Spawns: ww-race-hunter, ww-leak-hunter, ww-cache-analyzer
/ww-analyze full src/ww/
→ Spawns: All 6 agents in parallel
```
## MCP Extensions
Proposed MCP endpoints for analysis:
```
mcp__ww-memory__analyze_patterns - Analyze memory patterns
mcp__ww-memory__analyze_health - Check system health
mcp__ww-memory__analyze_performance - Profile operations
mcp__ww-memory__generate_report - Create analysis report
```
## Quality Checklist
Before completing analysis:
- [ ] All target paths scanned
- [ ] All agents completed successfully
- [ ] Findings categorized by severity
- [ ] Recommendations are actionable
- [ ] Report saved to /home/aaron/mem/
## Error Handling
If analysis fails:
1. Log partial results
2. Identify failing component
3. Continue with remaining analyses
4. Report incomplete status
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.