brooks-test – skill Lập trình cho agent AI
Đánh giá chất lượng bộ kiểm thử dựa trên tài liệu kiểm thử kinh điển; phát hiện sự dễ vỡ, lạm dụng mock, fixture khó hiểu, assertion yếu, phản hồi chậm và rủi ro bảo trì.
Cài skill brooks-test bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/brooks-test-caf58.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /brooks-test – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/brooks-test-caf58.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $brooks-test – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/brooks-test-caf58.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /brooks-test – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/brooks-test-caf58.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /brooks-test – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
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
1. Read ../_shared/common.md for the Iron Law, Project Config, Report Template, and Health Score rules
2. Read ../_shared/source-coverage.md for book-level coverage, exceptions, and tradeoffs
3. Read ../_shared/test-decay-risks.md for test-space symptom definitions and source attributions
4. Read test-guide.md in 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.
1. Build the test suite map (guide's "Before You Start" section)
2. Scan for each test decay risk in the order specified (Steps 1–4 of the guide)
3. 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.
The ../_shared/ files referenced above are not bundled. Do not claim their scoring, L-code taxonomy, templates or source coverage were applied. The local guide can support a standalone test-quality review: state the inspected scope, quote the concrete source location, explain the observed symptom and consequence, propose a proportionate remedy and list uninspected paths. Do not invent source attributions or framework codes. Obtain the missing material before any step that depends on it.
Ratios such as 70/20/10, mock counts, setup length and elapsed-time cutoffs in the guide are triage heuristics, not proof of poor quality or universal severity thresholds. Unknown runtime means unmeasured; measure it before assigning performance severity. Match suite layers and test density to architecture and risk; report sampled coverage explicitly.
Skill liên quan
- gc-review – /c-level-agents:gc-review [plan] — Rà soát pháp lý cấp cao (General Counsel) các hợp…
- notion – Notion API + CLI ntn: trang, cơ sở dữ liệu, markdown, Workers.
- python-anti-patterns – Dùng kỹ năng này khi rà soát code Python để tìm các anti-pattern phổ biến cần tránh…
- general-counsel-advisor – Tư vấn pháp lý cấp cao (General Counsel) cho startup: rà soát hợp đồng (MSA, SaaS, NDA…
- general-counsel-advisor – Tư vấn pháp lý cấp cao (General Counsel) cho startup: rà soát hợp đồng (MSA, SaaS, NDA…
- bug-hunter – Tìm và sửa bug có hệ thống bằng các kỹ thuật gỡ lỗi đã được kiểm chứng. Truy từ triệu…
- python-background-jobs – Các pattern job nền trong Python, gồm hàng đợi tác vụ, worker và kiến trúc hướng sự…
- generate – Tạo bài test Playwright. Dùng khi người dùng nói "write tests", "generate tests", "add…