--- name: html-diagram-creator version: 0.1.0 description: Use PROACTIVELY when user needs publication-quality architecture diagrams for research papers, documentation, or presentations. Triggers on "architecture diagram", "pipeline diagram", "figure for paper", "academic diagram", "benchmark visualization", or "publication-ready figure". Generates HTML diagrams following academic paper conventions (HELM, BetterBench, EleutherAI) with proper color coding, rounded corners, figure numbering, and export to PNG. Not for ASCII diagrams or flowcharts. --- # HTML Diagram Creator ## Overview Generates **publication-quality architecture diagrams** as HTML files for research papers, documentation, and presentations. Follows academic conventions from HELM, BetterBench, and EleutherAI papers. **Key Capabilities**: - Academic styling (rounded corners, shadows, figure numbering) - Color-coded components (Data/Execution/Analysis stages) - Browser-based with PNG export via Playwright - Stage grouping with labels and legends ## When to Use This Skill **Trigger Phrases**: - "create an architecture diagram" - "make a pipeline diagram for my paper" - "publication-ready figure" - "academic diagram" - "benchmark visualization" **Use PROACTIVELY when**: - User is writing research documentation or papers - User mentions "publication", "paper", "academic" - User requests "PNG diagram" or "exportable diagram" **Do NOT use when**: - User wants ASCII diagrams (use ascii-diagram-creator) - User needs interactive flowcharts (use Mermaid) - User wants UML diagrams ## Quick Reference ### Color Palette | Stage | Fill | Border | Usage | |-------|------|--------|-------| | Data Preparation | `#E3F2FD` | `#1976D2` | Input processing, loaders | | Execution | `#E8F5E9` | `#388E3C` | API calls, inference | | Analysis | `#FFF3E0` | `#F57C00` | Evaluation, scoring | | Terminals | `#FF6B6B` | `#FF6B6B` | Input/Output markers | ### Visual Standards | Element | Implementation | |---------|----------------| | Corners | `border-radius: 6px` | | Shadows | `box-shadow: 0 2px 4px rgba(0,0,0,0.08)` | | Arrows | Dark slate `#546E7A` with triangular heads | | Figure label | "Figure N" format above title | ## Workflow | Phase | Description | Details | |-------|-------------|---------| | 1 | Requirements Gathering | Identify components, flow type, stage categories | | 2 | HTML Generation | Create standalone HTML with academic CSS | | 3 | Component Layout | Structure with flexbox alignment | | 4 | Export | PNG via Playwright or screenshot | ### Phase 1: Requirements 1. **Identify components**: What boxes/stages need to be shown? 2. **Determine flow**: Linear pipeline? Branching? Multi-path? 3. **Categorize stages**: Data (blue), Execution (green), Analysis (orange) ### Phase 2: HTML Structure ```html
[Caption]