본문으로 건너뛰기
cccskills
무료GitHub에 공개

cc-test-plan

Generate a structured test plan for a feature or module — covers unit, integration, contract, and edge cases without writing implementation code.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(1)

  • SKILL.md4.5 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

test-plan

Invoke as $cc-test-plan. The user request follows the skill mention.

Test Plan Workflow

Scope: $ARGUMENTS

Specify what to plan tests for. Examples:

  • A feature name: user authentication
  • A module or file path: src/orders/OrderService.kt
  • A Task Card title: Add paginated product listing endpoint
  • A PR or branch: feature/payment-retry

If $ARGUMENTS is empty, describe the scope in your next message before proceeding.


Step 0 — CCEP Bootstrap

Command: test-plan (fixed for this workflow — do not infer from user text)

  1. Run: npx cc-codeconductor ccep profile test-plan --output json to get the phases and their roles.
  2. For each delegated phase, run: npx cc-codeconductor ccep compile --command test-plan --phase <phase-id> "$ARGUMENTS" --view prompt --output json
  3. After planner/intake JSON is available, run: npx cc-codeconductor ccep evaluate --command test-plan --input <planner.json> --output json. If stop is true, show questions or risks and wait for human input.
  4. Pass each subagent only the compiled prompt for its phase — never forward raw $ARGUMENTS to planners.

Step 1 — Scope confirmation

Before generating the test plan, confirm the scope is well-defined.

A valid scope includes:

  • The behavior or module under test
  • The acceptance criteria or expected behavior (from the Task Card if available)
  • Known edge cases or failure modes

If the scope is vague (e.g., "test the whole service"), ask one clarifying question and wait for the answer.


Step 2 — Test plan generation (Tester role, planning mode)

Adopt the tester role as defined in AGENTS.md.

Produce a test plan document — not test code. The plan will be used as input when tests are actually written.

Cover the following layers:

Unit tests

  • Individual functions or methods in isolation
  • One test per behavior, not per method
  • Input/output contracts, null handling, type coercion

Integration tests

  • Interactions between two or more components
  • Database read/write cycles (if applicable)
  • External service boundaries (mocked or stubbed)

Contract tests

  • API endpoint contracts: request shape, response shape, status codes
  • Event schema contracts (if event-driven components are in scope)

Edge cases

  • Empty inputs, boundary values, max/min limits
  • Concurrent access (if shared state is involved)
  • Failure paths: what happens when a dependency is unavailable

Regression cases

  • Known past bugs that must not recur (include reference if available)

Step 3 — Test Plan format

Produce the plan in this format:

## Test Plan — [Scope Name]

### Scope
[What is being tested and why]

### Unit Tests
| Test ID | Target | Scenario | Expected Result |
| ------- | ------ | -------- | --------------- |
| U-001   | ...    | ...      | ...             |

### Integration Tests
| Test ID | Components | Scenario | Expected Result |
| ------- | ---------- | -------- | --------------- |
| I-001   | ...        | ...      | ...             |

### Contract Tests
| Test ID | Endpoint/Event | Property | Expected Value |
| ------- | -------------- | -------- | -------------- |
| C-001   | ...            | ...      | ...            |

### Edge Cases
| Test ID | Input/Condition | Expected Behavior |
| ------- | --------------- | ----------------- |
| E-001   | ...             | ...               |

### Regression Cases
| Test ID | Reference | Scenario | Must Not Happen |
| ------- | --------- | -------- | --------------- |
| R-001   | ...       | ...      | ...             |

### Coverage Targets
- Minimum unit coverage: [% or "all acceptance criteria covered"]
- Integration scenarios: [count]
- Contract validations: [count]

### Out of Scope
[What this test plan explicitly does not cover and why]

Step 4 — Human review

Show the Test Plan before any tests are written. The Test Plan is an artifact for review and approval.

Writing test code is a separate action — run /feature or add a test task to implement from this plan.


Completion

Deliver the complete Test Plan document. Save it as docs/test-plans/[scope-slug].md if requested.

This command produces a plan, not test files. No production code and no test code is written during this command.

Next

Implement against this plan with $cc-tdd-cycle or $cc-feature.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Use when adding monitoring, metrics, logging, or tracing to Spring AI or LLM integration code. Covers token tracking, latency measurement, cost estimation, and prompt/response logging. Use when user mentions AI monitoring, token costs, or LLM observability.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

lgzarturo/springboot-course32026년 10월 20일 업데이트

android

무료

Provides expert knowledge for building modern native Android apps using Kotlin, Jetpack Compose, Material Design 3, MVI architecture, Hilt dependency injection, and Media3/ExoPlayer.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

lgzarturo/springboot-course32026년 10월 20일 업데이트

Design, implement, review, and audit Android Jetpack Compose UI/UX for phone interfaces. Use when a request concerns concrete Compose layout, components, interaction, accessibility, or visual behavior. Do not activate for framework or dependency presence alone; non-UI Android work is excluded.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

lgzarturo/springboot-course32026년 10월 20일 업데이트

Provides expert knowledge for designing, implementing, and managing REST API versioning strategies with deprecation workflows.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

lgzarturo/springboot-course32026년 10월 20일 업데이트

astro

무료

Provides expert knowledge for building Astro 5+ sites with Islands Architecture, Content Collections, TypeScript, and performance-first rendering strategies.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

lgzarturo/springboot-course32026년 10월 20일 업데이트

Audits token storage mechanisms to prevent XSS-based JWT theft.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

lgzarturo/springboot-course32026년 10월 20일 업데이트

lgzarturo의 스킬 모두 보기

이 스킬의 문제 신고