Official agent skill

Interactive HTML Playground Builder

by anthropics in anthropics/claude-plugins-official

Builds a single-file HTML explorer with visual controls, a live preview and a copyable prompt, using one of six templates chosen to fit the topic.

OfficialApache-2.0Auto-check passedFrontend & Design

Install Interactive HTML Playground Builder

skills CLI
$ npx skills add anthropics/claude-plugins-official --skill playground -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install anthropics/claude-plugins-official playground --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/anthropics/claude-plugins-official.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/playground/skills/playground .claude/skills/playground && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
playground
GitHub stars
38k
Used in
1 other repo
Token cost
~949 tokens
SKILL.md length
382 words
Files
7
Skills in repo
29
Repo updated
First seen
Licence
Apache-2.0

At a glance

Builds a single-file HTML explorer with visual controls, a live preview and a copyable prompt, using one of six templates chosen to fit the topic.

  • Works in 4 steps: Identify the playground type from the… → Load the matching template from templates/ → Follow the template to build the… → …
  • Building a visual explorer for design choices such as layout, spacing or color
  • SKILL.md covers When to use this skill, How to use this skill, Core requirements (every… and State management pattern, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

A playground here is one self-contained HTML file with controls on one side, a live preview on the other and a prompt box at the bottom with a copy button. You adjust settings visually, then paste the generated prompt back to your agent. The skill picks a template from six in templates/: design decisions, data and query building, concept maps, document critique, diff review and code mapping, adapting the closest one when the topic fits none.

Every playground must inline all CSS and JavaScript with no outside dependencies, update the preview on each control change without an Apply button, and keep one state object that controls write to and rendering reads from. The prompt output is written in natural language, mentions only non-default choices and updates live. Each one starts with sensible defaults and three to five named presets, uses a dark theme, and is opened in the default browser once the file is written.

When your agent uses it

  • Building a visual explorer for design choices such as layout, spacing or color
  • Making an interactive tool to assemble and test SQL queries, API calls or regexes
  • Reviewing a git diff or a document with per-line comments that export as a prompt
  • Mapping a codebase's components and data flow in an interactive page

Example prompts

  • “Make a playground for tuning card spacing, corner radius and shadow, with a few presets.”
  • “Build an explorer where I can assemble a regex and see the matches update live.”
  • “Create a playground to review this git diff line by line and copy my comments as a prompt.”

Requirements

  • A web browser to open the generated HTML file

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Identify the playground type from the user's request
  2. Load the matching template from templates/
  3. Follow the template to build the playground. If the topic doesn't fit any template cleanly, use the one closest and adapt.
  4. Open in browser. After writing the HTML file, run open .html to launch it in the user's default browser.

What it can do on your machine

Read from SKILL.md and the folder at commit b78ac49. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are javascript).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Interactive HTML Playground Builder loads about 949 tokens when it runs. Until then it costs about 70 tokens; SKILL.md has 382 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~70
When it runs · the whole SKILL.md, loaded when a task matches
~949

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from anthropics/claude-plugins-official at commit b78ac49, republished under its Apache-2.0 licence (© anthropics). 382 words, ~949 tokens.

Download SKILL.mdSave it as .claude/skills/playground/SKILL.md (or your agent's skills folder). This skill also uses 6 other files; get the full folder from GitHub.
name
playground
description
Creates interactive HTML playgrounds — self-contained single-file explorers that let users configure something visually through controls, see a live preview, and copy out a prompt. Use when the user asks to make a playground, explorer, or interactive tool for a topic.

Playground Builder

A playground is a self-contained HTML file with interactive controls on one side, a live preview on the other, and a prompt output at the bottom with a copy button. The user adjusts controls, explores visually, then copies the generated prompt back into Claude.

When to use this skill

When the user asks for an interactive playground, explorer, or visual tool for a topic — especially when the input space is large, visual, or structural and hard to express as plain text.

How to use this skill

  1. Identify the playground type from the user's request
  2. Load the matching template from templates/:
    • templates/design-playground.md — Visual design decisions (components, layouts, spacing, color, typography)
    • templates/data-explorer.md — Data and query building (SQL, APIs, pipelines, regex)
    • templates/concept-map.md — Learning and exploration (concept maps, knowledge gaps, scope mapping)
    • templates/document-critique.md — Document review (suggestions with approve/reject/comment workflow)
    • templates/diff-review.md — Code review (git diffs, commits, PRs with line-by-line commenting)
    • templates/code-map.md — Codebase architecture (component relationships, data flow, layer diagrams)
  3. Follow the template to build the playground. If the topic doesn't fit any template cleanly, use the one closest and adapt.
  4. Open in browser. After writing the HTML file, run open <filename>.html to launch it in the user's default browser.
Show full SKILL.md (182 more words)Show less

Core requirements (every playground)

  • Single HTML file. Inline all CSS and JS. No external dependencies.
  • Live preview. Updates instantly on every control change. No "Apply" button.
  • Prompt output. Natural language, not a value dump. Only mentions non-default choices. Includes enough context to act on without seeing the playground. Updates live.
  • Copy button. Clipboard copy with brief "Copied!" feedback.
  • Sensible defaults + presets. Looks good on first load. Include 3-5 named presets that snap all controls to a cohesive combination.
  • Dark theme. System font for UI, monospace for code/values. Minimal chrome.

State management pattern

Keep a single state object. Every control writes to it, every render reads from it.

javascript
const state = { /* all configurable values */ };

function updateAll() {
  renderPreview(); // update the visual
  updatePrompt();  // rebuild the prompt text
}
// Every control calls updateAll() on change

Prompt output pattern

javascript
function updatePrompt() {
  const parts = [];

  // Only mention non-default values
  if (state.borderRadius !== DEFAULTS.borderRadius) {
    parts.push(`border-radius of ${state.borderRadius}px`);
  }

  // Use qualitative language alongside numbers
  if (state.shadowBlur > 16) parts.push('a pronounced shadow');
  else if (state.shadowBlur > 0) parts.push('a subtle shadow');

  prompt.textContent = `Update the card to use ${parts.join(', ')}.`;
}

Common mistakes to avoid

  • Prompt output is just a value dump → write it as a natural instruction
  • Too many controls at once → group by concern, hide advanced in a collapsible section
  • Preview doesn't update instantly → every control change must trigger immediate re-render
  • No defaults or presets → starts empty or broken on load
  • External dependencies → if CDN is down, playground is dead
  • Prompt lacks context → include enough that it's actionable without the playground

© anthropics, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 6 other files in plugins/playground/skills/playground of anthropics/claude-plugins-official.

  • SKILL.md
  • templates/code-map.md
  • templates/concept-map.md
  • templates/data-explorer.md
  • templates/design-playground.md
  • templates/diff-review.md
  • templates/document-critique.md

Open the folder on GitHubat commit b78ac49

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in anthropics/claude-plugins-official, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Interactive HTML Playground Builder next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Interactive HTML Playground Builder compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Interactive HTML Playground Builder this skillanthropics/claude-plugins-official38k1 repos~949Automated safety check: PassApache-2.0
LobeHub Interactive Prototypelobehub/lobehub83k—~1.6kAutomated safety check: PassCustom licence
HTMLplannotator/effective-html3.6k—~1.6kAutomated safety check: PassMIT
Paperclip Pagepaperclipai/paperclip99k—~1kAutomated safety check: PassMIT
Openkb Deck NeonVectifyAI/OpenKB4.7k1 repos~4.3kAutomated safety check: PassApache-2.0
Webhome Homepage Builderwebhtv/webhtv1.7k—~3.8kAutomated safety check: PassGPL-3.0

Similar skills

  • Builds single-file interactive HTML prototypes rendered with the real LobeHub UI components and written as production-style React, so they can later be split into files.

    83k GitHub stars~1.6k tokensUpdated today
    Frontend & DesignAuto-check passed
  • HTML

    plannotator/effective-html

    Create or redesign self-contained single-file HTML artifacts with a visual direction shaped by the user's brief, project, and subject.

    3.6k GitHub stars~1.6k tokensUpdated 24 days ago
    Frontend & DesignAuto-check passed
  • Paperclip Page

    paperclipai/paperclip

    Publish static HTML pages and asset folders to the Paperclip S3/CloudFront page host.

    99k GitHub stars~1k tokensUpdated today
    Frontend & DesignAuto-check passed
  • Openkb Deck Neon

    VectifyAI/OpenKB

    A skill your agent uses when the user asks the openkb chat to make a deck / slide presentation / PPT / slides / 演示稿 / 幻灯片 from their compiled KB content AND wants a dark, high-tech, neon / glow /…

    4.7k GitHub starsUsed in 1 repo~4.3k tokens
    Frontend & DesignAuto-check passed
  • Build, review, debug, reverse-engineer data sources for, and package FongMi/WebHome custom homepage single-file HTML.

    1.7k GitHub stars~3.8k tokensUpdated today
    Frontend & DesignAuto-check passed
  • Solo Artifacts

    solo-agent/solo

    A skill your agent uses when a Solo task or thread should become an interactive, reviewable, self-contained HTML artifact for progress/status, review/decision, or comparison/leaderboard work inside…

    697 GitHub stars~961 tokensUpdated 25 days ago
    Frontend & DesignAuto-check passed

More from anthropics/claude-plugins-official

All 29 skills in this repo
  • Hook Development for Claude Code Plugins

    anthropics/claude-plugins-official

    Official

    Explains how to write Claude Code plugin hooks, both prompt-based checks and bash commands, for events such as PreToolUse, Stop and SessionStart.

    38k GitHub starsUsed in 11 repos~4.1k tokens
    Auto-check: notes
  • Claude Code Agent Development

    anthropics/claude-plugins-official

    Official

    Explains how to write agents for Claude Code plugins: the markdown file with YAML frontmatter, trigger descriptions, model and color settings, and system prompt design.

    38k GitHub starsUsed in 8 repos~2.8k tokens
    Auto-check passed
  • Plugin Settings Pattern

    anthropics/claude-plugins-official

    Official

    Shows how Claude Code plugins keep per-project settings and state in .claude/plugin-name.local.md files with YAML frontmatter and a markdown body.

    38k GitHub starsUsed in 7 repos~3k tokens
    Auto-check passed
  • MCP Integration for Plugins

    anthropics/claude-plugins-official

    Official

    Explains how to bundle Model Context Protocol servers in a Claude Code plugin, covering config files, stdio, SSE, HTTP and WebSocket server types, and authentication.

    38k GitHub starsUsed in 11 repos~3.1k tokens
    Auto-check passed
  • Claude Code Command Development

    anthropics/claude-plugins-official

    Official

    Explains how to write Claude Code slash commands: Markdown files with YAML frontmatter, arguments, file references, bash context and interactive prompts.

    38k GitHub starsUsed in 10 repos~4.8k tokens
    Auto-check passed
  • Claude Code Plugin Structure

    anthropics/claude-plugins-official

    Official

    Explains the directory layout, plugin.json manifest and component organization of a Claude Code plugin, including auto-discovery and portable paths.

    38k GitHub starsUsed in 10 repos~3.4k tokens
    Auto-check passed

Questions about Interactive HTML Playground Builder

What does Interactive HTML Playground Builder do?

Builds a single-file HTML explorer with visual controls, a live preview and a copyable prompt, using one of six templates chosen to fit the topic. A playground here is one self-contained HTML file with controls on one side, a live preview on the other and a prompt box at the bottom with a copy button. You adjust settings visually, then paste the generated prompt back to your agent.

When should I use Interactive HTML Playground Builder?

Interactive HTML Playground Builder fits situations like: building a visual explorer for design choices such as layout, spacing or color; making an interactive tool to assemble and test SQL queries, API calls or regexes; reviewing a git diff or a document with per-line comments that export as a prompt; mapping a codebase's components and data flow in an interactive page.

How do I install Interactive HTML Playground Builder in Claude Code?

Run `npx skills add anthropics/claude-plugins-official --skill playground -a claude-code`. Or copy the skill folder (plugins/playground/skills/playground in anthropics/claude-plugins-official) into .claude/skills/playground in your project. Claude Code loads it when a task matches its description.

How do I install Interactive HTML Playground Builder in Codex?

Run `npx skills add anthropics/claude-plugins-official --skill playground -a codex`. Or copy the skill folder (plugins/playground/skills/playground in anthropics/claude-plugins-official) into .agents/skills/playground in your project. Codex loads it when a task matches its description.

Can I use Interactive HTML Playground Builder in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add anthropics/claude-plugins-official --skill playground -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/playground, .gemini/skills/playground, .github/skills/playground and .opencode/skills/playground in your project.

What does Interactive HTML Playground Builder need to run?

SKILL.md names no scripts, command-line tools or credentials: Interactive HTML Playground Builder is instructions for the agent only. Our summary lists: A web browser to open the generated HTML file.

Does Interactive HTML Playground Builder access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Interactive HTML Playground Builder safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Interactive HTML Playground Builder use?

Interactive HTML Playground Builder is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Interactive HTML Playground Builder use?

About 949 tokens (SKILL.md is roughly 3.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Interactive HTML Playground Builder?

Skills that share tags, products or a category with Interactive HTML Playground Builder: LobeHub Interactive Prototype (lobehub/lobehub, 83k stars), HTML (plannotator/effective-html, 3.6k stars), Paperclip Page (paperclipai/paperclip, 99k stars) and Openkb Deck Neon (VectifyAI/OpenKB, 4.7k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Interactive HTML Playground Builder?

anthropics (a GitHub organization, an official publisher) maintains it in anthropics/claude-plugins-official, which has 37,509 GitHub stars. The repository holds 29 skills in this directory. The repository was last updated on October 8, 2026.

Source: anthropics/claude-plugins-official on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.