miniapp
它能做什么
让助手创建一个专注的单屏交互式演示,用来解释或模拟某件事的运作方式。适合希望通过点击和调整来探索某个概念的人。
适用场景
- ✓当你要求逐步查看某个流程或机制如何运作时。
- ✓当你希望有一个可以在聊天中操作的简单交互式演示时。
- ✓当一个简短的小游戏或模拟比文字更能解释某个想法时。
技能链接
https://github.com/yc-software/qm/blob/main/skills-seed/miniapp/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请给我看一个复利增长的交互式演示,让我自己修改利率。”
每周 5 个新技能,1 分钟读完。
工作原理
助手会编写一个带有自身控件的小型独立网页。它不使用任何外部文件或网络,页面会直接显示在聊天中。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Miniapp
In a web conversation, use the miniapp tool for a focused, one-screen interactive explanation, simulation, or small game. The tool is intentionally unavailable on surfaces that cannot render playground artifacts.
- Keep HTML, CSS, and JavaScript self-contained.
- Do not use network requests, external assets, modules, or servers.
- Make controls keyboard-accessible and label them clearly.
- Let the document choose its own presentation; the host will not rewrite it.
- Do not put a marker or artifact URL in the reply. The client attaches the playground from the typed tool result.
- Use
appsactionpublishinstead when the app needs persistence, a server, or multiple routes.
常见问题
演示可以使用外部链接或文件吗?
不可以。页面保持独立,因此不会加载外部资源或网络数据。
它在每个聊天中都能运行吗?
不能。它只能在能够显示这些交互式页面的聊天界面中使用。
如果我需要在两次访问之间保存数据怎么办?
该技能建议改用单独的应用来保存数据、使用服务器,或使用多个页面。
详情
作者的原始描述
Build a tiny interactive HTML playground only when someone asks to see, play with, or step through a mechanism.
repo: yc-software/qm
热度
- GitHub 星标
- 16k
- 排名
- #10899
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
deploy-qm
16k按照完整的部署清单,将 QM 软件包部署到 Fly.io、AWS 或 Render,然后设置管理员、连接器,并可选择连接 Slack。
onboarding
16k在一段简短的对话中,引导新用户连接账户、说明自己的工作方式、选择语音,并设置最初的帮助内容。
admin
16k让经过验证的组织管理员在聊天中查看或更改全组织范围的设置及其他范围,并在每项更改前进行确认。
browse
16k从你的 shell 驱动真实的隐身浏览器,在网站上执行操作,例如登录或填写表单,并按人保存登录状态。仅用于操作,不用于阅读。