Test Case Xmind

根据产品需求文档、前端技术文档、后端技术文档、交互稿、接口说明、截图和相关项目资料生成结构化软件测试用例;校验用例格式;按“用例标题/前置条件/步骤/预期结果”模板导出 .xmind 脑图文件。适用于生成 QA 测试用例、验收用例、功能用例、回归用例、边界用例,或根据一个或多个输入文档生成 XMind 测试用例脑图。

43 stars 4 forksTesting & QA

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add xiaoce-xiaoce/testing-skills-xiaoce --skill test-case-xmind
Manual install
git clone --depth 1 https://github.com/xiaoce-xiaoce/testing-skills-xiaoce.git /tmp/testing-skills-xiaoce
mkdir -p ~/.claude/skills
cp -r /tmp/testing-skills-xiaoce/test-case-xmind ~/.claude/skills/test-case-xmind

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# 测试用例 XMind

## 概览

使用本 skill 将产品和技术资料转换成结构化测试用例,并导出 `.xmind` 文件。

用户的真实使用方式是:提供一个或多个输入文档,然后要求 Codex 使用本 skill 生成测试用例。不要要求用户手动运行脚本,除非用户正在调试或维护这个 skill。Codex 应该在生成结构化用例后自动调用脚本完成校验和导出。

用例必须包含:

- 用例标题
- 前置条件
- 步骤
- 每个步骤对应的预期结果

一条用例只有一个前置条件组,可以包含多个步骤。每个步骤必须且只能对应一个预期结果。

## 工作流程

1. 收集用户提供的源文档,检查所有会影响行为、数据、页面状态、权限、接口、校验、异常处理或边界场景的输入。
2. 在编写结构化用例 JSON 前,阅读 `references/case_schema.md`。
3. 在决定覆盖范围前,阅读 `references/coverage_rules.md`。
4. 根据 schema 生成结构化 `cases.json`。
5. 运行 `scripts/validate_cases.py` 校验 JSON,并修复所有错误。
6. 运行 `scripts/export_xmind.py` 生成 `.xmind` 文件。
7. 生成 `.xmind` 后结束操作。不要再生成 HTML 预览页,也不要尝试自动打开浏览器。

`.xmind` 文件是主要交付物。

## 输入文档分析

当用户提供多个源文档时,要交叉分析它们,而不是分别做摘要:

- 需求文档用于识别用户价值、业务规则和验收标准。
- 前端技术文档用于识别页面状态、路由、前端校验、浏览器约束和可见行为。
- 后端技术文档用于识别接口契约、持久化规则、权限、异步任务、幂等性和失败模式。
- 交互稿/原型用于识别页面流转、组件状态、文案、错误展示位置、空状态、加载态和禁用态。

如果文档之间存在冲突,优先在用例备注或假设中记录你的判断。只有当冲突会阻碍继续生成有价值的用例时,才向用户提问。

## 覆盖要求

生成可执行、可评审的测试用例。优先保证有意义的覆盖,而不是堆砌大量重复用例。

需要覆盖:

- 核心成功路径
- 必填项和校验失败
- 边界值
- 空状态、加载态和错误态
- 不同权限和角色差异
- 接口失败,以及可重试/不可重试错误
- 前后端数据一致性
- 如果源文档提到兼容性或响应式要求,也要覆盖相关场景

## 结构化输出

导出前先将用例保存为 JSON。最小示例:

```json
{
  "title": "登录功能测试用例",
  "modules": [
    {
      "name": "登录",
      "cases": [
        {
          "title": "使用有效账号和密码登录成功",
          "precondition": "已存在一个注册用户,且用户已打开登录页面。",
          "steps": [
            {
              "action": "输入有效账号和密码,并提交登录表单。",
              "expected": "用户认证成功,并跳转到默认落地页。"
            }
          ]
        }
      ]
    }
  ]
}
```

## 脚本
Read the full skill on GitHub

Details

Skill name
test-case-xmind
Path
test-case-xmind/SKILL.md
Repo updated
14 June 2026

FAQ

What does the Test Case Xmind skill do?

根据产品需求文档、前端技术文档、后端技术文档、交互稿、接口说明、截图和相关项目资料生成结构化软件测试用例;校验用例格式;按“用例标题/前置条件/步骤/预期结果”模板导出 .xmind 脑图文件。适用于生成 QA 测试用例、验收用例、功能用例、回归用例、边界用例,或根据一个或多个输入文档生成 XMind 测试用例脑图。

How do I install the Test Case Xmind skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add xiaoce-xiaoce/testing-skills-xiaoce --skill test-case-xmind. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Test Case Xmind popular?

It lives in xiaoce-xiaoce/testing-skills-xiaoce, which has 43 GitHub stars and 4 forks.

Related skills

API Scenario Automation

43

xiaoce-xiaoce/testing-skills-xiaoce

根据需求文档、测试用例、OpenAPI、Postman、Apipost、Swagger、Markdown 接口文档、后端文档或后端路由生成场景化接口自动化。适用于生成接口流程编排、scenarios.yaml/scenarios.json 场景文件、unittest/pytest 兼容的接口自动化测试,以及带数据依赖的端到端接口测试;不用于生成单元测试。

Productivity & Notes

UI Scenario Automation

43

xiaoce-xiaoce/testing-skills-xiaoce

根据需求文档、UI 文档、截图、前端文档、已有测试用例(如 cases.json)或可访问的本地页面生成并执行浏览器 UI 场景验证。适用于驱动 Codex 内置浏览器进行点击、输入、导航、检查页面状态、截图取证、验证用户流程、生成 UI 检查报告、创建 ui-scenarios.json;也可在用户明确要求时导出 Playwright 测试。

Frontend & Design

Ansible Pytest Migrate

49

leogallego/ai-skills-ansible

Migrate off, remove, deprecate, or audit the pytest-ansible plugin in an Ansible collection repository. Identifies real plugin use before editing dependencies or test commands, so ordinary Ansible variables and module mocks are never mistaken for plugin use. Use when user says "remove pytest-ansible", "migrate off pytest-ansible", "drop the pytest-ansible plugin", or "audit pytest-ansible usage". Plain pytest and ansible-test are retained; only the pytest-ansible plugin is removed. Do NOT use for general Ansible migrations such as FQCN conversion or inventory restructuring, and do NOT use for

Testing & QA

Sequencing Toolkit

79

LeadMagic/gtm-skills

Complete outreach sequencing toolkit — Smartlead, Instantly, Salesloft, Outreach, Lemlist setup and optimization. Covers mailbox rotation, warmup, A/B testing, deliverability monitoring, and multi-channel orchestration across all major sequencing platforms. Use when setting up or optimizing an outreach sequencing platform. Triggers on: "sequencing toolkit", "Smartlead setup", "Instantly optimization", "outreach platform comparison".

Testing & QAIn 1 list18

Bestow Curse

113

Hmbown/Wizards-of-the-Ghosts

Bestow Curse saddles a target with a lasting disadvantage. The real-world version is constraint injection: deliberately adding friction, limitations, or handicaps to see how a system, process, or team adapts. This is the skill of resilience testing through artificial adversity — bandwidth throttling, feature removal, resource reduction.

Testing & QA11

Lead Finding

79

LeadMagic/gtm-skills

Find qualified prospects and decision-makers from ICP criteria using public research, company signals, role mapping, and source confidence. Produces a prospect list spec, search strategy, qualification rubric, source log, and QA checklist. Use when building target lists or finding buyers at named accounts.

Testing & QAIn 1 list18

Browse the most popular Claude skills, all testing & qa skills, or write your own with the skills generator.