web-artifacts

web-artifacts is a skill for Claude Code from alebgl77/claude-inc. It costs 98 tokens per session (1,017 once invoked), scanned A, original, MIT.

A workflow for turning an idea into a clickable, single-file HTML prototype with inline CSS and JavaScript. It uses fake data and connects the interactive states needed to demonstrate the idea.

In plain words
What is it for?
It creates quick demos for stakeholder reviews, contested user flows, and experiments such as live summaries, charts, or drag-and-drop interactions.
Why use it?
It lets people try a proposed interaction before committing to a full build, which helps resolve unclear requirements and risky design decisions.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the claude-inc plugin — 50 skills, 3 commands, 8 agents shipped together

Good fit It creates quick demos for stakeholder reviews, contested user flows, and experiments such as live summaries, charts, or drag-and-drop interactions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/alebgl77/claude-inc/web-artifacts
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 alebgl77/claude-inc --skill web-artifacts
Clone the repo
git clone --depth 1 https://github.com/alebgl77/claude-inc

Made for: Claude Code.

Or install claude-inc, the plugin that ships this one along with the rest of its 50 skills, 3 commands, 8 agents.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/alebgl77/claude-inc/web-artifacts.svg)](https://agentmods.dev/skills/alebgl77/claude-inc/web-artifacts)
Your own site
<a href="https://agentmods.dev/skills/alebgl77/claude-inc/web-artifacts"><img src="https://agentmods.dev/badge/skills/alebgl77/claude-inc/web-artifacts.svg" alt="Measured on agentmods" height="20"></a>
Per session 98 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,017 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.
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.00098 $0.01017
Opus 5 $0.00049 $0.00508
Sonnet 5 $0.00020 $0.00203
Haiku 4.5 $0.00010 $0.00102

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

Security

Grade A, and why

web-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 3d 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.

skills/web-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.

Web Artifacts — Prototyper

"Live web prototypes"

When to use

  • An idea needs to be felt, not described — "prototype this so I can click through it".
  • A stakeholder demo is imminent — "I need something to show in an hour".
  • A flow is contested — "would users even get this? build it and let's see".
  • De-risking a real build — "prove the risky interaction before we commit the sprint".

Workflow

  1. Scope-cut first: what is the ONE interaction to prove? Write it as a sentence — "user drags expenses into buckets and the summary recalculates live". Everything not serving that sentence gets faked or cut.
  2. Choose the thinnest stack that proves it. Default is vanilla HTML/CSS/JS in one file. Add a CDN library (cdnjs only) solely when the core interaction demands one — charts, drag-and-drop, markdown rendering.
  3. Seed believable fake data. 8–15 records with realistic names, amounts and dates, plus at least one edge case: the too-long string, the zero value, the overdue date. Declare it as const DATA = [...] at the top of the script so reviewers can tweak it live.
  4. Build mobile-first. One breakpoint upward if needed; 44px touch targets; the primary action sticky and reachable by thumb.
  5. Wire the interactive states. The core interaction genuinely works — click, drag, type, submit — with visible state change, an empty state, and a success or error state. Zero dead buttons: stub everything else with a toast ("Not in this prototype").
  6. Polish for ten minutes, not two hours. One accent color, one font stack, consistent spacing — enough that the idea is not judged on ugliness. This is not the design system pass.
  7. Ship. One .html file that opens by double-click or pastes straight into a Claude artifact, plus the three-line delivery note: proven / faked / test.

Output format

<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Prototype — <the one interaction></title>
  <!-- CDN deps only if the core interaction needs them:
       https://cdnjs.cloudflare.com/ajax/libs/chart.js/4.4.1/chart.umd.min.js -->
  <style>/* mobile-first; one accent; system font stack */</style>
</head>
<body>
  <main><!-- the ONE interaction, fully wired --></main>
  <script>
    const DATA = [/* 8-15 seeded records, edge cases included */];
    // state -> render() -> delegated event handlers, all inline
  </script>
</body>
</html>

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. 3d ago First seen · 87 lines · 98 tokens per session scan A 3f3e33a889fd

Subscribe to this mod's changes

web-artifacts is a skill published in the GitHub repository alebgl77/claude-inc (14 stars, last pushed 4d ago), licensed MIT. It adds 98 tokens to every session and 1,017 once invoked, about $0.0005 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-09-04.