Test Case Design logo

Test Case Design

Community
BlueprintOS
test-case-design

测试用例设计 — 覆盖正常路径、边界条件、异常路径、合规校验、性能安全 5 大类用例。开发前需定义验收标准、为测试团队提供输入时调用本 skill,确保 BRD 功能点全部可验证。

Overview

PublisherBlueprintOS
Repositoryanalysis-to-delivery
Skill nametest-case-design
Stars
26
Forks
2
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by BlueprintOS on GitHub. Read the source before you install it.

Installation

Install the Test Case Design AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/BlueprintOS/analysis-to-delivery/tree/main/skills/user-invoked/test-case-design
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/BlueprintOS/analysis-to-delivery.git /tmp/analysis-to-delivery
mkdir -p .claude/skills
cp -r /tmp/analysis-to-delivery/skills/user-invoked/test-case-design .claude/skills/test-case-design
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Test Case Design in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Test Case Design on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Test Case Design is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Test-Case-Design — 测试用例设计

Contract

  • 输入: 已签字的 BRD,可选 04-合规评审.md,业务规则与验收标准
  • 输出: 07-测试用例设计.md
  • 门控: BRD 功能已覆盖;正常/边界/异常/合规 4 大类齐;用户签字
  • Required rules: stage-gate, no-field-guessing, doc-numbering, goal-boundary
  • Required paths: knowledge-path, doc-naming-path
  • 下一步: /to-prd

适用场景

  • BRD 通过,需要明确"什么算成功"
  • 开发前需要验收标准
  • 测试团队需要用例输入

流程步骤

1. 加载模板

  • templates/TEST_CASE_DESIGN.md

2. 覆盖范围

按以下 5 大类逐项设计:

类别内容占比建议
正常路径主流程 happy path30%
边界条件极值、空值、最大/最小20%
异常路径错误输入、超时、外部依赖失败30%
合规校验数据授权、审计、效期锁定10%
性能/安全并发、SQL 注入、XSS10%

3. 用例结构

每条用例至少包含:

字段说明
用例编号TC-{模块}-{序号}
关联需求BRD §{章节}
前置条件初始数据/状态
输入测试数据
操作步骤步骤化
预期结果精确、可验证
实际结果测试执行时填
通过条件PASS/FAIL 判定标准

4. 业务规则回测(从 BRD §四 提取)

对每条业务规则设计至少 1 个用例:

  • 正向:触发条件满足 → 期望行为
  • 反向:触发条件不满足 → 期望拦截
  • 边界:临界值

输出

  • 07-测试用例设计.md

调用的 rule

  • rules/stage-gate — 阶段 5 门控

结束条件

  • 用例覆盖 BRD §四 全部功能点
  • 异常路径 100%(每条主流程至少 1 个异常用例)
  • 业务规则正向 + 反向 + 边界 三类齐
  • 合规校验用例关联到合规评审条款
  • 用户签字进入 /to-prd

反模式

  • ❌ 5 大类缺一(正常路径/边界条件/异常路径/合规校验/性能安全) — testcase-coverage-check.py --strict 直接 fail
  • ❌ TC 编号不规范(TC-001 写成 Test001) — 必须 TC-N-xxx / TC-B-xxx / TC-E-xxx / TC-C-xxx / TC-P-xxx 前缀
  • ❌ 合规校验用例未关联到合规条款 — 每条 TC-C-* 必须标 GSP-XXX / GDPR-Art-X 等条款号
  • ❌ 只写正常路径不写异常 — 主流程:异常用例比例 ≥ 1:1,异常路径 ≥ 90% 覆盖
  • ❌ 性能测试写"应该很快" — 必须量化(P95 < Xs / 并发 Y 单/秒)
  • ❌ 用例步骤空泛("操作直到成功") — 必须分 1/2/3/4 步,每步可复现

Frequently asked questions

What does the Test Case Design AI skill do?

测试用例设计 — 覆盖正常路径、边界条件、异常路径、合规校验、性能安全 5 大类用例。开发前需定义验收标准、为测试团队提供输入时调用本 skill,确保 BRD 功能点全部可验证。

Why use Test Case Design on TypingMind?

Because you install it once and use it with any model. Test Case Design is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Test Case Design in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/BlueprintOS/analysis-to-delivery/tree/main/skills/user-invoked/test-case-design. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Test Case Design?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Test Case Design?

As many as you like. As long as a model supports skills, you can use Test Case Design with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Test Case Design AI skill free?

Yes. It is published on GitHub by BlueprintOS under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇