Agent Skills
› aiming-lab/MetaClaw
› test-before-ship
test-before-ship
GitHub指导在实现新功能或修复Bug前编写或更新测试,强调单元测试、集成测试和E2E测试的质量标准。要求通过自动化测试验证代码完整性,包括回归测试及避免仅测试Mock的误区。
Trigger Scenarios
实现新功能
修复Bug
标记任务完成前的验证
Install
npx skills add aiming-lab/MetaClaw --skill test-before-ship -g -y
SKILL.md
Frontmatter
{
"name": "test-before-ship",
"category": "coding",
"description": "Use this skill when implementing a new feature or fixing a bug. Write or update tests before marking the task done. Never consider code complete without verifying it works through automated tests."
}
Test Before Ship
Test pyramid:
- Unit tests for pure functions and business logic (fast, many).
- Integration tests for service interactions and DB queries (medium).
- End-to-end tests for critical user journeys (slow, few).
Test quality checklist:
- Does the test actually fail when the code is broken?
- Does it cover the happy path AND the most likely error cases?
- Is the test name descriptive enough to diagnose a failure from the name alone?
For bug fixes: add a regression test that reproduces the bug before fixing it.
Anti-patterns:
- Tests that only test the mock, not the real behavior.
- Skipping tests because "it probably works".
Version History
- 922caf3 Current 2026-07-25 11:09


