Agent Skills
› davepoon/buildwithclaude
› testing
testing
GitHub提供全面测试指导,涵盖TDD工作流、测试组织(单元/集成/E2E)、多框架支持及Mock策略。规定测试优先、AAA模式等核心规则,适用于编写高质量测试代码及修复测试失败场景。
Trigger Scenarios
进行实施并需要编写测试时
使用tdd-guide agent获取TDD指导时
使用build-error-resolver agent修复测试失败时
Install
npx skills add davepoon/buildwithclaude --skill testing -g -y
SKILL.md
Frontmatter
{
"name": "testing",
"description": "Testing strategies and methodologies including TDD, E2E testing, and multi-framework support"
}
Testing Skill
Comprehensive testing guidance covering:
- TDD Workflow: Red → Green → Refactor cycle with practical examples
- Test Organization: Unit / Integration / E2E test structure
- Framework Support: pytest, Jest, JUnit5, xUnit, Google Test
- Mock Strategies: Only mock external boundaries, not internal logic
- Coverage Requirements: 80%+ with meaningful assertions
When Loaded
This skill is automatically injected when working with:
/cc-best:dev— Implementation with teststdd-guideagent — Test-driven development guidancebuild-error-resolveragent — Fixing test failures
Key Rules
- Tests first — Write failing test before implementation
- AAA pattern — Arrange, Act, Assert in every test
- No shared mutable state — Each test is independent
- Descriptive names —
test_<feature>_<scenario>_<expected>
Version History
- 502fc01 Current 2026-07-05 15:09


