/html-report:html-reportfrom html-report
Build a self-contained interactive HTML report from analysis results: charts, color grids, interactive tables, number cards, all inline in one file that opens by double-click with no network, on a desktop or a phone. Handles the visual layer only: you bring the numbers and the message, this decides the form, the theme and the markup. Use when turning a finished analysis into a deliverable someone else will open, or when asked for a report, dashboard, detalhamento, painel, one-pager or "manda em HTML". Carries no brand of its own: it derives a theme from a brand color, or lifts one verbatim out of a report it built earlier. Triggers "monta o relatório", "gera o HTML", "quero isso em relatório", "build a report", "make this a dashboard", "põe num HTML pra mandar".
Ships in html-report. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
You are given numbers that are already correct and a message that is already decided. Your job is the artifact: one HTML file that a person opens and understands without you in the room.
This skill does not fetch data, does not run queries and does not decide what is true. If the numbers are not settled yet, stop and settle them first: a beautiful chart of a wrong number is worse than no chart. If publishing is the next step, that is the artifact-publish skill, not this one.
In: the numbers (already aggregated), what the report has to say, who reads it, and which organisation it belongs to, plus, if one exists, an earlier report whose theme should carry over. If you were not told who reads it or whose brand it wears, ask: the theme and the amount of explanation both depend on it.
Out: one .html file with its CSS, JS, fonts, images and data inline. It renders from a file:// double-click and inside a sandboxed iframe, because that is how artifact hosts serve it, and it reads as well on a phone as on a desktop.
The skill ships no brand. Every report has the same layout, type and elements; only the theme block's colors change per client.
Paths are relative to this file. In Claude Code, ${CLAUDE_PLUGIN_ROOT}/skills/html-report/ reaches the same folder.
references/writing.mdreferences/elements.md lists every element with when to use it and when not; assets/catalog.html shows each one live. Sometimes the answer is a number card or a sentence, not a chart. Never a chart because the section looks empty. → references/charts.md for the chart's formassets/skeleton.html, saved in the project's folder as a draft (relatorio.draft.html). It links the shared assets by their bare names (fonts.css, theme-neutral.css, report.css, report.js), which the build finds in this skill; leave those links as they are. → references/structure.mdelements.md lists them. Everything they share is already in report.css and report.js. Nothing the report does not use.<script> already reduced to what the elements read. → references/structure.mdbranding.yml (below); when the file or the client's keys are missing, name the file and the keys and ask, never invent a value, and never print the file. Otherwise take the theme from an earlier report, or derive it from the brand color. Never change a color outside the theme block. → references/themes.mdnode scripts/build.mjs relatorio.draft.html relatorio.html --client <client> (or --theme <file>, or neither for the neutral theme) writes one file with every asset inline. Then node scripts/theme.mjs check relatorio.html.The preferences file is branding.yml in ${XDG_CONFIG_HOME:-$HOME/.config}/claude-skills-preferences/: clients.<client>.theme, or clients.<client>.brand with the optional clients.<client>.ink, clients.<client>.surface and clients.<client>.surface_dark. With only a brand, the build derives the theme and checks it; when a check fails it stops with the failing pairs and the derive command to start from.
<title> is the artifact's name, not the file name. Write what the report answers, with its scope. A report called "report" cannot be found a month later.<h1> states the conclusion when the report argues for one, or names the decision when the report prepares one, and the summary under it gives the answer in one to three paragraphs of at most four lines each, in a 1280px-wide viewport, as does every other <p>. Check each on the rendered page: el.getBoundingClientRect().height <= lines * parseFloat(getComputedStyle(el).lineHeight). A paragraph over four lines splits where its topic changes, or its parallel items become a list.elements.md (#e-colunas): short column titles, the unit symbol in the cell, the scale in the table title, word units above the column title, text left, short fixed values centered, numbers right with the same decimals down the column.token('--c1'), not '#2a78d6'. A theme swap that requires touching chart code is a broken theme. A chart that resolves a token in JavaScript is drawn by a function passed to onTheme(draw), so it repaints when the reader switches mode; a color outside the theme block is a token too.--on-lo or --on-hi by --on-flip, never a fixed white.style="fill:…". The stylesheet's .chart .val, .tick and .lbl rules outrank a fill attribute, so an end label set by attribute renders in ink. This one is silent and it will happen to you.data-tip on the mark, or tooltip.follow for a chart's own hover. A chart that answers only mousemove is a picture on a phone.Load the one you need, when you need it.
| File | What it answers |
|---|---|
references/elements.md | Every element: what it is for, when, when not, its anchor in the catalog, what to copy |
references/structure.md | The draft, the shared assets, the build, the fonts, embedding data, size limits |
references/charts.md | Which form, the shared functions, the SVG patterns, the gotchas that cost a rebuild |
references/themes.md | The token contract, the light and dark modes, the client's colors, extracting, deriving and completing a theme, validating |
references/writing.md | Section order, headline first, explaining terms, the two closing sections |
assets/skeleton.html | The draft to start from |
assets/catalog.html | Every element live, in pt-BR, with its ficha; the source of the markup and calls to copy |
assets/report.css, assets/report.js, assets/fonts.css, assets/theme-neutral.css, assets/fonts/ | The shared assets every draft links and every build inlines |
scripts/build.mjs | Builds a draft into one self-contained file, with the client's theme |
scripts/theme.mjs | Extract, derive, fill and check a theme, both modes, and measure a ramp's --on-flip. Run it; do not eyeball colors. |
dataviz skill carries the method and a validator that also simulates colour-vision deficiency, which theme.mjs deliberately does not.artifact-publish skill. Getting the account wrong produces a link the reader cannot open, and it raises no error.doc-coherence skill.assets/catalog.html (opens in a new tab)assets/fonts.css (opens in a new tab)assets/fonts/instrument-sans/InstrumentSans-Italic.woff2 (opens in a new tab)assets/fonts/instrument-sans/InstrumentSans.woff2 (opens in a new tab)assets/fonts/instrument-sans/OFL.txt (opens in a new tab)assets/fonts/newsreader/Newsreader-Italic.woff2 (opens in a new tab)assets/fonts/newsreader/Newsreader.woff2 (opens in a new tab)assets/fonts/newsreader/OFL.txt (opens in a new tab)assets/fonts/stix-two-math/OFL.txt (opens in a new tab)assets/fonts/stix-two-math/STIXTwoMath.woff2 (opens in a new tab)assets/report.css (opens in a new tab)assets/report.js (opens in a new tab)assets/skeleton.html (opens in a new tab)assets/theme-neutral.css (opens in a new tab)references/charts.md (opens in a new tab)references/elements.md (opens in a new tab)references/structure.md (opens in a new tab)references/themes.md (opens in a new tab)references/writing.md (opens in a new tab)scripts/build.mjs (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub nexaedge/nexaedge-marketplace --plugin html-report