Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Explains writing self-contained HTML artifacts for publish_artifact, output_iframe, and slack_attach_html: design, runtime limits, theming.
27% 18%−9 ptsof test cases passed
Passed 4 of 22 test cases with the skill, and 6 of 22 without it.
This test ran on v1. v3 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
Not used yet
publish_artifact, output_iframe, and slack_attach_html all publish a self-contained HTML artifact, and one contract covers all three.
Write the page content directly.
When you omit <html>, <head>, and <body>, the tool wraps your content in that skeleton with a minimal CSS reset.
Write a <title> yourself — a specific 2–4 word name for this page, not a summary or a category label.
A Slack attachment is opened as a standalone file, so include the full skeleton there.
Sketch a compact plan before writing HTML, then follow it:
Derive every color and type decision in the page from that plan.
Inline CSS and JavaScript, Canvas, WebGL, and inline SVG all run — prefer Canvas or WebGL over hand-authored SVG path data for generative graphics. Google Fonts stylesheets are the only permitted external resource; inline or data-URI every other asset.
Assume no network at runtime: no CDN scripts, fetch, or XHR.
The viewer frames have an opaque origin, so localStorage, sessionStorage, and cookies throw on access — wrap any use in try/catch and render correctly with no stored value.
Default user-facing HTML to the viewer's system light/dark preference using prefers-color-scheme; provide both palettes unless the user explicitly requests a single theme.
Honor an explicit viewer theme supplied by the dashboard over the system preference.
The dashboard stamps data-theme="light" or data-theme="dark" on <html>, so :root[data-theme="dark"] is the authoritative dark layer and must be complete on its own.
:root { /* the full light palette, as tokens */ }
@media (prefers-color-scheme: dark) {
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.