SKILL.md  Β·  v0.3.2  Β·  MIT

Visualize

Turn any idea, data, or content into a stunning single-file HTML visualization.

Author careerhackeralex Category document-creation Tags visualization Β· html Β· slides Β· dashboard Β· infographic
01

Critical Requirements

Non-negotiable. Each visualization must include every one of these β€” always start from references/skeleton.md.

⚠️
Evaluation failure guaranteed without these elements.

Copy skeleton β†’ replace β€œYOUR CONTENT HERE” β†’ save file. Never write HTML from scratch.

01

CSS Custom Properties

Exact names required: --bg, --surface, --surface-hover, --border, --text, --text-secondary, --accent, --accent-secondary, --positive, --negative, --warning.

02

Utility Menu

.viz-menu with toggle + dropdown: download PNG (downloadImage()), print (window.print()), and the html-to-image CDN script.

03

Theme Classes

Define both .theme-light and .theme-dark in the stylesheet β€” class-based only, never @media prefers-color-scheme.

Evaluation Critical
04

Semantic HTML

<main id="main-content">, multiple <section> elements, and a skip-to-content link.

05

Chart.js (charts only)

CDN before </head>, Chart.defaults.animation = false; immediately after, ChartManager pattern preferred.

Evaluation Critical
06

Responsive Design

No horizontal overflow at 375px. Font hierarchy: h1 β‰₯ 3rem, h2 β‰₯ 2rem, h3 β‰₯ 1.5rem, body = 1rem.

07

Print & Accessibility

@media print, @media (prefers-reduced-motion: reduce), and aria-labels on all interactive elements and charts.

08

Entrance Animations

.animate classes or data-reveal β€” evaluation detects and requires animation presence.

09

JavaScript

cycleTheme(), toggleMenu(), and all top-level vars use var (never let/const β€” avoids TDZ errors with CDN libs).

02

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.

03

Visualization Types

Choose the right format. When content arrives without a specified format: analyze β†’ recommend 1–2 formats β†’ wait for confirmation.

Slide deck Presentation Infographic Dashboard Flowchart Diagram Timeline Comparison table Data visualization Landing page One-pager Org chart Mind map Process flow Kanban board Report summary Carousel Poster
04

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, .html extension.
  • 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.
05

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.

--bg --surface --text --accent --accent-secondary --positive --negative --warning

Auto-open & return

After writing the file, always do both:

  • 1Auto-open: wslview Β· xdg-open Β· open the .html file.
  • 2Return URL: include file://<absolute-path> in the response.
06

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.

07

Process

Five steps from intent to verified output.

1

Understand

Clarify message, audience, and format. If format is unclear, run Auto-Recommend.

2

Start from skeleton

Open references/skeleton.md. Never start blank.

3

Structure

Outline the sections before filling the skeleton.

4

Build

Add content, charts, and styles. All colors as CSS variables.

5

Verify

Run references/checklist.md before outputting.