html-artifacts

html-artifacts is a skill for Claude Code, Codex from langchain-ai/open-swe. It costs 52 tokens per session (1,243 once invoked), scanned A, original, MIT.

A guide for writing self-contained HTML pages used in plan artifacts, dashboard frames, or Slack attachments.

In plain words
What is it for?
It is for creating HTML content for `save_plan`, `output_iframe`, and `slack_attach_html`.
Why use it?
It explains the required page structure, design planning, styling, and runtime details before you publish HTML.

Skill for Claude CodeCodex ✓ vendor

Written for no agent in particular: nothing here depends on one. Also seen: mentions AGENTS.md.

Good fit It is for creating HTML content for save_plan, output_iframe, and slack_attach_html.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/langchain-ai/open-swe/html-artifacts
About the project

Open SWE is an open-source software factory that gives coding tasks to an asynchronous agent, which investigates repositories, changes code, validates the results, and delivers pull requests. Engineering teams use it to automate code changes, reviews, CI follow-up, and related repository work from dashboards and connected tools.

langchain-ai/open-swe · 11,272 stars · on GitHub · langchain.com

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 langchain-ai/open-swe --skill html-artifacts
Clone the repo
git clone --depth 1 https://github.com/langchain-ai/open-swe

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 html-artifacts

README.md
[![agentmods](https://agentmods.dev/badge/skills/langchain-ai/open-swe/html-artifacts/github.svg)](https://agentmods.dev/skills/langchain-ai/open-swe/html-artifacts)
Your own site
<a href="https://agentmods.dev/skills/langchain-ai/open-swe/html-artifacts"><img src="https://agentmods.dev/badge/skills/langchain-ai/open-swe/html-artifacts/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 html-artifacts

Your own site · 80×15
<a href="https://agentmods.dev/skills/langchain-ai/open-swe/html-artifacts"><img src="https://agentmods.dev/badge/skills/langchain-ai/open-swe/html-artifacts.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,243 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
  • Snyk pass 7 Sept 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
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.00052 $0.01243
Opus 5.5 $0.00021 $0.00497
Sonnet 5.5 $0.00010 $0.00249
Haiku 4.5 $0.00005 $0.00124

Measured 1mo ago against content hash 8792a8e46558, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

html-artifacts 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 1mo ago.

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.

mda/skills/html-artifacts/SKILL.md · 87 lines

How it starts

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

HTML artifacts

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.

Design plan first

Sketch a compact plan before writing HTML, then follow it:

  • Color: 4–6 named hex values grounded in the subject, including deliberately tinted neutrals. A pure mid-grey reads as unconsidered; a grey biased toward the accent reads as chosen.
  • Type: at least a display and a body role, plus a utility/data face when useful. Google Fonts may be linked directly; every face needs a real fallback stack.
  • Layout: the layout concept in one or two sentences. A plan or memo is polished and utilitarian — most pages need no oversized landing-page hero.

Derive every color and type decision in the page from that plan.

Runtime

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.

Theming

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.

Read the full file on GitHub · 87 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. 1mo ago Changed · +20 lines 8792a8e46558
  2. 1mo ago Changed · +1 tokens per session 3a8ec7a6d88f
  3. 1mo ago Changed · +2 lines bfdf1994941e
  4. 3mo ago First seen · 65 lines · 51 tokens per session scan A 81ab344c9baf

Subscribe to this mod's changes

html-artifacts is a skill published in the GitHub repository langchain-ai/open-swe (11,272 stars, last pushed today), licensed MIT. It adds 52 tokens to every session and 1,243 once invoked, about $0.0002 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

html-artifacts compared with skills from other repositories

html-artifacts next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
html-artifactslangchain-ai/open-sweSkill11ktodayMITA52Claude Code, Codex
pr-screenshot-comparisonpetekp/claude-code-setupSkill504d agoMITA70Codex
generative-uibearlike/AssistantSkill432d agoMITA48Claude Code
st-widget-builderbearlike/AssistantSkill432d agoMITA65Claude Code
clean-copypetekp/claude-code-setupSkill504d agoMITA52Claude Code, Codex
frontend-designspytensor/openmoziSkill4423mo agoMITA56Claude Code
design-impeccablespytensor/openmoziSkill4423mo agoMITA58Claude Code