SKILL.md  Β·  v0.3.2  Β·  MIT

Visualize

Create a self-contained HTML file β€” dashboard, infographic, deck. Invoke with /visuals:visualize, β€œvisualize this”, or β€œμ΄κ±° μ‹œκ°ν™”ν•΄μ€˜β€.

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

Critical Requirements

Followed for every visualization β€” the full list lives in references/requirements.md. Always start from references/skeleton.md.

⚠️
Never write this HTML from scratch.

Start from the skeleton, fill its content slot, save one file. Then bash "$_skill/lib/vendor/verify-html.sh" --profile viz <out>.html must exit 0 β€” $_skill is resolved by the guard block atop references/checklist.md ($CLAUDE_PLUGIN_ROOT/skills/visualize, else $HERMES_SKILL_DIR). The human-judgement items in references/checklist.md are checked by hand.

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 .viz-menu-toggle + .viz-menu-dropdown: download PNG (downloadImage()), print (window.print()), and the html-to-image CDN script. Full implementation in references/menu.md.

03

Theme Classes

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

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. See references/chartjs-patterns.md.

06

Responsive Design

No horizontal overflow at 375px. Font hierarchy: h1 β‰₯ 3rem, h2 β‰₯ 2rem, h3 β‰₯ 1.5rem, body = 1rem. See references/sizing-rules.md.

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 β€” patterns in references/animations.md.

09

JavaScript

cycleTheme(), toggleMenu(), and all top-level variables in the generated HTML use var (never let/const β€” avoids TDZ errors with CDN-loaded libraries).

10

Bedrock-Safe Output

One Write call for the whole file, and never echo the generated HTML back into chat. references/bedrock-safe-write.md Β§ Hard Rules owns this rule in full β€” read it before delivering.

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 β€” structural patterns in references/types.md, type-specific rules (Carousel, Slide Deck, Poster, Auto-Recommend, interactivity, layout variation) in references/type-rules.md. 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

Start from references/skeleton.md β€” never write HTML from scratch. Write exactly one .html file.

05

Design System

Inter font mandatory Β· class-based theming only Β· minimum CSS variables below. Full specs in references/design-system.md and references/css-techniques.md.

Minimum CSS variables

SKILL.md's minimum is --bg/--surface/--text/--accent/--border; requirement 01 names the full set, shown in both themes.

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

After writing the file

Always do all three:

  • 1Auto-open: xdg-open (Linux/WSL) Β· open (macOS) the .html file β€” never wslview, it errors on HTML.
  • 2Return URL: include file://<absolute-path> in the response.
  • 3Do not echo the generated HTML into chat β€” summary, URL and open command only. See references/bedrock-safe-write.md.

Status line: [OK] visuals:visualize type=<…> out=<path> Β· on failure [FAIL] visuals:visualize step=<n> detail=<reason>.

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. Run them in order, and stop with [FAIL] on an unresolved ambiguous format or an unfixed verify-html.sh failure.

1

Understand

Message, audience, format. If format is unclear, run Auto-Recommend from references/type-rules.md and wait for confirmation β€” never guess a format.

2

Start from skeleton

Open references/skeleton.md. Never start blank; if it cannot be loaded, stop and emit [FAIL].

3

Structure

Outline the sections before filling the skeleton.

4

Build

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

5

Verify

bash "$_skill/lib/vendor/verify-html.sh" --profile viz <out>.html must exit 0 (resolve $_skill with the guard block atop references/checklist.md), then the human-judgement items in references/checklist.md.

Chart.js patterns β†’ references/chartjs-patterns.md Β· Debugging β†’ references/debugging.md Β· Bedrock-safe delivery β†’ references/bedrock-safe-write.md

08

Related Skills

The boundary is the deliverable, never the topic. This skill owns everything visual that is not one of the two below.

visuals:md-to-scrolldeck

A Markdown file into a vertical scroll-snap deck. Everything else β€” dashboards, infographics, posters, horizontal decks β€” stays here.

visuals:excalidraw-diagram

When the deliverable is an .excalidraw file rather than HTML.

In-chat charts and Artifacts go to the built-in dataviz instead.