← 返回 Skills 市场
req-to-testcase
作者
DeathKnightOrg
· GitHub ↗
· v1.0.0
· MIT-0
100
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install req-to-testcase
功能描述
从需求文档自动生成全面覆盖的测试用例,并支持导出为 XMind 格式。 当用户上传需求文档(Word、PDF、Markdown、TXT)并要求生成测试用例时,必须触发本技能。 触发关键词:上传需求文档、解析需求、生成测试用例、测试用例转 XMind、 需求拆解、需求分析生成测试、全面测试覆盖、导出 XMind、生...
安全使用建议
This skill appears to do what it claims: parse uploaded requirement documents, generate structured test cases, and produce an XMind file. Things to consider before installing or enabling it:
- Automatic triggering: SKILL.md requires the skill to run whenever a user uploads a document or mentions certain keywords, even if the description is incomplete. If you have sensitive documents that should not be processed automatically, disable auto-triggering or require explicit user confirmation before running.
- Dependency installation: The scripts suggest installing Python packages at runtime and include guidance to use pip with --break-system-packages. On shared or managed hosts this can alter the environment or be blocked. Prefer installing dependencies in an isolated environment (virtualenv / container) under controlled conditions rather than allowing the skill to pip-install into the system interpreter.
- File handling: The reader processes arbitrary uploaded files. While the code only reads and extracts text, parsing third-party document formats (PDF, DOCX, Excel) relies on third-party libraries that could have vulnerabilities. Run in an isolated environment if uploads could be untrusted.
- Review included code: The repository is small and readable; if you require higher assurance, review the two scripts (read_requirement_file.py and xmind_tools2.py) yourself or have them audited. They do not contain network calls or credential exfiltration logic.
- Output sharing: The skill uses present_files (platform tool) to share outputs; ensure your sharing policies are enforced and files are stored/cleaned according to your data retention rules.
If you are comfortable with the operational notes above (isolate dependency installs, restrict automatic triggers, and vet untrusted uploads), this skill is coherent with its stated purpose.
功能分析
Type: OpenClaw Skill
Name: req-to-testcase
Version: 1.0.0
The skill bundle is a legitimate tool designed to parse requirement documents and generate XMind test cases. The Python scripts (read_requirement_file.py and xmind_tools2.py) use standard libraries like pandas, pypdf, and python-docx to process files and the xmind library for output generation, with no evidence of data exfiltration, unauthorized network access, or malicious intent. While the instructions suggest using '--break-system-packages' for dependency installation, this is a common requirement in specific containerized environments and does not indicate malice in this context.
能力评估
Purpose & Capability
Name/description, SKILL.md, and included scripts align: read various document formats, parse requirements, generate multi-type test cases, and produce a .xmind file. The included read_requirement_file.py and xmind_tools2.py implement the advertised functionality and reference only upload/output directories (/mnt/user-data/uploads, /mnt/user-data/outputs). No unrelated credentials, binaries, or external services are requested.
Instruction Scope
Runtime instructions are focused on the task (list uploads, run the reader script, parse text, call XMind generator). However SKILL.md explicitly instructs the agent to trigger immediately whenever a user uploads a document or mentions certain keywords even if the description is incomplete; this grants the skill broad automatic behavior that may process sensitive uploads without further user confirmation. The SKILL.md also instructs using present_files to share outputs (expected for delivering files).
Install Mechanism
There is no formal install spec, but both scripts instruct the operator to pip install missing Python packages, using --break-system-packages in error messages. Ad-hoc pip installation at runtime (especially with --break-system-packages) can modify the host environment or be blocked/unsafe on managed systems. No network endpoints or obfuscated downloads are present in the code files themselves, and included files are local, but automatic dependency installation is an operational risk to be considered.
Credentials
The skill requires no environment variables, credentials, or external config paths beyond reading files from /mnt/user-data/uploads and writing outputs to /mnt/user-data/outputs. The scope of filesystem access in the instructions is reasonable for the declared purpose. The scripts do not attempt to read environment variables or other system configuration.
Persistence & Privilege
Skill flags are default (always:false, user-invocable:true, model-invocation allowed). The skill does not request persistent system-wide privileges or attempt to modify other skills. It writes generated files and creates temporary extraction directories while building .xmind files — expected behavior for this functionality.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install req-to-testcase - 安装完成后,直接呼叫该 Skill 的名称或使用
/req-to-testcase触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
req-to-testcase 1.0.0
- 首次发布:支持上传需求文档,自动生成全面覆盖的测试用例,并导出为 XMind 格式。
- 自动识别需求文档格式(Word、PDF、Markdown、TXT、Excel、CSV),一键读取。
- 需求拆解:将原始文本结构化,智能识别功能点、业务规则、约束和数据流。
- 多维度自动生成测试用例(正向、逆向、边界、业务规则、用户体验)并分级优先级。
- 一键导出测试用例为 XMind 脑图(xmind 文件)格式,支持直接下载与分享。
- 智能触发机制:只要上传文档且涉及“测试”“用例”等关键词即可即时生成用例和脑图。
元数据
常见问题
req-to-testcase 是什么?
从需求文档自动生成全面覆盖的测试用例,并支持导出为 XMind 格式。 当用户上传需求文档(Word、PDF、Markdown、TXT)并要求生成测试用例时,必须触发本技能。 触发关键词:上传需求文档、解析需求、生成测试用例、测试用例转 XMind、 需求拆解、需求分析生成测试、全面测试覆盖、导出 XMind、生... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 100 次。
如何安装 req-to-testcase?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install req-to-testcase」即可一键安装,无需额外配置。
req-to-testcase 是免费的吗?
是的,req-to-testcase 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
req-to-testcase 支持哪些平台?
req-to-testcase 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 req-to-testcase?
由 DeathKnightOrg(@deathknightorg)开发并维护,当前版本 v1.0.0。
推荐 Skills