| name | testing-workflow |
| description | Use when someone wants to build a complete, stable test suite from scratch โ starting with TDD discipline, moving into coverage strategy, and ending with flaky test elimination. Triggers on: "testing workflow", "ํ
์คํธ ์ ์ฒด ํ๋ก์ธ์ค", "TDD๋ถํฐ ์ปค๋ฒ๋ฆฌ์ง๊น์ง", "full |
| type | workflow |
| theme | engineering |
| scenarios | ["testing workflow ์ ์ฒด ๋๋ ค์ค","TDD๋ถํฐ ์ปค๋ฒ๋ฆฌ์ง ์ ๋ต๊น์ง ๋จ๊ณ๋ณ๋ก ํด๋ณด์","full test cycle from scratch","CI ํ
์คํธ ์์ ํ ํ๋ก์ธ์ค ์์","ํ
์คํธ ์ฒด๊ณ ์ ๋๋ก ์ก๊ณ ์ถ์ด","flaky test ํฌํจํด์ ์ ์ฒด ํ
์คํธ ์ ๋ต ์ง์ค"] |
| estimated_time | 2-8 hours (full), 30-120 min per step |
| compatibility | {"recommended":["think-tool"],"optional":["sequential-thinking"],"remote_mcp_note":"think-tool์ RED ๋จ๊ณ ์คํจ ๊ฒ์ฆ๊ณผ ์ปค๋ฒ๋ฆฌ์ง ๊ฐญ ๋ถ์์์ ํนํ ์ ํจํฉ๋๋ค. sequential-thinking์ flaky test ํธ๋ฆฌ์์ง ์์๋ฅผ ๊ฐ์ ํด ์์ธ ๊ฑด๋๋์ ๋ฐฉ์งํฉ๋๋ค. Claude ์ค์ โ MCP Servers์์ remote SSE ์๋ํฌ์ธํธ๋ฅผ ์ถ๊ฐํ์ธ์."} |
Testing Workflow
3-step test quality process: write first โ strategize coverage โ stabilize CI.
When to Use / When Not to Use
| Use | Skip |
|---|
| Starting a new feature with no tests | Adding a single test to already-covered code |
| Test suite exists but has no coverage strategy | Consistent (non-flaky) test failures โ those are bugs |
| CI is failing intermittently due to flaky tests | Quick one-off unit test request |
Workflow Overview
[1] Test-Driven Development
Write failing test โ minimal code โ refactor
โ
[2] Test Coverage Strategy
Audit coverage gaps โ test pyramid โ test plan
โ
[3] Flaky Test Elimination
Triage โ root cause โ fix โ CI hardening
Steps
Step 1 โ Test-Driven Development
Skill: test-driven-development
Goal: Drive new feature implementation through failing tests first; enforce red-green-refactor discipline
Input: Feature requirements or acceptance criteria
Output: Passing test suite built test-first; implementation with no production code written before a failing test
Skip if: Feature is a throwaway prototype or you are adding tests to existing untested code (go to Step 2)
"Step 1 ์์" ๋๋ "TDD๋ก ์ด ๊ธฐ๋ฅ ๊ฐ๋ฐํด์ค"
Step 2 โ Test Coverage Strategy
Skill: test-master
Goal: Audit coverage gaps, define the test pyramid, produce a formal test plan covering unit, integration, E2E, performance, and security tiers
Input: Codebase or module from Step 1 (or existing code if skipping Step 1)
Output: Coverage gap report, test plan with severity ratings, scaffolded test cases for uncovered paths
Skip if: Coverage targets are already met and a current test plan exists
"Step 2 ์์" ๋๋ "ํ
์คํธ ์ปค๋ฒ๋ฆฌ์ง ๋ถ์ํ๊ณ ์ ๋ต ์ก์์ค"
Step 3 โ Flaky Test Elimination
Skill: flaky-test-analyzer
Goal: Diagnose and fix intermittent failures in CI; apply prevention rules to the whole suite
Input: Failing CI run logs or list of known flaky tests from Step 2
Output: Root cause per flaky test, concrete fix (code + CI config), prevention rule added to suite guidelines
Skip if: All tests pass consistently in CI with no re-run workarounds
"Step 3 ์์" ๋๋ "flaky test ์์ธ ์ฐพ๊ณ ๊ณ ์ณ์ค"
State Tracking
์ด๋ ๋จ๊ณ์ ์๋์ง ์๋ ค์ฃผ๋ฉด ๋ฐ๋ก ํฉ๋ฅํฉ๋๋ค:
- "์ปค๋ฒ๋ฆฌ์ง๋ถํฐ" โ Step 2๋ก ์งํ
- "flaky test๋ง ๋ด์ค" โ Step 3๋ก ์งํ
- Skip ์กฐ๊ฑด์ ํด๋นํ๋ฉด ์๋์ผ๋ก ๋ค์ ๋จ๊ณ๋ก ์๋ด
What Claude Does / What You Do
| Claude | You |
|---|
| Writes failing tests with clear names (Step 1) | Confirm the test tests the right behavior |
| Writes minimal passing implementation (Step 1) | Run tests and verify pass/fail as expected |
| Coverage gap analysis, test plan scaffolding (Step 2) | Provide existing test files and coverage reports |
| Flakiness root cause + fix patterns (Step 3) | Run the failing test 20 times in isolation to confirm |
| CI config recommendations (Step 3) | Wire fixes and configure CI pipeline |
Related Skills
- Individual skills:
develop:test-driven-development, develop:test-master, develop:flaky-test-analyzer
- Before:
develop:dev-quality-workflow (if you want the full dev cycle including architecture and docs)
- After:
develop:performance-profiling-optimization (once the test suite is green and stable)