Visualize
Turn any idea, data, or content into a stunning single-file HTML visualization.
Critical Requirements
Non-negotiable. Each visualization must include every one of these β always start from references/skeleton.md.
CSS Custom Properties
Exact names required: --bg, --surface, --surface-hover, --border, --text, --text-secondary, --accent, --accent-secondary, --positive, --negative, --warning.
Utility Menu
.viz-menu with toggle + dropdown: download PNG (downloadImage()), print (window.print()), and the html-to-image CDN script.
Theme Classes
Define both .theme-light and .theme-dark in the stylesheet β class-based only, never @media prefers-color-scheme.
Semantic HTML
<main id="main-content">, multiple <section> elements, and a skip-to-content link.
Chart.js (charts only)
CDN before </head>, Chart.defaults.animation = false; immediately after, ChartManager pattern preferred.
Responsive Design
No horizontal overflow at 375px. Font hierarchy: h1 β₯ 3rem, h2 β₯ 2rem, h3 β₯ 1.5rem, body = 1rem.
Print & Accessibility
@media print, @media (prefers-reduced-motion: reduce), and aria-labels on all interactive elements and charts.
Entrance Animations
.animate classes or data-reveal β evaluation detects and requires animation presence.
JavaScript
cycleTheme(), toggleMenu(), and all top-level vars use var (never let/const β avoids TDZ errors with CDN libs).
Core Principles
Six guardrails that keep every output professional, portable, and content-first.
Single-file HTML
One .html file, inline CSS/JS, opens anywhere, works offline.
Light-theme optimized
Modern designs prioritize light mode. Dark available via toggle.
Beautiful by default
First output looks professional with zero iteration.
Content-first
Visualization serves the message. Never sacrifice clarity for aesthetics.
Responsive
Works on desktop, tablet, mobile unless explicitly fixed-dimension.
Visual restraint
No floating gradient orbs, rainbow borders, or ornamental animations.
Visualization Types
Choose the right format. When content arrives without a specified format: analyze β recommend 1β2 formats β wait for confirmation.
Output Rules
Always start from the skeleton β never write HTML from scratch. Write exactly one .html file.
- File input
/visualize /path/abc.mdβ same directory, same basename,.htmlextension. - No inputSave to
~/Downloads/with a descriptive kebab-case name. - User pathA user-specified output path is always honored.
- GraphicsSVG for icons and simple graphics β never external image URLs unless the user provides them.
Design System
Inter font mandatory Β· class-based theming only Β· minimum CSS variables below.
Minimum CSS variables
The core palette every visualization defines, available in both themes.
Auto-open & return
After writing the file, always do both:
- 1Auto-open:
wslviewΒ·xdg-openΒ·openthe.htmlfile. - 2Return URL: include
file://<absolute-path>in the response.
Context Awareness
This skill runs mid-conversation. Use all available context β conversation history, URLs (crawl + extract), pasted data (CSV/JSON β charts), code/architecture (β system diagrams). Always use real content β never placeholder data.
Process
Five steps from intent to verified output.
Understand
Clarify message, audience, and format. If format is unclear, run Auto-Recommend.
Start from skeleton
Open references/skeleton.md. Never start blank.
Structure
Outline the sections before filling the skeleton.
Build
Add content, charts, and styles. All colors as CSS variables.
Verify
Run references/checklist.md before outputting.