html-artifact

html-artifact is a skill for Claude Code, Codex from bahayonghang/my-ai-cli-toolkit. It costs 80 tokens per session (4,207 once invoked), scanned A, original, MIT.

A guide for creating self-contained HTML files that present complex work in a browser, such as reports, implementation plans, code reviews, dashboards, or slide-like pages.

In plain words
What is it for?
Use it to build browser-viewable reports, comparison pages, dashboards, mini-decks, and other reviewable HTML deliverables.
Why use it?
It provides a clearer way to inspect and share information when plain Markdown would become long, visual, or difficult to navigate. The output works offline without relying on external files or services.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/bahayonghang/my-ai-cli-toolkit/html-artifact
Any agent
npx skills add bahayonghang/my-ai-cli-toolkit --skill html-artifact
Clone the repo
git clone --depth 1 https://github.com/bahayonghang/my-ai-cli-toolkit

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-artifact

README.md
[![agentmods](https://agentmods.dev/badge/skills/bahayonghang/my-ai-cli-toolkit/html-artifact.svg)](https://agentmods.dev/skills/bahayonghang/my-ai-cli-toolkit/html-artifact)
Your own site
<a href="https://agentmods.dev/skills/bahayonghang/my-ai-cli-toolkit/html-artifact"><img src="https://agentmods.dev/badge/skills/bahayonghang/my-ai-cli-toolkit/html-artifact.svg" alt="Measured on agentmods" height="20"></a>
Per session 80 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,207 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00080 $0.04207
Opus 5 $0.00040 $0.02103
Sonnet 5 $0.00016 $0.00841
Haiku 4.5 $0.00008 $0.00421

Measured 5d ago against content hash bebcc8000f24, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

html-artifact 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 5d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/check_html_artifact.py, tests/check-html-artifact.test.mjs), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/development-workflows/html-artifact/SKILL.md · 253 lines

How it starts

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

HTML Artifact

Create a browser-viewable HTML artifact when complex work needs a richer review surface than a wall of Markdown. Default to one self-contained file; use a split bundle when the planned content is too large for a reviewable single page.

Core rule

Use HTML artifacts for complex, visual, comparison-heavy, reviewable, or shareable outputs. Keep ordinary Markdown for short answers, simple commands, commit messages, tiny summaries, and routine implementation reports unless the user explicitly asks for an artifact.

Output contract

Every artifact must be:

  • Single-file by default; split bundle when oversized: create one .html or .htm file unless the pre-build size gate says to split. When split, create docs/artifacts/<slug>/index.html plus self-contained part pages such as part-01-overview.html.
  • Self-contained: no CDN, remote fonts, remote stylesheets, remote scripts, fetch, XHR, beacons, WebSockets, or automatic network requests.
  • Offline per page: every split-bundle HTML page must independently include its own CSS and any small vanilla JS; do not share external assets between pages.
  • Semantic: include <!doctype html>, <html>, <head>, <meta charset="utf-8">, <meta name="viewport">, <title>, <main id="main">, and one clear <h1>.
  • Accessible: skip link, visible focus state, keyboard-operable controls, text alternatives for diagrams, color plus text for status, and prefers-reduced-motion support.
  • Reviewable: structure content into navigable sections, cards, tables, timelines, or diagrams; do not dump raw long Markdown into a styled box.
  • Navigable when split: split bundles must include an index page plus previous/next/back-to-index links on each part page.
  • Free of unfinished placeholders: remove [填这里], Lorem ipsum, TBD, and other fill-in markers before delivery.
  • Truthful about data: do not invent measurements, statistics, customers, sources, or outcomes.
  • Explicit about missing data: mark a real gap as [数据待补:说明] and explain what evidence is needed.

Read the full file on GitHub · 253 lines

Files

What ships with it

35 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 5d ago First seen · 253 lines · 80 tokens per session scan A bebcc8000f24

Subscribe to this mod's changes

html-artifact is a skill published in the GitHub repository bahayonghang/my-ai-cli-toolkit (16 stars, last pushed today), licensed MIT. It adds 80 tokens to every session and 4,207 once invoked, about $0.0004 per session on Opus 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

Other skills, from other repositories

html-report

Nested swiss-knife reference for standalone HTML deliverables. Produce polished, self-contained HTML deliverables (research memos, literature maps, dashboards, audit reports, side-by-side comparisons) that humans open in a browser or receive as Telegram/email attachments. Covers a standalone HTML skeleton, math…

Lingtai-AI/lingtai · 119 tokens

reimagine-it

Content-Derived Design — reads existing HTML and writes a stronger standalone page from headings, facts, names, dates, numbers, links, emails, and colors already in that file. CLI: npx reimagine-it --auto -i page.html -o out.html; also variations, lock, and audit. Use when the user says /reimagine-it, "reimagine it"…

Kayforkind/reimagine-it · 197 tokens

convert-checkout-page

Author checkout-page micro-copy + trust signals: order summary, form-field copy, bump slot, button label, guarantee restatement, and friction-reduction patterns. Emits brief + paste-ready HTML/CSS scaffold (payment-processor-agnostic). Use when the user needs a conversion-optimized checkout page where every word and…

FerroxLabs/wayland · 101 tokens

Accessibility Audit Helper

Reviews UI code and components for WCAG 2.1 accessibility violations and provides specific fixes.

Notysoty/openagentskills · 23 tokens

web-design

UI review against Web Interface Guidelines. Use when asked to review UI, check accessibility, or audit design.

martineserios/thebrana · 24 tokens

claude-design

Design one-off HTML artifacts (landing, deck, prototype).

mateaix/mateclaw · 16 tokens