visualize-conversation
Visualize Conversation Skill
Generate a Mermaid sequence diagram from conversation session data collected by Copilot hooks, showing user prompts, tool calls, and sub-agent activity. Also visualize or delete conversations using Copilot's interactive question selection.
How It Works
When you invoke this skill without specifying a session ID:
- Copilot scans
.copilot-conversation/datafor all available session IDs - Uses the ask_questions feature to display sessions and ask you to select one
- Calls visualize.js with the selected session ID
- Generates a Mermaid sequence diagram showing the conversation flow
When a session ID is provided, it processes directly without prompting.
Interactive Visualization (Copilot Selects Session)
The skill automatically uses ask_questions when no session is provided:
# Copilot will ask which session to visualize using ask_questions
visualize
Direct Visualization (Specify Session ID)
Run from the .copilot-conversation directory:
cd .copilot-conversation
# Process specific session → conversations/ (level 1)
node ./scripts/visualize.js --session <id>
# Process specific session at level 2 (with tools)
node ./scripts/visualize.js --session <id> --level 2
# List all available sessions
node ./scripts/visualize.js --list
Delete a Conversation
Copilot will use ask_questions to select which session to delete when no session ID is provided:
# Copilot will ask which session to delete using ask_questions
delete
Direct deletion options (run from .copilot-conversation):
cd .copilot-conversation
# Delete specific session
node ./scripts/visualize.js --delete --session <id>
# Delete all sessions
node ./scripts/visualize.js --delete --session all
# Show available sessions for deletion
node ./scripts/visualize.js --delete
Example output when listing available conversations:
Available conversations:
[1] 3704a7c6-553c-461b-a217-c4fb1a779ba7
"Rename .copilot-metadata..."
[2] 3e9cac0d-f20b-4a3b-9804-ca2c2a7bf7fc
"Add dotnet webapit template..."
[3] 51e4aa23-8eb1-410a-9daf-d7ff9223ddda
"Single commit in git..."
What It Does
Visualization:
- Reads
history-{sessionId}.json,tools-{sessionId}.json, andagents-{name}-{sessionId}.jsonfrom.copilot-conversation/data/ - Merges all events chronologically
- Generates a Mermaid sequence diagram showing:
- User → GH Copilot: conversation prompts
- GH Copilot → Tool Use: tool calls and responses
- GH Copilot → Sub-Agent: sub-agent lifecycle
- Writes
conv-{sessionId}.mdto.copilot-conversation/conversations/
Deletion:
- Removes all session files:
history-{id}.json,tools-{id}.json,debug-{id}.log,conv-{id}.json,conv-{id}.md, and anyagents-*-{id}.jsonfiles - When no session ID is provided, Copilot uses ask_questions to help you select which session to delete
- Supports deleting individual sessions or all sessions at once
When To Use
Visualization:
- Manually regenerate a diagram after viewing or editing session data
- Visualize older sessions that weren't auto-generated
- The
sessionEndhook runs this automatically — use this skill if you need to re-run it
Deletion:
- Clean up old or unwanted conversation sessions and their associated files
- Remove test conversations to keep the conversation history clean
- Delete all sessions at once to start fresh
Output Format
The generated .copilot-conversation/conversations/conv-{sessionId}.md contains:
- Session metadata (start/end time, status)
- Mermaid sequence diagram
- Tool execution metrics table
More from alexander-kastil/agentic-sw-engineering
net-cli
Master .NET CLI commands for project management. Use when building, testing, running projects, managing NuGet packages, formatting code, configuring solutions, using hot reload with watch mode, or troubleshooting build issues. Covers dotnet build, dotnet test, dotnet run, dotnet format, package management, and solution organization with proper SDK setup.
1create-wi
Automate creation of Azure DevOps workload identity federation service connections with deployment metadata from deploy.json. Use when users need to create or delete Azure service connections with workload identity federation for secure, passwordless authentication.
1angular-http
Implement HTTP data fetching in Angular v20+ using resource(), httpResource(), and HttpClient. Use for API calls, data loading with signals, request/response handling, and interceptors. Triggers on data fetching, API integration, loading states, error handling, or converting Observable-based HTTP to signal-based patterns.
1linkedin-article
Write long-form LinkedIn articles that establish deep thought leadership and drive sustained engagement. Use when creating in-depth content pieces, publishing detailed frameworks, sharing research-backed insights, building authority through comprehensive storytelling, documenting industry trends, or creating evergreen content that drives organic traffic. Covers article structure, depth strategies, SEO optimization, formatting for readability, distribution tactics, and measuring article impact.
1copilot-sdk
Build agentic applications with GitHub Copilot SDK. Use when embedding AI agents in apps, creating custom tools, implementing streaming responses, managing sessions, connecting to MCP servers, or creating custom agents. Triggers on Copilot SDK, GitHub SDK, agentic app, embed Copilot, programmable agent, MCP server, custom agent.
1social-content
Expert social media strategist for content creation and audience building. Use when creating social content strategies, developing content calendars, writing engaging posts, repurposing content across platforms, analyzing social metrics, building personal and company brands, or optimizing engagement. Covers LinkedIn, Twitter/X, Instagram, TikTok, and Facebook with platform-specific strategies, hook formulas, and content pillars framework.
1