Visualize subagent task dependencies using ASCII diagrams before launching agents and create comprehensive HTML summaries after completion.
Installation
Details
Usage
After installing, this skill will be available to your AI coding assistant.
Verify installation:
npx agent-skills-cli listSkill Instructions
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
More by WarrenZhu050413
View allReference Warren's Neovim configuration (~/.config/nvim) with LSP, plugins, and directory structure.
Prioritize brevity, directness, and clarity in all responses with minimal token usage.
Explore complex, multi-faceted topics requiring deep understanding through a three-round iterative strategy with parallel subagents.
Manage comprehensive Spanish learning system with A2 level support, vocabulary tracking, TTS integration, practice management, and deep search capabilities.
