brooks-test
它能做什么
这个工具用于分析你的软件测试质量。它会检查测试是否脆弱、是否误用“mock”(模拟对象)、测试的准备工作是否混乱、断言是否薄弱、运行是否耗时过长,以及是否可能在将来带来维护问题。
适用场景
- ✓当你想提升现有测试的质量时。
- ✓在进行重大代码改动之前,了解测试方面的风险。
- ✓用来找出运行时间过长的测试。
技能链接
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/brooks-test/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请分析我的软件测试质量,并告诉我哪些地方可以改进。”
每周 5 个新技能,1 分钟读完。
工作原理
这个工具会先阅读经典的软件测试书籍,以了解常见问题。然后它会检查你的测试、寻找问题迹象,并生成一份附带建议的报告。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Brooks-Lint — Test Quality Review
When to Use
Use this skill when you need test quality review drawing on twelve classic engineering books — with primary focus on xUnit Test Patterns, The Art of Unit Testing, How Google Tests Software, and Working Effectively with Legacy Code — that diagnoses structural problems in an existing test suite: brittleness, mock...
Setup
- Read
../_shared/common.mdfor the Iron Law, Project Config, Report Template, and Health Score rules - Read
../_shared/source-coverage.mdfor book-level coverage, exceptions, and tradeoffs - Read
../_shared/test-decay-risks.mdfor test-space symptom definitions and source attributions - Read
test-guide.mdin this directory for the test quality review framework
Process
If the user has not shared test files or pointed to a test directory: apply Auto
Scope Detection from ../_shared/common.md to determine the review scope before proceeding.
- Build the test suite map (guide's "Before You Start" section)
- Scan for each test decay risk in the order specified (Steps 1–4 of the guide)
- Apply the Iron Law and output using the Report Template (Step 5 of the guide)
Mode line in report: Test Quality Review
Limitations
- Use this skill only when the task clearly matches its upstream source and local project context.
- Verify commands, generated code, dependencies, credentials, and external service behavior before applying changes.
- Do not treat examples as a substitute for environment-specific tests, security review, or user approval for destructive or costly actions.
常见问题
什么是“mock”?
“mock”是用来模拟软件其他部分的替身,用于单独测试某一个模块。过度使用或使用不当,会让测试变得脆弱。
“脆弱的测试”是什么意思?
脆弱的测试是指即使主代码运行正常,也很容易失败的测试,通常是因为它依赖了太多的实现细节。
什么是“书籍覆盖范围”?
指分析你的测试时,参考了哪些特定软件工程书籍中的概念。
详情
作者的原始描述
Review test-suite quality using established testing literature; identify brittleness, mock abuse, unclear fixtures, weak assertions, slow feedback, and maintenance risks.
热度
- GitHub 星标
- 48k
- 排名
- #4064
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。