跳到正文
cccskills
免费在 GitHub 公开

cc-test-plan

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

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md3.7 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

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 invoking tester.


Step 1 — Scope confirmation

Before invoking tester, 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)

Invoke tester in planning mode — produce a test plan document, not test code. The plan will be used as input when tests are actually written.

tester must produce a Test Plan covering 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

tester produces 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 to the human before any tests are written.

The Test Plan is an artifact for review and approval. Writing test code is a separate action — invoke /cc:feature or add a test task to the board to implement from this plan.


Completion

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

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

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 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 的全部技能

报告此技能的问题