designing-tests
Designs and implements testing strategies for any codebase. Use when adding tests, improving coverage, setting up testing infrastructure, debugging test failures, or when asked about unit tests, integration tests, or E2E testing.
npx skills add CloudAI-X/claude-workflow-v2 --skill designing-tests --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# 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 | Type | Recommended | Alternative | | ----------- | --------------- | ---------------- | | Unit | Vitest | Jest | | Integration | Vitest + MSW | Jest + SuperTest | | E2E | Playwright | Cypress | | Component | Testing Library | Enzyme | ### Pyth
- When to Load
- Test Implementation Workflow
- Testing Pyramid
- Framework Selection
- JavaScript/TypeScript
- Python
- Go
- Test Structure Templates
- Unit Test
- Integration Test
- E2E Test
- Coverage Strategy
- What to Cover
- Coverage Thresholds
Run tests npm test Run with coverage npm test -- --coverage Run specific test file npm test -- path/to/test.spec.ts Run in watch mode during development npm test -- --watch
What does the designing-tests skill do?
Designs and implements testing strategies for any codebase. Use when adding tests, improving coverage, setting up testing infrastructure, debugging test failures, or when asked about unit tests, integration tests, or E2E testing.
How do I install it?
Run `npx skills add CloudAI-X/claude-workflow-v2 --skill designing-tests --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From CloudAI-X/claude-workflow-v2, a repository with 1,397 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
