测试41k · #6561
webapp-testing
它能做什么
这个技能让智能体启动网页应用,并像用户一样在真实浏览器中测试。适合希望在发布前确认网站或应用流程正常的人。
适用场景
- ✓当你想检查注册或结账流程在浏览器中是否正常的时候。
- ✓当你需要找出页面或浏览器控制台中显示的错误的时候。
- ✓当你想为网页应用的某个功能获得通过或失败的记录结果的时候。
技能链接
https://github.com/codewhale-hq/Codewhale/blob/main/crates/skills/assets/skills/webapp-testing/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
请用这个技能帮我:https://github.com/codewhale-hq/Codewhale/blob/main/crates/skills/assets/skills/webapp-testing/SKILL.md
阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
npx skills add codewhale-hq/Codewhale --skill webapp-testing
下载 SKILL.md,放进智能体的技能文件夹。
curl -L https://raw.githubusercontent.com/codewhale-hq/Codewhale/main/crates/skills/assets/skills/webapp-testing/SKILL.md -o SKILL.md
可以这样问 AI
“请在本地启动我的应用,在浏览器中完成注册步骤,并告诉我是否有失败的地方?”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会启动应用并等待其就绪。然后它查看屏幕上的内容和浏览器消息,并根据它实际看到的内容执行每个步骤。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Webapp Testing
When to use
Use to prove a web app flow works in a real browser/runtime context.
Non-goals
- Do not claim success from unit tests alone.
- Do not hardcode fragile selectors without observation.
Workflow
- Start or reuse the local app.
- Wait for readiness.
- Inspect DOM/console/network.
- Drive the flow from observed state.
- Record evidence of pass/fail.
常见问题
智能体会因为单元测试通过就声称成功吗?
不会。技能说明,仅靠单元测试不足以证明网页流程正常。
它依赖猜测的页面细节吗?
不依赖。技能说明,应根据页面实际显示的内容行动,避免使用未经观察的脆弱选择器。
最后它会报告什么?
它会记录每一项通过或失败的证据,以便你看到检查了哪些内容。
详情
作者的原始描述
Start/reuse a local app, wait for readiness, inspect rendered state/console/network, act from observed selectors, and verify with evidence.
repo: codewhale-hq/Codewhale
热度
- GitHub 星标
- 41k
- 排名
- #6561
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …