Analyze the architecture of: **$ARGUMENTS**
Analyze codebase architecture and create interactive visualizations. Generates diagrams, data flows, and component relationships with clickable HTML dashboards for deep code understanding.
/plugin marketplace add agneym/agneym-claude-marketplace/plugin install explore-with-illustrations@agneym-claude-marketplaceAnalyze the architecture of: $ARGUMENTS
Before starting the analysis, create a git submodule for storing all visualization outputs:
visualizations/ in the user's repository rootExplore the codebase area using Glob and Read to understand:
Explain the architecture concisely:
Visualize - You have complete freedom to choose the best visualization approach:
CRITICAL - Image Handling Rule:
visualizations/ submoduleNEVER be vague in image prompts. The image model cannot see the codebase.
You have complete freedom to create any type of interactive visualization. Consider:
JavaScript Libraries (load via CDN):
Visualization Types:
File Structure:
visualizations/index.html as the main entry pointBest Practices:
Choose the appropriate template based on what you discovered:
"Technical architecture diagram: [COMPONENT_1] at top center, [COMPONENT_2] on left middle, [COMPONENT_3] on right middle.
Arrow from [COMPONENT_1] to [COMPONENT_2] labeled '[HTTP_METHOD] [PATH] [PURPOSE]'.
Arrow from [COMPONENT_2] to [COMPONENT_3] labeled '[PROTOCOL] [DATA_TYPE]'.
[Repeat for ALL connections with explicit labels].
Clean labeled boxes, directional arrows, white background."
"Data flow diagram: Step 1: [ENTITY_A] at left. Step 2: Arrow to [ENTITY_B] labeled '[METHOD] [PATH] with [DATA]'.
Step 3: Arrow back labeled '[STATUS] [RESPONSE_TYPE]'. [Continue for all steps].
Number each step, color-code: [TYPE_1] in blue, [TYPE_2] in green. Technical style, 16:9."
"UML class diagram: [CLASS_1] box at top with attributes '[ATTRS]' and methods '[METHODS]'.
[CLASS_2] box at bottom with '[ATTRS/METHODS]'.
[CLASS_1] to [CLASS_2]: [RELATIONSHIP] shown with [ARROW_TYPE], labeled '1 to N'.
[Repeat for all relationships]. Clean UML style."
"Flowchart for [FUNCTION]: Start. Step 1: '[ACTION]' in blue rectangle.
Step 2: Diamond '[CONDITION]' with YES arrow to [NEXT] and NO arrow to [ALT].
[Continue all steps]. Errors in red rounded boxes, success in green. Label all arrows."
"Database schema: [TABLE_1] with columns '[COL] [TYPE] [CONSTRAINTS]'.
[TABLE_2] with '[COLUMNS]'. Foreign key: [TABLE_2].[FK] → [TABLE_1].[PK]
shown with line labeled '1 to N'. [Repeat for all tables]. Show PK icons."
"REST API for [SERVICE]: Endpoint 1: [METHOD] [PATH] with body {[FIELDS]} returns {[RESPONSE]} [STATUS].
[Repeat for all endpoints]. Color-code: GET blue, POST green, PUT yellow, DELETE red.
Show full JSON examples."
Your goal: Create the best visualization for understanding, not just documentation.
Consider creative formats when appropriate:
Example creative prompt:
"Comic strip showing JWT auth: Panel 1: User (detective) at API Gateway (security desk). Panel 2: Gateway calls Auth Service (background check). Panel 3: Auth returns golden badge (JWT). Panel 4: User shows badge to Resource Server (VIP room). Cartoon style."
Option 1: HTML + Interactive JavaScript
visualizations/index.html with your interactive visualizationOption 2: Generated Images (via gemini-imagen)
scripts/generate_image.py "YOUR_EXPLICIT_PROMPT" visualizations/architecture-diagram.png --size 4K --aspect 16:9visualizations/ submodulevisualizations/index.html that displays the imagescomponent-relationships.png, data-flow.png, etc.Option 3: Hybrid Approach
visualizations/)After creating the visualization, start a local server:
python -m http.server --directory visualizations/
Then open http://localhost:8000 in a browser to view the visualization.