← Back to Skills Marketplace
req-to-testcase
by
DeathKnightOrg
· GitHub ↗
· v1.0.0
· MIT-0
100
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install req-to-testcase
Description
从需求文档自动生成全面覆盖的测试用例,并支持导出为 XMind 格式。 当用户上传需求文档(Word、PDF、Markdown、TXT)并要求生成测试用例时,必须触发本技能。 触发关键词:上传需求文档、解析需求、生成测试用例、测试用例转 XMind、 需求拆解、需求分析生成测试、全面测试覆盖、导出 XMind、生...
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install req-to-testcase - After installation, invoke the skill by name or use
/req-to-testcase - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
req-to-testcase 1.0.0
- 首次发布:支持上传需求文档,自动生成全面覆盖的测试用例,并导出为 XMind 格式。
- 自动识别需求文档格式(Word、PDF、Markdown、TXT、Excel、CSV),一键读取。
- 需求拆解:将原始文本结构化,智能识别功能点、业务规则、约束和数据流。
- 多维度自动生成测试用例(正向、逆向、边界、业务规则、用户体验)并分级优先级。
- 一键导出测试用例为 XMind 脑图(xmind 文件)格式,支持直接下载与分享。
- 智能触发机制:只要上传文档且涉及“测试”“用例”等关键词即可即时生成用例和脑图。
Metadata
Frequently Asked Questions
What is req-to-testcase?
从需求文档自动生成全面覆盖的测试用例,并支持导出为 XMind 格式。 当用户上传需求文档(Word、PDF、Markdown、TXT)并要求生成测试用例时,必须触发本技能。 触发关键词:上传需求文档、解析需求、生成测试用例、测试用例转 XMind、 需求拆解、需求分析生成测试、全面测试覆盖、导出 XMind、生... It is an AI Agent Skill for Claude Code / OpenClaw, with 100 downloads so far.
How do I install req-to-testcase?
Run "/install req-to-testcase" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is req-to-testcase free?
Yes, req-to-testcase is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does req-to-testcase support?
req-to-testcase is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created req-to-testcase?
It is built and maintained by DeathKnightOrg (@deathknightorg); the current version is v1.0.0.
More Skills