This is your testing strategy companion for when you need to add tests to a codebase or debug why they're failing. It gives you the full testing pyramid breakdown (70% unit, 20% integration, 10% E2E), framework recommendations across JavaScript, Python, and Go, and concrete templates for each test type following the arrange-act-assert pattern. The coverage thresholds are sensible (80% global, 95% for core modules), and the mock-versus-real guidance actually helps you avoid common pitfalls like mocking internal modules. Load it when you're setting up testing infrastructure from scratch or trying to hit coverage targets without writing garbage tests.

skills.sh installs
180
GitHub stars
1.4K
last updated
Jun 9, 2026

Install

$ npx -y skills add cloudai-x/claude-workflow-v2 --skill designing-tests --agent claude-code

Installs into .claude/skills of the current project.

Files

Designing Tests

When to Load

  • Trigger: Adding tests, test strategy planning, improving coverage, setting up testing infrastructure
  • Skip: Non-test code changes where testing is not part of the task

Test Implementation Workflow

Copy this checklist and track progress:

Test Implementation Progress:
- [ ] Step 1: Identify what to test
- [ ] Step 2: Select appropriate test type
- [ ] Step 3: Write tests following templates
- [ ] Step 4: Run tests and verify passing
- [ ] Step 5: Check coverage meets targets
- [ ] Step 6: Fix any failing tests

Testing Pyramid

Apply the testing pyramid for balanced coverage:

        /\
       /  \     E2E Tests (10%)
      /----\    - Critical user journeys
     /      \   - Slow but comprehensive
    /--------\  Integration Tests (20%)
   /          \ - Component interactions
  /------------\ - API contracts
 /              \ Unit Tests (70%)
/________________\ - Fast, isolated
                   - Business logic focus

Framework Selection

JavaScript/TypeScript

Sponsors

Details

Repository
github.com/cloudai-x/claude-workflow-v2
Categories
Testing & QA, Debugging, Automation & Workflows, Cloud & Infrastructure
License
MIT
First seen
Jun 11, 2026

More from cloudai-x/claude-workflow-v2

All 14
1jwilger avatarcode-reviewjwilger/agent-skillsThree-stage code review protocol covering spec compliance, code quality, and domain integrity. Use this skill whenever the user asks to review code, prepare or 163skills.sh installs
2m1heng avataragent-browserm1heng/clawdbot-feishuAutomates browser interactions for web testing, form filling, screenshots, and data extraction. Use when the user needs to navigate websites, interact with web 156skills.sh installs
3cinience avataralicloud-observability-ptscinience/alicloud-skillsManage Alibaba Cloud Performance Testing Service (PTS) via OpenAPI/SDK. Use for scene lifecycle operations, test start/stop control, report retrieval, and metad126skills.sh installs
4butterbase-ai avatarjourney-templatesbutterbase-ai/butterbase-skillsUse as the optional template-publishing stage of the Butterbase journey, after deploy (and substrate, if used). Walks the user through authoring a clone-ready R0skills.sh installs
5callstackincubator avatardogfoodcallstackincubator/agent-skillsSystematically explore and test a mobile app on iOS/Android with agent-device to find bugs, UX issues, and other problems. Use when asked to "dogfood", "QA", "e0skills.sh installs
6claude-office-skills avatarBrowser Automationclaude-office-skills/skillsAutomate web browser interactions, scraping, testing, and workflow automation with Puppeteer/Playwright0skills.sh installs