playground by anthropics/claude-plugins-official
npx skills add https://github.com/anthropics/claude-plugins-official --skill playgroundPlayground 是一个独立的 HTML 文件,一侧是交互式控件,另一侧是实时预览,底部是带有复制按钮的提示词输出。用户调整控件、进行可视化探索,然后将生成的提示词复制回 Claude。
当用户要求为某个主题创建交互式 Playground、探索器或可视化工具时——特别是当输入空间很大、具有视觉性或结构性,难以用纯文本表达时。
templates/ 目录加载:
* templates/design-playground.md — 视觉设计决策(组件、布局、间距、颜色、排版)
* templates/data-explorer.md — 数据和查询构建(SQL、API、管道、正则表达式)
* templates/concept-map.md — 学习和探索(概念图、知识缺口、范围映射)
* templates/document-critique.md — 文档审查(带有批准/拒绝/评论工作流的建议)
* templates/diff-review.md — 代码审查(git diff、提交、PR,支持逐行评论)
* templates/code-map.md — 代码库架构(组件关系、数据流、分层图)广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
open <文件名>.html 以在用户的默认浏览器中启动它。维护一个单一的状态对象。每个控件都写入它,每次渲染都读取它。
const state = { /* 所有可配置的值 */ };
function updateAll() {
renderPreview(); // 更新视觉预览
updatePrompt(); // 重建提示词文本
}
// 每个控件在更改时都调用 updateAll()
function updatePrompt() {
const parts = [];
// 仅提及非默认值
if (state.borderRadius !== DEFAULTS.borderRadius) {
parts.push(`border-radius of ${state.borderRadius}px`);
}
// 在数字旁边使用定性描述语言
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(', ')}.`;
}
每周安装量
1.0K
代码仓库
GitHub 星标数
9.7K
首次出现
2026 年 1 月 30 日
安全审计
安装于
claude-code848
opencode740
codex729
gemini-cli691
github-copilot645
cursor599
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 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.
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)open <filename>.html to launch it in the user's default browser.Keep a single state object. Every control writes to it, every render reads from it.
const state = { /* all configurable values */ };
function updateAll() {
renderPreview(); // update the visual
updatePrompt(); // rebuild the prompt text
}
// Every control calls updateAll() on change
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(', ')}.`;
}
Weekly Installs
1.0K
Repository
GitHub Stars
9.7K
First Seen
Jan 30, 2026
Security Audits
Gen Agent Trust HubFailSocketPassSnykPass
Installed on
claude-code848
opencode740
codex729
gemini-cli691
github-copilot645
cursor599
99,500 周安装