html-artifacts
Skill by langchain-ai
Guides an AI assistant to write self-contained HTML for plan artifacts, dashboard iframes and Slack attachments. It is for agents that publish HTML through publish_artifact, output_iframe or slack_attach_html.
Install html-artifacts
Built from the published package, never by AI.
git clone --depth 1 https://github.com/langchain-ai/open-swe /tmp/open-swe && mkdir -p ~/.claude/skills && cp -r /tmp/open-swe/openswe/bundled_skills/html-artifacts ~/.claude/skills/html-artifactsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/langchain-ai/open-swe /tmp/open-swe && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/open-swe/openswe/bundled_skills/html-artifacts ~/.gemini/antigravity-cli/skills/html-artifactsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The html-artifacts skill gives an AI assistant guidance for writing the HTML behind three publishing tools: publish_artifact, output_iframe, and slack_attach_html. It covers page structure, a short design plan with color and type choices, the available runtime, and theming. When content omits the html, head and body tags, the tool wraps it in a skeleton with a minimal CSS reset. A Slack attachment needs the full skeleton.
The skill asks for light and dark palettes that follow the viewer's system preference or the dashboard's data-theme attribute. It also sets craft rules for semantic markup, spacing, focus states and reduced motion, and warns against generic AI design defaults. It is meant for agents producing HTML pages that users will read, keep or share inside those tools.
Written from the project's SKILL.md and checked against it.
What it can do
- Design planSketches a color, type and layout plan grounded in the subject before writing HTML.
- ThemingProvides light and dark palettes that follow the system preference or the dashboard theme.
- Runtime rulesExplains which browser features run and that Google Fonts is the only external resource allowed.
- Craft guidanceCovers semantic markup, spacing, horizontal overflow, focus visibility and reduced motion.
- Information designGuides dashboards to show summaries first and encode state in form as well as number.
- Design defaults to avoidLists generic AI design patterns to avoid unless the user asks for one.
Try asking
- Write a plan artifact for our Q3 migration and publish it with publish_artifact
- Build a dashboard iframe showing build status with output_iframe
- Create a standalone HTML summary and attach it to Slack with slack_attach_html
Good to know
- Assumes no network at runtime, so no CDN scripts, fetch or XHR.
- Google Fonts stylesheets are the only external resource permitted.
- localStorage, sessionStorage and cookies throw on access in viewer frames.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: openswe/bundled_skills/html-artifacts/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md6 KB
Alternatives to html-artifacts
All alternatives →PaperBanana generates publication-quality academic diagrams from a paper's methodology text and figure caption. It is aimed at researchers preparing figures for venues such as NeurIPS, ICML, and ACL.
Creates a monochrome technical wireframe design system for dark diagnostic interfaces. It covers layout, typography, info labels, widgets and an exploded wireframe centerpiece. It is for designers and developers building teardown, systems dashboard or specification-style screens.
Guides an AI assistant through embedding interactive Spline.design 3D scenes in web projects. It covers vanilla, React, Next.js, Vue and iframe setups, for developers adding 3D to websites.
Code Slice Hero is a HyperFrames headline block. A tiled surface flips cell by cell to reveal a second headline behind the first, at 1920×1080 and 8 seconds.
Generates patent-office-compliant figures and converts drawings through the PatentFig AI API. Built for patent filers who need USPTO or EPO line art, CAD-ready vectors, or filing-ready TIFF, PDF, or PNG files.
Creates a framed dark technical design system for AI assistants, using border-gradient shells, asymmetrical grid panels, and mono labels. Suited to premium, instrument-like interfaces that need visible boundaries. Published by MengTo.
Compare with paperbanana, technical-wireframe-info-layout or spline-3d-integration
html-artifacts: common questions
Which tools does this skill cover?
It covers publish_artifact, output_iframe and slack_attach_html, which all publish a self-contained HTML artifact under one contract.
Can artifacts load external scripts or data?
No. The source says Google Fonts stylesheets are the only permitted external resource and to assume no network at runtime.
Why does localStorage fail in the viewer?
The viewer frames have an opaque origin, so localStorage, sessionStorage and cookies throw on access. The source advises wrapping any use in try/catch.
How do I install html-artifacts?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is html-artifacts free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is html-artifacts safe to use?
It scores 86 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to html-artifacts?
Similar skills: paperbanana, technical-wireframe-info-layout, spline-3d-integration, code-slice-hero.
