原文:https://x.com/trq212/status/2017024445244924382 作者:Thariq (@trq212) 日期:2026-01-29T23:57:56.000Z
我们发布了一个名为 playground 的全新 Claude Code 插件,它可以协助 Claude 生成 HTML 交互式演练场(playgrounds)。这些是独立的 HTML 文件,让你能够与 Claude 一起将问题可视化、进行交互操作,并生成一段输出提示词(prompt),以便你粘贴回 Claude Code 中继续使用。
我发现,当某些场景不太适合用纯文本与模型交互时,这种方式的效果非常好,例如:
可视化代码库的架构
调整组件的设计
头脑风暴页面布局与设计方案
微调游戏的平衡性
要开始使用,请在 Claude Code 中运行以下命令来安装该插件: /plugin marketplace update claude-plugins-official /plugin install playground@claude-plugins-official
以下是我制作过的一些最喜欢的 playground 示例:
修改 Claude Code 中 AskUserQuestion 工具的设计 prompt: "Use the playground skill to create an playground that helps me explore new layout changes to the AskUserQuestion Tool"(使用 playground skill 创建一个演练场,帮我探索 AskUserQuestion 工具的新布局改动方案)
审阅你的文稿并获取反馈 prompt: "Use the playground skill to review my SKILL.MD and give me inline suggestions I can approve, reject or comment"(使用 playground skill 审阅我的 SKILL.MD,并提供可以让我批准、拒绝或添加评论的行内修改建议)
微调 Remotion 视频片头 prompt: "Use the playground skill to tweak my intro screen to be more interesting and delightful"(使用 playground skill 微调我的片头画面,让它更有趣、更讨喜)
查看架构图并允许用户发表评论 prompt: "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"(使用 playground skill 展示这个邮件 Agent 代码库的工作原理,并允许我对架构中的特定节点发表评论,以便提问、进行修改等)
调整我正在制作的超级英雄 Roguelike 游戏的平衡性 prompt: "Use the playground skill to help me balance the 'Inferno' hero's deck"(使用 playground skill 帮我平衡“Inferno”这位英雄的卡组)
非常期待看到大家如何探索这一功能!
关于如何创建一个有趣的 playground,我的建议是:构思一种与模型交互的独特方式,然后要求它将其表达出来。我想结果可能会让你感到惊喜。
如果你做出了很酷的东西,欢迎分享!