artifacts-builder

artifacts-builder is a skill for Claude Code, Codex from MiniMax-AI/Mini-Agent. It costs 63 tokens per session (696 once invoked), scanned A, a copy of web-artifacts-builder, MIT.

A toolkit for building complex HTML artifacts in Claude, using React, TypeScript, Tailwind CSS, and prebuilt interface components. It supports projects with multiple parts, navigation, and changing data.

In plain words
What is it for?
Use it to initialize, develop, bundle, and optionally test interactive frontend artifacts with reusable interface components.
Why use it?
It provides a prepared project setup and bundling process for artifacts that are too involved for a single HTML file.

Skill for Claude CodeCodex

Part of the example-skills plugin — 10 skills shipped together

About the project

Mini Agent is a small demonstration application for building a single AI agent with the MiniMax M2.5 model, an Anthropic-compatible API, tools, memory, and context handling. It is intended as a starting point for developing and debugging agents, and includes skills and MCP integrations that extend the agent's workflow.

MiniMax-AI/Mini-Agent · 3,005 stars · on GitHub

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/minimax-ai/mini-agent/artifacts-builder
Any agent
npx skills add MiniMax-AI/Mini-Agent --skill artifacts-builder
Clone the repo
git clone --depth 1 https://github.com/MiniMax-AI/Mini-Agent

Made for: Claude Code, Codex.

Or install example-skills, the plugin that ships this one along with the rest of its 10 skills.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/minimax-ai/mini-agent/artifacts-builder.svg)](https://agentmods.dev/skills/minimax-ai/mini-agent/artifacts-builder)
Your own site
<a href="https://agentmods.dev/skills/minimax-ai/mini-agent/artifacts-builder"><img src="https://agentmods.dev/badge/skills/minimax-ai/mini-agent/artifacts-builder.svg" alt="Measured on agentmods" height="20"></a>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 696 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 98% copy Near-identical to another mod 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 $0.00063 $0.00696
Opus 5 $0.00032 $0.00348
Sonnet 5 $0.00013 $0.00139
Haiku 4.5 $0.00006 $0.00070

Measured 5d ago against content hash 8455a64e627d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

artifacts-builder 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/bundle-artifact.sh, scripts/init-artifact.sh), 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.

Origin

This is a copy

98% identical to web-artifacts-builder — 4 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

mini_agent/skills/artifacts-builder/SKILL.md · 74 lines

How it starts

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

Artifacts Builder

To build powerful frontend claude.ai artifacts, follow these steps:

  1. Initialize the frontend repo using scripts/init-artifact.sh
  2. Develop your artifact by editing the generated code
  3. Bundle all code into a single HTML file using scripts/bundle-artifact.sh
  4. Display artifact to user
  5. (Optional) Test the artifact

Stack: React 18 + TypeScript + Vite + Parcel (bundling) + Tailwind CSS + shadcn/ui

Design & Style Guidelines

VERY IMPORTANT: To avoid what is often referred to as "AI slop", avoid using excessive centered layouts, purple gradients, uniform rounded corners, and Inter font.

Quick Start

Step 1: Initialize Project

Run the initialization script to create a new React project:

bash scripts/init-artifact.sh <project-name>
cd <project-name>

This creates a fully configured project with:

  • ✅ React + TypeScript (via Vite)
  • ✅ Tailwind CSS 3.4.1 with shadcn/ui theming system
  • ✅ Path aliases (@/) configured
  • ✅ 40+ shadcn/ui components pre-installed
  • ✅ All Radix UI dependencies included
  • ✅ Parcel configured for bundling (via .parcelrc)
  • ✅ Node 18+ compatibility (auto-detects and pins Vite version)

Step 2: Develop Your Artifact

To build the artifact, edit the generated files. See Common Development Tasks below for guidance.

Step 3: Bundle to Single HTML File

To bundle the React app into a single HTML artifact:

bash scripts/bundle-artifact.sh

This creates bundle.html - a self-contained artifact with all JavaScript, CSS, and dependencies inlined. This file can be directly shared in Claude conversations as an artifact.

Requirements: Your project must have an index.html in the root directory.

What the script does:

  • Installs bundling dependencies (parcel, @parcel/config-default, parcel-resolver-tspaths, html-inline)
  • Creates .parcelrc config with path alias support
  • Builds with Parcel (no source maps)
  • Inlines all assets into single HTML using html-inline

Step 4: Share Artifact with User

Read the full file on GitHub · 74 lines

Files

What ships with it

4 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 · 74 lines · 63 tokens per session scan A 8455a64e627d

Subscribe to this mod's changes

artifacts-builder is a skill published in the GitHub repository MiniMax-AI/Mini-Agent (3,005 stars, last pushed 6mo ago), licensed MIT. It adds 63 tokens to every session and 696 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. It is 98% identical to web-artifacts-builder, differing in 4 lines, and is treated as a copy.

Related

Other skills, from other repositories

web-design

Penguin visual language for generated web pages and app UIs — GitHub-style simplicity with a single blue accent, light and pure-black dark themes, design tokens, component and chat-interface recipes, plus an opt-in warm paper editorial theme.

Prism-Shadow/penguin-harness · 51 tokens

penguin-harness-frontend

Use when changing the PenguinHarness Web App (packages/web) — adding or restyling any UI, picking a status colour, adding an icon, laying out a row or a form field, writing user-facing copy, or building a popup. Covers the semantic tone tokens, the icon size/stroke/gap scale, the semantic-versus-formatting rule for…

Prism-Shadow/penguin-harness · 104 tokens

ui-craft

Design, build, redesign, or modify browser-visible web interfaces with product-quality composition, visual systems, interaction states, responsive behavior, accessibility, and browser visual QA. Use for HTML, CSS, JavaScript, React, Vue, or Svelte pages and components, landing pages, dashboards, admin tools, settings…

MemTensor/memmy-agent · 86 tokens

frontend-design

Guidance for distinctive, intentional visual design when building or reshaping UI, HTML/React artifacts, dashboards, charts, and visual reports. Use before implementation to choose a content-specific structure, typography, and visual system that does not read as a templated default.

spytensor/openmozi · 56 tokens

antd-style-to-tailwind

Migrate existing antd-style CSS-in-JS (createStyles) components to Tailwind CSS utility classes with full dark mode support, following the project's style system transition strategy. Use when the user asks to migrate, convert, or rewrite antd-style components to Tailwind, or when working on new components in files…

dtyq/magic · 76 tokens

shadcn

Manages shadcn components and projects — adding, searching, fixing, debugging, styling, and composing UI, including chat interfaces. Provides project context, component docs, and usage examples. Applies when working with shadcn/ui, component registries, presets, --preset codes, or any project with a components.json…

antgroup/agentic-ai-landscape · 94 tokens