roids
它能做什么
让你的智能体在预览中放置多个界面变体,以便你比较并选择其中一个。它适合在构建最终版本之前探索布局方案的设计师和开发者。
适用场景
- ✓当你在选择设计之前,希望看到不止一种布局方案的时候。
- ✓当你要求在浏览器中比较几种设计方向时。
- ✓当你希望在整理代码之前,先有一个选出最佳方案的步骤的时候。
技能链接
https://github.com/hexclave/hexclave/blob/dev/.agents/skills/roids/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请在预览中为我的定价页面展示三种布局方案,以便我选择其中一种。”
每周 5 个新技能,1 分钟读完。
工作原理
变体会使用特殊属性标记为沙盒化预览。托管的预览运行时只在该预览中使用,绝不会出现在你交付的应用中。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Roids
Compare variants in the browser with the hosted runtime and markup contract.
How it works
Preview-only — not for production. The TryRoids hosted runtime (https://tryroids.com/roid-tool.js) and any wiring described in SKILL.txt are intended only for sandboxed variant previews. Never include them in production dashboard or app code, and never inject a <script src="https://tryroids.com/roid-tool.js"> into shipped bundles.
- Fetch the source URL below for documentation only—do not load it via
<script src>in production code. - Follow
SKILL.txtexactly: "wire" means using the documented inline markup pattern (thedata-roid-*attributes on variant elements) inside a sandboxed preview runner. The hosted runtime URL is referenced in docs or loaded only by the preview sandbox, never by application code. - Do not use custom tabs, selects, or one-off pickers for those variants.
Source
https://tryroids.com/SKILL.txt
常见问题
这会进入我的生产代码吗?
不会。该技能说明,托管的预览运行时绝不能包含在生产代码中。
它会生成多少个变体?
默认大约为两到五个,除非你要求特定的数量。
我必须提到这个工具的名字吗?
不必。当你要求多个方案时,你的智能体就会使用它,即使你从未提及该工具的名称。
详情
作者的原始描述
Use when presenting more than one comparable UI direction, or proactively whenever you ship multiple layout options for the user to choose—do not wait for the user to mention Roids or type /roids. Use for comparison, preview-first, or pick-a-winner flows before cleanup. Default to a small set of variants (~2–5) unless the user specifies how many.
repo: hexclave/hexclave
热度
- GitHub 星标
- 6.9k
- 排名
- #13726
- 许可证
- —
- 更新时间
- 2026/11/2
评论
- …