← Back to Skills Marketplace
aicodem

Aicodem skill

by Aicodem · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
301
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install aicodem-xmind-testcase
Description
生成 XMind 格式的测试用例思维导图文件。基于测试用例数据自动生成结构化的 XMind 文件,支持电商消费券、登录、注册、下单等多种测试场景。
README (SKILL.md)

AICodeM XMind 测试用例生成器

生成 XMind 格式的测试用例思维导图文件。

功能

  • 根据测试用例数据自动生成 XMind 文件
  • 支持多层级结构(模块 → 测试点 → 用例 → 详情)
  • 每条用例包含:前置条件、测试步骤、预期结果、优先级
  • 输出文件兼容 XMind、MindManager、FreeMind 等工具

使用方法

方式 1:直接调用技能

{
  "skill": "aicodem-xmind-testcase",
  "input": {
    "test_data": {
      "模块名称": [
        {
          "测试点": "功能点名称",
          "cases": [
            {
              "用例名称": "TC_001-用例描述",
              "前置条件": "执行前的环境状态",
              "步骤": ["步骤 1", "步骤 2"],
              "预期结果": "期望的输出结果",
              "优先级": "高 | 中 | 低"
            }
          ]
        }
      ]
    }
  }
}

方式 2:命令行执行

cd skills/aicodem-xmind-testcase
python3 scripts/generate_xmind.py

输入数据格式

{
  "模块名称": [
    {
      "测试点": "功能点名称",
      "cases": [
        {
          "用例名称": "TC_001-用例描述",
          "前置条件": "执行前的环境状态",
          "步骤": ["步骤 1", "步骤 2"],
          "预期结果": "期望的输出结果",
          "优先级": "高 | 中 | 低"
        }
      ]
    }
  ]
}

输出文件结构

测试用例
├── 模块 1
│   ├── 测试点 1
│   │   └── TC_001-用例名称 [优先级]
│   │       ├── 前置条件:...
│   │       ├── 测试步骤
│   │       │   ├── 1. 步骤 1
│   │       │   └── 2. 步骤 2
│   │       └── 预期结果:...
│   └── 测试点 2
└── 模块 2

示例

电商消费券测试用例

{
  "1-领取功能测试": [
    {"测试点": "正常领取流程", "cases": [
      {"用例名称": "TC_RECV_001-正常领取", "前置条件": "用户已登录", "步骤": ["点击领取"], "预期结果": "领取成功", "优先级": "高"}
    ]},
    {"测试点": "限领规则", "cases": [
      {"用例名称": "TC_RECV_002-超限领取", "前置条件": "已达限领上限", "步骤": ["点击领取"], "预期结果": "提示已超限", "优先级": "高"}
    ]}
  ],
  "2-使用功能测试": [
    {"测试点": "门槛验证", "cases": [
      {"用例名称": "TC_USE_001-满足门槛", "前置条件": "订单金额达标", "步骤": ["选择消费券"], "预期结果": "抵扣成功", "优先级": "高"}
    ]}
  ]
}

依赖

  • Python 3.6+
  • 标准库 zipfile (无需额外安装)

文件说明

aicodem-xmind-testcase/
├── SKILL.md              # 技能说明文档(本文件)
├── skill.yaml            # 技能配置文件
├── scripts/
│   └── generate_xmind.py # 生成脚本入口
├── examples/
│   └── coupon_test.json  # 示例输入数据
└── LICENSE               # MIT License

注意事项

  1. 生成的 .xmind 文件是标准 ZIP 格式,可直接用 XMind 打开
  2. 如果 XMind 打不开,可尝试导入 OPML 格式(需额外配置)
  3. 用例名称建议包含 TC 编号,便于追踪管理
  4. 优先级字段可选,默认显示为"中"

版本历史

  • v1.0.0 (2026-03-13): 初始版本,支持基础 XMind 生成
Usage Guidance
This skill appears to do what it claims: convert structured test-case JSON into a .xmind file using the included Python script. Before installing/using it: (1) review scripts/generate_xmind.py yourself (it runs locally and writes an output file in your working directory); (2) run it in a sandbox or with non-sensitive/example JSON first to confirm behavior; (3) ensure you have Python 3.6+ available; (4) verify any JSON inputs come from trusted sources (the script will read whatever file path you give it). There are no signs of network calls, secret access, or privilege escalation in the provided files.
Capability Analysis
Type: OpenClaw Skill Name: aicodem-xmind-testcase Version: 1.0.0 The skill bundle is a legitimate utility designed to generate XMind mind map files from structured JSON test case data. The core logic in `scripts/generate_xmind.py` uses only Python standard libraries (zipfile, json) to assemble the XML components of an XMind file locally. There is no evidence of network communication, unauthorized file access, or malicious prompt injection attempts in the documentation.
Capability Assessment
Purpose & Capability
Name/description advertise generating XMind test-case files; the package contains a Python script that reads JSON test data and writes a .xmind (ZIP) file. No unrelated env vars, binaries, or cloud credentials are requested.
Instruction Scope
SKILL.md instructs the agent to call the included Python script or provide JSON input; instructions reference only input JSON and output .xmind files. There are no instructions to read unrelated system files, access external endpoints, or exfiltrate data.
Install Mechanism
No install spec; this is instruction-and-script based and relies only on Python 3.6+ and standard library modules (zipfile, json, os, sys). No downloads from remote URLs or package registries are used.
Credentials
The skill requests no environment variables, credentials, or config paths. The code uses only standard-library modules and local file I/O consistent with producing an output file.
Persistence & Privilege
always is false and the skill is user-invocable. It does not request persistent platform privileges or modify other skills/configuration.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install aicodem-xmind-testcase
  3. After installation, invoke the skill by name or use /aicodem-xmind-testcase
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
- Initial release of aicodem-xmind-testcase skill. - Automatically generates structured XMind test case mind map files from input test case data. - Supports hierarchical structure: Module → Test Point → Test Case → Details. - Each test case includes: preconditions, steps, expected results, and priority. - Output files are compatible with XMind, MindManager, and FreeMind.
Metadata
Slug aicodem-xmind-testcase
Version 1.0.0
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 1
Frequently Asked Questions

What is Aicodem skill?

生成 XMind 格式的测试用例思维导图文件。基于测试用例数据自动生成结构化的 XMind 文件,支持电商消费券、登录、注册、下单等多种测试场景。 It is an AI Agent Skill for Claude Code / OpenClaw, with 301 downloads so far.

How do I install Aicodem skill?

Run "/install aicodem-xmind-testcase" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Aicodem skill free?

Yes, Aicodem skill is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Aicodem skill support?

Aicodem skill is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Aicodem skill?

It is built and maintained by Aicodem (@aicodem); the current version is v1.0.0.

💬 Comments