Visualizing Subagents
by WarrenZhu050413
Visualize subagent task dependencies using ASCII diagrams before launching agents and create comprehensive HTML summaries after completion.
Skill Details
Repository Files
1 file in this skill directory
name: "Visualizing Subagents" description: "Visualize subagent task dependencies using ASCII diagrams before launching agents and create comprehensive HTML summaries after completion."
Visualizing Subagents
ASCII Diagram FIRST
CRITICAL: Draw ASCII diagram as FIRST thing before launching Task tool.
When to Draw
- BEFORE launching: Show planned structure
- AFTER completion: Show completed workflow (on request)
Diagram Formats
Parallel:
USER REQUEST: [task]
│
├─→ AGENT 1: [Task A]
├─→ AGENT 2: [Task B]
└─→ AGENT 3: [Task C]
│
└─→ SYNTHESIS
Sequential:
USER REQUEST: [task]
↓
AGENT 1: [First]
↓
AGENT 2: [Second, needs Agent 1]
↓
AGENT 3: [Final]
Mixed:
USER REQUEST: [Verify quotations]
│
├─→ AGENT 1: Quote A, p.400
├─→ AGENT 2: Quote B, p.401
└─→ AGENT 3: Quote C, p.402
│
└─→ AGENT 4: Verify all exact
Labels
- Agent number (AGENT 1, AGENT 2)
- Task (max 3-4 words)
- Critical parameter (page, file)
Response Structure
[ASCII DIAGRAM FIRST]
[Brief strategy - 1-2 sentences]
[Tool calls]
Benefits
- Shows structure at glance
- Clarifies dependencies
- Sets expectations
- Documents approach
HTML Visualization (Post-Completion)
When user wants to visualize/summarize subagents, create interactive HTML: claude_agent_workflow_[task_name].html
Components
1. Mermaid Dependency Graph
- User request → agents → synthesis → output
- Color coding: launched (sky blue), running (gold), completed (green), synthesized (plum)
2. Statistics Dashboard
- Agents launched/completed/success rate
- Execution mode (parallel/sequential/mixed)
- Tokens, word count, time
3. Task Detail Cards
- Status indicator, agent number, type badge
- Task description, tags
- Collapsible key findings (discoveries, patterns, limitations)
- Grid layout (2-3 columns)
4. Synthesis Process
- Execution strategy (why parallel vs sequential)
- Data integration (how merged)
- Cross-validation, conflict resolution
- Output generation
5. Dependency Analysis
- Independent tasks (parallel)
- Dependencies (sequential)
- Critical path, bottlenecks
- Efficiency gains
6. Key Insights
- ✓ Strengths | ⚠ Challenges | 💡 Lessons | 🎯 Recommendations
Generation Steps
- Analyze context (Task tool usage)
- Extract metadata (agents, tasks, dependencies, findings)
- Structure data
- Generate HTML
- Save as
claude_agent_workflow_[name].html - Open in browser
- Confirm to user
Trigger Phrases
- "visualize the subagents"
- "dependency graph"
- "summarize what subagents found"
- "workflow diagram"
Quality Checklist
- All agents represented
- Dependencies accurate
- Status colors correct
- Findings summarized
- Statistics calculated
- Interactive features work
- Mermaid syntax valid
- File saved and opened
Related Skills
Attack Tree Construction
Build comprehensive attack trees to visualize threat paths. Use when mapping attack scenarios, identifying defense gaps, or communicating security risks to stakeholders.
Grafana Dashboards
Create and manage production Grafana dashboards for real-time visualization of system and application metrics. Use when building monitoring dashboards, visualizing metrics, or creating operational observability interfaces.
Matplotlib
Foundational plotting library. Create line plots, scatter, bar, histograms, heatmaps, 3D, subplots, export PNG/PDF/SVG, for scientific visualization and publication figures.
Scientific Visualization
Create publication figures with matplotlib/seaborn/plotly. Multi-panel layouts, error bars, significance markers, colorblind-safe, export PDF/EPS/TIFF, for journal-ready scientific plots.
Seaborn
Statistical visualization. Scatter, box, violin, heatmaps, pair plots, regression, correlation matrices, KDE, faceted plots, for exploratory analysis and publication figures.
Shap
Model interpretability and explainability using SHAP (SHapley Additive exPlanations). Use this skill when explaining machine learning model predictions, computing feature importance, generating SHAP plots (waterfall, beeswarm, bar, scatter, force, heatmap), debugging models, analyzing model bias or fairness, comparing models, or implementing explainable AI. Works with tree-based models (XGBoost, LightGBM, Random Forest), deep learning (TensorFlow, PyTorch), linear models, and any black-box model
Pydeseq2
Differential gene expression analysis (Python DESeq2). Identify DE genes from bulk RNA-seq counts, Wald tests, FDR correction, volcano/MA plots, for RNA-seq analysis.
Query Writing
For writing and executing SQL queries - from simple single-table queries to complex multi-table JOINs and aggregations
Pydeseq2
Differential gene expression analysis (Python DESeq2). Identify DE genes from bulk RNA-seq counts, Wald tests, FDR correction, volcano/MA plots, for RNA-seq analysis.
Scientific Visualization
Meta-skill for publication-ready figures. Use when creating journal submission figures requiring multi-panel layouts, significance annotations, error bars, colorblind-safe palettes, and specific journal formatting (Nature, Science, Cell). Orchestrates matplotlib/seaborn/plotly with publication styles. For quick exploration use seaborn or plotly directly.
