Use playgrounds
Purpose
Connect a playground-shaped request (an interactive parameter space the user wants to
manipulate visually, with the result flowing back as a prompt) to the maintained
first-party implementation: the playground skill from the playground plugin on the
claude-plugins-official marketplace. This skill routes, installs, and advises. It
never builds a playground itself.
Step 1: Presence check (provenance, not prose)
Determine whether the upstream plugin is installed by its identity, not its wording:
- Run
claude plugin listand look for theplaygroundplugin sourced from
claude-plugins-official. That marketplace-qualified install record is the
authoritative signal.
- Where the CLI is unavailable to the session, fall back to the session's skill
listing: a bare playground skill whose description says it creates interactive
HTML playgrounds. Treat the description comparison as advisory only; upstream may
reword it at any time. Never conclude "absent" from wording alone when the name is
present.
- A local skill can shadow the upstream name. When the listed
playgroundskill's
description clearly describes something other than an interactive-explorer builder,
say a shadow is likely, then let provenance decide: with the install record
confirming playground@claude-plugins-official, warn about the shadow and invoke
the namespaced playground:playground form; with no install record confirming it,
take the install/guidance path, and never invoke the shadowing skill.
How a plugin skill's namespaced name and a same-named local skill resolve is
Claude Code's to define; this skill always addresses the upstream skill by its
namespaced form.
- Pointer: when a shadow is suspected or the bare name resolves unexpectedly,
fetch Skills: Resolve skills that share a name
live.
Step 2: Present, so invoke
When the upstream skill is present, invoke it via the Skill tool with the user's
brief as arguments, using the namespaced form playground:playground
(Step 1's pointer covers why). Pass the request
as stated; the upstream skill owns template choice and generation. When the user names
styles to leave out (italic accent words, pill-shaped buttons), carry that list in the
brief; when they dislike a choice in the generated page, add it to the list and invoke
again. A general "make it look less generic" only swaps one default for another. If
the invocation is refused, do not retry blind: tell the user the skill is installed but this session
could not invoke it, and suggest they run it themselves by asking for a playground in
their own words.
Step 3: Absent, so uplift
This plugin declares the upstream dependency in its manifest, so where Claude Code
resolves plugin dependencies it handles the install itself. In contexts where
resolution does not run (a synced or cloud session, a manual setup), emit the
commands directly:
/plugin marketplace add anthropics/claude-plugins-official
/plugin install playground@claude-plugins-official
Scope guidance: user scope makes the capability available everywhere; project
scope pins it to one repository. Include the marketplace-add step only when the
install command reports the marketplace is unknown. If the install is blocked by
organization policy, say so plainly and stop; there is no workaround to offer.
- Pointer: when an install did not resolve the dependency, or reports why it
could not, fetch Plugin dependencies: How dependencies behave for your users
and Install plugins: Plugins with dependencies
live.
Step 4: Delivery, especially off the desktop
How the upstream skill writes and opens its HTML file is that skill's to define.
Feature-detect the delivery path instead of assuming its opening step reaches the
user:
- A desktop session with a local browser: let the upstream flow open the file.
- A session that can publish an Artifact: offer to publish the generated HTML so the
user gets a link. State that the page runs under the artifact sandbox, and confirm
the copy-prompt button works there before promising the round trip.
- A session with a file-send surface (remote control, managed cloud): send the HTML
file to the user to open locally.
- None of the above: report the file's absolute path and say how to open it.
Degrade visibly at every tier; never name a delivery surface as guaranteed.
- Pointer: when deciding whether the upstream flow can open the file in this
session, fetch the playground skill ยง How to use this skill
live.
Recipes (field-tested)
From the plugin author's published examples, verbatim shapes to adapt:
- "Use the playground skill to create a playground that helps me explore new layout
changes to the AskUserQuestion Tool"
- "Use the playground skill to review my SKILL.md and give me inline suggestions I
can approve, reject or comment"
- "Use the playground skill to tweak my intro screen to be more interesting and
delightful"
- "Use the playground skill to show how this email agent codebase works and let me
comment on particular nodes in the architecture to ask questions, make edits, etc"
- "Use the playground skill to help me balance the 'Inferno' hero's deck"
Repo-native recipe for this marketplace: "Use the playground skill to review
plugins/<name>/skills/<skill>/SKILL.md and give me inline suggestions I can approve,
reject or comment" turns skill-file review into an interactive pass.
Known limitations
Consumer guidance for the generated playgrounds lives in