← 返回 Skills 市场
146
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install minium-test-generator
功能描述
Minium 录制脚本转测试用例工具。自动解析录制脚本,生成符合规范的测试用例和页面对象,确保步骤完整、逻辑一致。
安全使用建议
This skill appears to do what it says: parse Minium recording scripts and generate page objects and test files. Before installing or running it, consider the following:
- Review the bundled Python scripts locally (scripts/generate_pages.py, scripts/parse_steps.py, scripts/validate_steps.py) to ensure you understand what will be read and written. The code is local and there is no automatic network install, but you should still inspect it. Some generator functions are stubs/partial and the tool may need manual completion.
- The skill will ask for a full filesystem path and (per its instructions) will read your project directory structure and existing page/test files; be cautious about granting an automated agent filesystem access. Prefer to run the provided scripts yourself in a controlled environment (local machine or sandbox) rather than letting an autonomous agent execute shell commands on your system.
- Do not paste sensitive secrets or private configuration into the chat when sharing recording scripts; recording scripts can include business-specific selectors or flows. If the recording contains sensitive data, redact it before sharing.
- The SKILL.md mandates that the agent must ask for confirmation before creating or modifying files — keep that behavior and do not allow silent overwrites. Back up your project before running generation.
- There are minor documentation inconsistencies (selector priority differs between documents, SKILL.md version mismatch). Verify generated code follows your project's real conventions (basedef/basepage names and selector priority) and run validate_steps.py and your test suite on a branch/VM before merging.
If you want to proceed: run the scripts locally with your own Python interpreter and inspect the outputs, or let the agent operate only after you explicitly confirm the exact target directory and review the file list it will create/modify.
功能分析
Type: OpenClaw Skill
Name: minium-test-generator
Version: 1.0.0
The minium-test-generator skill bundle is a developer utility designed to convert Minium recording scripts into structured test cases and Page Objects. The included Python scripts (generate_pages.py, parse_steps.py, validate_steps.py) perform local file parsing and validation using standard libraries without any network activity or suspicious execution patterns. The SKILL.md instructions guide the AI agent to interact with the user's local project directory, emphasizing safety measures such as path verification and style consistency, and do not contain any malicious prompt injection or exfiltration logic.
能力评估
Purpose & Capability
Name/description match the included artifacts: Python scripts for parsing (parse_steps.py), validation (validate_steps.py) and generation (generate_pages.py), documentation and examples. The required capabilities (reading a recording file, inspecting a project directory, generating page/test files) align with the declared purpose. Minor inconsistencies: SKILL.md header version (11.0.0) differs from registry version (1.0.0) and some docs disagree on selector priority (most files prefer CSS→XPath, docs/项目基础规范.md lists XPath→CSS). These are quality issues, not indicators of malicious intent.
Instruction Scope
The SKILL.md explicitly instructs the agent to ask the user for a full path, check whether the directory exists, read existing project files, and (with user confirmation) create new files or append to existing ones. It also includes shell/PowerShell examples for checking paths (Test-Path) and suggests the user paste recording script content into the conversation. These behaviors are expected for a generator that integrates with a user's local project but are sensitive operations (reading arbitrary project files and writing to disk). The skill's guidance includes explicit confirmation steps before creating or modifying files, which mitigates risk. Also note some code in generate_pages.py is stubbed (pass) — the generator may be incomplete and may require running the provided scripts locally.
Install Mechanism
No install specification is present (instruction-only with bundled scripts). That is low-risk: nothing is pulled from the network or installed automatically. The package contains Python scripts which the user or agent can run; review those scripts before execution. No remote download URLs or archive extraction were found.
Credentials
The skill declares no environment variables, no credentials, and no config paths. All required operations (file parsing, generation, local checks) can be performed without secrets. The scripts expect certain project files to exist (base/basedef.py, base/basepage.py) which is justified by the stated purpose.
Persistence & Privilege
always: false; the skill is user-invocable and does not request permanent inclusion or modify other skills. It reads and writes files in a user-specified project path only after explicit confirmation per its own workflow. Autonomous invocation is allowed by default on the platform but does not combine with other red flags here.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install minium-test-generator - 安装完成后,直接呼叫该 Skill 的名称或使用
/minium-test-generator触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
minium-test-generator 11.0.0 更新概要:
- 全面更新技能规范,强化录制脚本自动转测试用例的流程和规则。
- 严格提升目录/文件检查,确保每一步操作都与用户现有目录结构和代码风格保持一致。
- 明确区分“新建项目”和“添加到已有项目”两大场景,杜绝误操作和文件覆盖。
- 新增多项强制开发规范,细化 Page Object、测试用例生成和元素封装细则。
- 新增对不同触发场景的具体应答流程和完整对话示例,提升易用性与透明度。
- 优化录制脚本解析与生成流程,确保步骤完整、命名统一,极大减少人工干预。
元数据
常见问题
minium-test-generator 是什么?
Minium 录制脚本转测试用例工具。自动解析录制脚本,生成符合规范的测试用例和页面对象,确保步骤完整、逻辑一致。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 146 次。
如何安装 minium-test-generator?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install minium-test-generator」即可一键安装,无需额外配置。
minium-test-generator 是免费的吗?
是的,minium-test-generator 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
minium-test-generator 支持哪些平台?
minium-test-generator 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 minium-test-generator?
由 梦中大侠(@yiziria)开发并维护,当前版本 v1.0.0。
推荐 Skills