测试15k · #10942
run-smoke-tests
它能做什么
让智能体运行端到端冒烟测试,查明失败的原因并进行修复。适合希望快速确认应用仍然正常工作的开发者。
适用场景
- ✓当你希望在修改前后做一次端到端检查的时候。
- ✓当冒烟测试失败、你需要找出根本原因的时候。
- ✓当你想确认修复稳定、不会时好时坏的时候。
技能链接
https://github.com/cursor/plugins/blob/main/cursor-team-kit/skills/run-smoke-tests/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
请用这个技能帮我:https://github.com/cursor/plugins/blob/main/cursor-team-kit/skills/run-smoke-tests/SKILL.md
阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
npx skills add cursor/plugins --skill run-smoke-tests
下载 SKILL.md,放进智能体的技能文件夹。
curl -L https://raw.githubusercontent.com/cursor/plugins/main/cursor-team-kit/skills/run-smoke-tests/SKILL.md -o SKILL.md
可以这样问 AI
“请运行冒烟测试,找出失败的原因,并用最小的改动修复。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会构建应用所需的内容,运行完整的冒烟测试套件或单个测试文件,阅读失败的跟踪记录和日志,应用最小修复,然后重新运行以确认稳定。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Run smoke tests
Trigger
Need end-to-end smoke verification before or after changes.
Workflow
- Build prerequisites for the target app.
- Run the relevant smoke suite or a focused test file.
- If failing, inspect traces/logs and isolate the root cause.
- Apply a minimal fix and rerun until stable.
Example Commands
# Run full smoke suite
npm run smoketest
# Run a specific smoke test file
npm run smoketest -- path/to/test.spec.ts
# Faster iteration when build artifacts are ready
npm run smoketest-no-compile -- path/to/test.spec.ts
Guardrails
- Prefer deterministic waits and assertions over brittle timeouts.
- Re-run passing fixes to reduce flaky false positives.
- Quarantine tests only when explicitly requested and documented.
Output
- Test results summary
- Root cause and fix
- Remaining flake risk (if any)
常见问题
它能只运行一个测试文件吗?
可以。它可以运行指定的冒烟测试文件,以便更快地迭代。
它会添加等待来掩盖不稳定的问题吗?
不会。该技能更倾向于使用确定性的等待和断言,而不是脆弱的超时设置。
它会直接禁用失败的测试吗?
只有在你明确要求时才会,并且必须记录隔离的原因。
详情
热度
- GitHub 星标
- 15k
- 排名
- #10942
- 许可证
- —
- 更新时间
- 2026/10/31
评论
- …
同一仓库的更多技能
advisor
15k如果你开启该功能,让你的智能体在关键节点咨询一个更强的第二模型,例如在重大决定之前,或在错误上卡住时。
AI 与智能体智能体
check-agent-compatibility
15k全面检查 AI 编程智能体能否启动、验证和记录某个代码仓库,并返回一个兼容性评分以及主要问题。
编程部署与云(DevOps)
cli-for-agents
15k教你的智能体设计或审查命令行工具,使 AI 智能体无需提示即可运行,并提供清晰的帮助文字和示例。
编程API 与服务器(后端)
continual-learning
15k通过把回顾过往对话的工作交给专门的记忆更新程序,使你的 AGENTS.md 笔记保持最新。
AI 与智能体智能体