build-html-dashboard

build-html-dashboard is a skill for Claude Code, Codex from mindsdb/anton. It costs 195 tokens per session (8,066 once invoked), scanned A, original, MIT.

A set of rules for building self-contained HTML dashboards, charts, interactive reports, and browser visualizations. It specifies how to structure the page, use Apache ECharts, and present insights.

In plain words
What is it for?
Creating a single HTML file containing the data, styles, and JavaScript for dashboards, charts, plots, and interactive reports.
Why use it?
It gives the agent a consistent output format and design checklist for data visualizations.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Creating a single HTML file containing the data, styles, and JavaScript for dashboards, charts, plots, and interactive reports.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mindsdb/anton/build-html-dashboard
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add mindsdb/anton --skill build-html-dashboard
Clone the repo
git clone --depth 1 https://github.com/mindsdb/anton

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for build-html-dashboard

README.md
[![agentmods](https://agentmods.dev/badge/skills/mindsdb/anton/build-html-dashboard/github.svg)](https://agentmods.dev/skills/mindsdb/anton/build-html-dashboard)
Your own site
<a href="https://agentmods.dev/skills/mindsdb/anton/build-html-dashboard"><img src="https://agentmods.dev/badge/skills/mindsdb/anton/build-html-dashboard/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for build-html-dashboard

Your own site · 80×15
<a href="https://agentmods.dev/skills/mindsdb/anton/build-html-dashboard"><img src="https://agentmods.dev/badge/skills/mindsdb/anton/build-html-dashboard.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 195 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 8,066 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Anti-Refusal · line 106
    Skill instructs the agent to omit warnings, disclaimers, or ethical commentary. Stripping safety caveats hides risk from the user and is a common jailbreak preamble.
    Fix: Remove instructions that suppress warnings, disclaimers, or ethical commentary. Let the agent surface safety-relevant caveats to the user.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00195 $0.08066
Opus 5.5 $0.00078 $0.03226
Sonnet 5.5 $0.00039 $0.01613
Haiku 4.5 $0.00019 $0.00807

Measured today against content hash 53ac0849f5db, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

build-html-dashboard scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

anton/core/memory/builtin_skills/build-html-dashboard/SKILL.md · 207 lines

How it starts

The opening of the file, as written. The whole thing — 207 lines — stays where its author put it; the contents beside it link to each section on GitHub.

LIST THE INSIGHTS (terse — one line each, not an essay): Before coding, list the insights you want to present/convey/highlight as 1 - <chart/infographic/etc>: <insight it conveys and why it matters>.. Example: 1 - Line chart of weekly signups: shows growth inflection after the March launch, flags whether momentum is sustained. This is a checklist, not a brief — no narrative prose, no design discussion.

For an Earth map or globe, follow the always-available MAPS AND GLOBES guidance: use real coastlines and country geometry, never invented or hand-transcribed outlines, coordinate arrays, decorative blobs or a blank sphere. SVG paths generated from authentic geographic data are allowed, as is authentic user-supplied GeoJSON; non-geographic maps and explicitly requested schematics remain valid. Load the atlas in the page's JavaScript, not in Python or a scratchpad. During repairs, preserve the real geography and requested views and interactions while fixing the failure; this also applies when no skill recall is needed. Keep library names and loading details out of the user-facing brief.

BUILD THE DASHBOARD — use multiple scratchpad cells, but produce ONE single self-contained HTML file:

Before the first write, call create_artifact(type="html-app", name=..., description=..., primary="index.html") (with display="inline" for a chart shown inside the chat reply, or display="widget" for a page that collects the user's input there: see INLINE AND WIDGET at the end) and use the returned <artifact_path> for every file you write. All paths below referring to "the output directory" mean <artifact_path>. The final dashboard MUST be a single .html file with all data, CSS, JS and images inlined, with no exception: the web app preview shows only the page itself, so a separate file next to it (dashboard_data.js, logo.png) does not load there, whatever its size. Build every page this way so it renders on every deployment. Keep the whole page under 8 MB; a larger page cannot be checked in a browser.

REROUND DISCIPLINE (critical — most "round-cap exhaustion" failures we've seen on real dashboards come from drifting off one or more of these):

  1. ONE scratchpad, ONE name. Pick a name on the first cell (e.g. dash) and reuse it for the entire build. Switching names (build_pres → write_html → pres1 …) creates separate isolated environments — variables in one don't exist in another — and burns rounds on recovery.
  2. WRITE TO DISK INCREMENTALLY. Open the output .html once in 'w' mode, then open(path, 'a') to append head → body skeleton → each chart section → nav/JS → closing tags. Each cell appends a small chunk you can sanity-check. Do NOT build a single 20KB+ HTML string in memory and write it at the end.
  3. CAP STRING SIZE PER CELL at ~5KB. Large-string scratchpad calls are the single biggest cause of silent failures (the tool occasionally drops the code payload on oversized inputs and the cell comes back with an empty-code error, which still counts against the round cap). If a section is too big, split it.
  4. NEVER re-emit the full HTML mid-build. Append deltas, don't re-print the world. Assembly is a one-line concat at the end, not a re-render of everything you've written so far.
  5. KEEP READS SMALL. To verify what landed, os.path.getsize(path) or the read_text_file tool with start_line=-20 — never read a multi-KB HTML whole.

HOST CONTRACT (critical — the checks generate_artifact runs on every page it produces: 1–7 fail the step (<html lang> in 1 is not checked), 8–9 are warnings, 10 runs in a headless browser. A hand-built page gets the browser check too: after every scratchpad cell that changes an artifact's .html file, the host loads the page in a browser where the deployment can and adds what it found under [artifact lint] in the cell's result, with a screenshot of the page when the check sent one. When it could not check the page, that line says the page was not checked in a browser and why: then tell the user the page is unverified in a browser. Items 1–9 are not checked for a hand-built page, so verify them yourself before you finish):

  1. A complete HTML document with an explicit <body>...</body>, and <html lang> set to the language the user writes in, unless they ask for another language for the page (UI text follows it too).
  2. <meta name="viewport" content="width=device-width, initial-scale=1.0"> in <head>.
  3. No absolute URL in any fetch() call. A map loads its atlas, https://cdn.jsdelivr.net/npm/[email protected]/countries-110m.json, with d3.json(...) (item 9), not with fetch(). No root-relative path either, in src, href, fetch() or new EventSource(): a value that starts with a single / (/logo.png, /api/export) breaks in the app preview and once published, because the page is served under a path prefix that a path from the root drops. Use a relative path for a link to another page (details.html); in a fullstack app, call the backend through the api() helper that build-fullstack-backend defines. https://, //, data:, blob:, # and mailto: values are fine, so href/src links to external sources stay allowed. Moving the same root-relative path into a JS string does not fix it.
  4. Every opened <script> block is closed with </script> — an unclosed one silently disables all JS.
  5. The global name window.__antonCommentsLayer is never used; the host app reserves it for its comment layer.
  6. No universal * { ... !important } rule (a reduced-motion media query is the one accepted exception).
  7. Every z-index is 1000 or below — the host app's own overlays sit above the page.
  8. Significant block containers (div, section, table, main, article) carry stable id attributes — the host app attaches comments to them.
  9. The web app preview runs the page in a sandboxed frame under a content security policy that blocks what it does not allow. Build to that policy so the page renders on every deployment. Scripts load only from https://cdn.jsdelivr.net/npm/<package>@<exact version>/...: pin an exact version, since a floating @4, @5 or @latest cannot be checked. Styles are inline only (<style> or style=): no external stylesheet, so no Leaflet CSS and no web fonts. No external images or map tiles: embed an image as a data: URI. No eval/new Function and no web workers. The default external resources are the two CDN scripts named under Visual design (Tailwind, ECharts); another library only when the user asked for it, from jsDelivr at an exact version. For a map or a globe, use a tested recipe: [email protected] with [email protected] and [email protected], loading countries-110m.json with d3.json (item 3) and turning it into GeoJSON with topojson.feature(world, world.objects.countries). Draw that GeoJSON with d3 into an <svg>; or with ECharts 5.5.1 through echarts.registerMap(name, geoJson) and a map series; or on a globe with [email protected] with polygonsData. Also tested: [email protected] as an ES module, [email protected]. For motion, use CSS transitions and keyframes, the Web Animations API (element.animate()), or the animation ECharts and d3 already have; load no animation library. Leaflet, raster tiles, MapLibre (it needs a worker) and echarts-gl (it needs eval) break that policy, so they do not render in the web app preview.
  10. Loaded the way the app preview loads it, at a desktop and a phone width, the page logs no console error or uncaught exception, breaks no rule of the preview's content security policy, asks for no separate file, leaves no chart, map or canvas blank, leaves no loading message showing over a view that has drawn, is no wider than the screen, and renders visible content without user interaction. Start every view through this one helper: each chart, map, globe or other view that runs setup code, on load or on its tab's first visit. Put the helper alone in the page's first inline <script>: const viewSetups = new Map(); function defineView(name, setup) { viewSetups.set(name, viewSetups.has(name) ? () => { throw new Error('two scripts defined this view'); } : setup); } function runView(name, el) { const fail = (err) => { const why = err && err.message ? err.message : String(err); if (el) { el.setAttribute('data-view-failed', name); el.textContent = name + ' could not load.'; } console.error(name + ' failed: ' + why); if (typeof reportError === 'function') reportError(new Error(name + ': ' + why)); }; const setup = viewSetups.get(name); if (typeof setup !== 'function') { fail(new Error('no script defined this view')); return; } try { const done = setup(el); if (done && typeof done.then === 'function') done.catch(fail); } catch (err) { fail(err); } }. Give each view an inline <script> of its own that holds only its setup, registered under the view's title as the page shows it. Give each view a title no other view on the page uses: two scripts that register one title fail both views. The setup takes the view's element and may be async: <script>defineView('Shipment map', (el) => { /* draw the map */ });</script>. Declare nothing else at a view script's top level: every function and constant the view uses goes inside its setup. A page's scripts share one global scope, so two views' top-level function render silently swap, and one view draws the other's chart with no error. Shared code, such as the data and formatters, goes in scripts before the views'. The page's last script starts each view by its title once the page has parsed, on load or on its tab's first visit: addEventListener('DOMContentLoaded', () => { runView('Shipment map', document.getElementById('world-map')); });. A <script type="module"> runs after every classic script, so a view it registers exists only by then. Keep the functions the page's HTML calls, such as a tab's showPage, outside that listener, where an onclick attribute finds them. The browser parses each <script> on its own, so a syntax error in one view's script stops only that view: it shows a plain-text message in its place, and every other view still draws. A view whose setup throws or whose promise rejects fails alone the same way. Never put two views' code in one script, and never pass a setup function to runView. Await or return every promise the setup starts, such as the atlas's d3.json(...). Don't end it with a .catch of your own: the helper must see the failure to name and mark the view. Keep the helper as written: its console.error and reportError name the failed view to the check and to the preview's error list, and data-view-failed lets the check find the failed view whatever its message says. A view's own try/catch that only writes a message hides the error from the check. Log with console.error only a view that failed to draw. An expected failure stays silent or uses console.warn: the storage helper in item 11 catches a throw on every load in the preview frame, and a console.error there fails the check. Not checked by the pipeline, but the page breaks inside the frame without them:
  11. BROWSER STORAGE (critical): localStorage / sessionStorage / indexedDB / document.cookie may be unavailable — the in-app preview runs the page in a sandboxed frame. Never touch them directly during top-level initialisation: a throw there aborts the script before any listener is bound, and the page renders with every control dead. Go through one guarded helper with an in-memory fallback.
  12. LINKS: the page runs inside a frame, in the app preview and on the published link alike. target="_top" and target="_parent" do not work; give a link to another artifact or an external site target="_blank", or it opens inside the frame.

Read the full file on GitHub · 207 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed · +59 lines · +52 tokens per session 53ac0849f5db
  2. 9d ago Changed bc4ddb972f8e
  3. 27d ago Changed · +5 lines 0b32789ccc77
  4. 1mo ago Changed · +2 lines · +22 tokens per session 7fe9d1f47d5b
  5. 1mo ago Changed · -9 lines 147a9bb0c5ff
  6. 1mo ago Changed · +2 lines 3e6d9ee65702
  7. 1mo ago Changed · +1 lines · +25 tokens per session fd05c242f36a
  8. 2mo ago Changed · +24 lines · +6 tokens per session 147f13bf5cea
  9. 2mo ago Changed · +31 lines 020cdcdae0a5
  10. 3mo ago First seen · 92 lines · 90 tokens per session scan A e148b77aab88

Subscribe to this mod's changes

build-html-dashboard is a skill published in the GitHub repository mindsdb/anton (753 stars, last pushed today), licensed MIT. It adds 195 tokens to every session and 8,066 once invoked, about $0.0008 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

build-html-dashboard compared with skills from other repositories

build-html-dashboard next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
build-html-dashboardmindsdb/antonSkill753todayMITA195Claude Code, Codex
knowledge-basewonderwhy-er/DesktopCommanderMCPSkill10ktodayMITA112Claude Code
dd-code-generationDataDog/pupSkill1.0ktodayApache-2.0A16Claude Code
build-teaql-appteaql/teaql-agent-kitSkill2.8k20d agoMITA112Codex
taiyi-ui-designDong90/oh-my-taiyiforgeSkill85514d agoMITA35Claude Code, Codex
output-standardsWrongStack/WrongStackSkill444todayMITA77Claude Code, Codex
web-platform-baselineWrongStack/WrongStackSkill444todayMITA110Claude Code, Codex