Vizboard
Goal
Generate self-contained HTML pages for visual explanations of architectures, plans, diffs, data tables, and KPI dashboards.
Hard Rules
- Never use ASCII-art when this skill is active.
- Tables with
4+ rowsor3+ columnsmust always be rendered as HTML (proactively). - HTML must be fully self-contained (inline CSS/JS, no external assets).
- Always deliver the generated file to the user after generation.
Workflow
- Determine visualization type: architecture, flowchart, sequence, table, dashboard.
- Pick a template:
templates/architecture.htmltemplates/mermaid-flowchart.htmltemplates/data-table.html
- For large/complex diagrams use Mermaid + themeVariables.
- For tabular data use semantic
<table>. - Apply styling via CSS variables (intentional palette, not defaults).
- Verify responsive layout and no overflow.
Rendering Guidance
- Architecture (text-heavy): CSS grid + cards.
- Topology/flow/state/sequence: Mermaid.
- Data tables/audits/comparisons: HTML table with sticky header.
- KPI/dashboard: grid + optional chart libs from
references/libraries.md.
Output & Delivery
Save to:
~/.agent/diagrams/<descriptive-name>.html
After generation, ALWAYS deliver the file to the user:
- Copy to workspace:
cp ~/.agent/diagrams/<file>.html ./<file>.html - Send:
message(action="send", filePath="./<file>.html", message="<brief description of the dashboard>") - Cleanup:
rm ./<file>.html - Reply
NO_REPLYafter sending
Do NOT skip step 2 — the user expects to receive the file in chat, not just a file path. Do NOT skip step 3 — files in workspace accumulate.
Quality Gate
- Clear visual hierarchy.
- No clipped text or containers.
- Light/dark mode support.
- Mermaid blocks are readable; large diagrams have zoom/pan.
- Content reflects the user's actual request — no filler or boilerplate.
References
references/css-patterns.md— layout, overflow, zoom controls.references/libraries.md— Mermaid/Chart.js/anime.js usage.references/responsive-nav.md— navigation for long pages.prompts/*.md— ready-made scenarios (diff-review, plan-review, fact-check, project-recap).