生成可视化交互式单文件 HTML playground,便于探索配置并复制提示词
复制安装指令,让 AI 自动完成配置 · 推荐新手
请帮我安装 askskill 上的 "playground" 技能: 1. 下载 https://raw.githubusercontent.com/anthropics/claude-plugins-official/main/plugins/playground/skills/playground/SKILL.md 2. 保存为 ~/.claude/skills/playground/SKILL.md 3. 装好后重载技能,告诉我可以用了
请为卡片组件创建一个单文件 HTML playground,左侧提供圆角、阴影、间距、配色和字体控制,右侧实时预览卡片,底部生成可复制的自然语言提示词。需要深色主题、3 个预设,并且不使用外部依赖。
一个可直接打开的单文件 HTML 样式探索器,支持实时预览、预设切换和提示词复制。
做一个用于教学的 HTML playground,帮助用户通过下拉框和开关组合 SELECT、WHERE、GROUP BY、ORDER BY 条件,右侧显示实时 SQL 结果,底部输出可复制的提示词说明。要求所有 CSS 和 JS 内联。
一个交互式 SQL 探索器,能通过控件组合查询并同步生成说明性提示词。
请创建一个概念地图 playground,用于梳理“机器学习入门”的主题范围。左侧可控制学习深度、主题模块、先修知识和难度,右侧展示结构化概览,底部生成可复制的学习提示词。
一个可视化学习探索工具,帮助用户调整范围并生成清晰的学习提示词。
开发者或设计师在参数很多、难以用纯文字描述时,可以用它做交互式 playground。用户通过控件调整配置、即时查看结果,再复制生成的提示词继续交给 AI。
当需要演示 SQL、API、管道或正则等结构化输入时,这个技能可以生成带实时反馈的单文件 HTML 探索器。它适合把抽象的组合逻辑变成直观操作界面。
产品经理、研究员或开发者可以用它做概念地图、文档评审或代码结构视图。通过预设和交互控件,用户能更快探索范围、差异或关系。
文档介绍了 Playground Builder 的用途、适用场景和实现要求。它说明 playground 应是一个自包含的单文件 HTML 工具,包含交互控件、实时预览和可复制的自然语言提示词输出,并建议根据主题选择设计、数据探索、概念地图、文档评审、代码评审或代码结构等模板。文档还强调内联 CSS/JS、即时更新、默认值与预设、深色主题,以及用统一状态对象驱动渲染与提示词生成。
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(', ')}.`;
}
它会生成一个自包含的单文件 HTML playground,包含左侧交互控件、右侧实时预览,以及底部可复制的提示词输出。适合做 explorer、visual tool 或 playground。
文档要求使用单一 HTML 文件并内联 CSS、JS,不依赖外部资源。它还应具备实时预览、复制按钮、合理默认值、3-5 个预设,以及深色主题。
文档说明在写出 HTML 文件后,可直接在浏览器中打开。示例流程还提到可执行 open <filename>.html 来启动默认浏览器。
帮助开发者把本地 MCP 服务打包成自带运行时的 .mcpb 安装包。
浏览 Anthropic 官方精选的 Claude Code 插件目录并快速发现可用工具
帮助开发者为 Claude Code 插件创建事件驱动 Hook,并校验工具调用与自动化流程。
帮助开发者梳理需求并规划合适的 MCP 服务器构建方案
帮助开发者为 Claude Code 设计、编写和组织斜杠命令。
This skill should be used when the user asks about "plugin settings", "store plugin configuration", "user-configurable plugin", ".local.md files", "plugin state files", "read YAML frontmatter", "per-project plugin settings", or wants to make plugin behavior configurable. Documents the .claude/plugin-name.local.md pattern for storing plugin-specific configuration with YAML frontmatter and markdown content.
快速生成含图表、筛选器与表格的可分享交互式 HTML 仪表盘。
快速创建或转换为动画丰富的网页演示文稿,适合路演、分享与提案制作。
将 HTML 与 Markdown 快速发布为链接,并统一管理粘贴内容。
帮助用户构建基于 React 与 Tailwind 的复杂多组件网页交互原型
将代码转成交互式知识图谱,便于探索结构、搜索内容并提问理解
帮助用户为各类 AI 工具编写精准提示词,减少试错并保留完整上下文。