← 返回 Skills 市场
94lfj

ui-test-agent

作者 94lfj · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
73
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install ui-test-agent
功能描述
This skill should be used when the user wants to perform UI automation testing on web pages. It enables a full "record-then-report" workflow: execute real br...
安全使用建议
This skill appears to implement a legitimate UI record-and-report workflow, but take these precautions before using it: - get_screenshot requirement: The SKILL.md insists on a separate get_screenshot tool (and explicitly forbids agent-browser's screenshot) but the package does not include that tool or declare it. Ensure you have a trusted screenshot utility available and update the instructions if needed. - Verify failure-handling: SKILL.md requires that single-step failures do NOT stop the overall recording/processing, but the generated .sh contains 'set -e' and the .bat contains errorlevel-based exits. If you plan to replay the generated shell/batch scripts, either remove 'set -e' or adjust the script generation to match the intended behavior. - Inspect recorded session before replay: The replay scripts execute the recorded 'command' fields verbatim. A malicious or malformed recorded command could execute arbitrary shell commands when you run the generated .sh/.bat. Always review or sanitize session.json (or run replays in an isolated/sandbox environment) before executing generated scripts. - SKILL_DIR path: The SKILL.md suggests a hardcoded SKILL_DIR path. Confirm the actual skill path at runtime or adapt calls to use a resolved path variable instead of assuming ~/.workbuddy/skills/... - Operational recommendation: If you will run this skill, do so in a controlled environment (sandbox/container) the first few times, verify that agent-browser and get_screenshot are the tools you expect, and consider adding sanitization or escaping around recorded commands before generating executable replays. Given these mismatches and the replay risk, treat the skill as 'suspicious' until you confirm the screenshot tool, adjust the failure semantics, and adopt a safe workflow for reviewing recorded sessions before replay.
功能分析
Type: OpenClaw Skill Name: ui-test-agent Version: 1.0.0 The skill is designed for UI automation testing but contains significant security vulnerabilities in its report and script generation logic. Specifically, 'save_test_report.py' is vulnerable to Cross-Site Scripting (XSS) as it embeds unsanitized session data and Base64-encoded images into a standalone HTML file, and 'save_test_script.py' poses a command injection risk by directly concatenating recorded commands into executable .sh and .bat files. While these appear to be unintentional flaws (vulnerabilities) rather than intentional malware, the lack of input sanitization when generating executable artifacts from potentially untrusted web interactions warrants a suspicious classification.
能力评估
Purpose & Capability
The name/description (UI automation record-then-report) align with the included Python scripts that record steps, emit JSON, generate shell/batch/JSON replay scripts, and produce a standalone HTML report. However, the SKILL.md mandates using an external get_screenshot tool (and forbids agent-browser's screenshot) but the package does not provide such a binary nor declare it as a required dependency. The SKILL.md also recommends a hardcoded SKILL_DIR path (~/.workbuddy/skills/ui-test-agent/) which is a brittle assumption not reflected in package metadata.
Instruction Scope
The runtime instructions direct the agent to run agent-browser commands, take screenshots with an external tool, and call the provided Python scripts to record steps and generate artifacts. The included scripts implement those functions, but there are contradictions and scope issues: SKILL.md says 'failure should not interrupt' and that recording should continue on step failure, yet the generated .sh scripts include 'set -e' (which will abort on any failing command) and the generated .bat includes errorlevel checks that jump to an error label. Also, replay scripts use the recorded command strings verbatim—if a recorded step contains shell metacharacters or arbitrary text, re-running the generated shell/batch will execute that content. The skill does not declare or enforce sanitization of recorded commands. Finally, the SKILL.md requires get_screenshot but provides no implementation or guidance for installing it.
Install Mechanism
No install spec — instruction-only with included helper scripts. This lowers supply-chain risk because nothing is downloaded at install-time, but the runtime depends on external CLIs (agent-browser and get_screenshot) which are not provided.
Credentials
The skill requests no environment variables, credentials, or config paths. That is proportionate for a local UI testing/reporting skill. Note: SKILL.md references a SKILL_DIR absolute path; relying on that implicit location without configuration may cause accidental writes to user home directories.
Persistence & Privilege
The skill is not force-installed (always:false) and does not request special privileges or modify other skills. It reads/writes session files under the workspace/output directories as expected for a recorder/report generator.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install ui-test-agent
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /ui-test-agent 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
ui-test-agent 1.0.0 - Initial release enabling automated UI testing of web pages with a full "record-then-report" workflow. - Supports agent-browser CLI step execution, required per-step screenshots, and session recording. - Automatically generates replayable test scripts (shell/JSON) and a standalone HTML test report with embedded screenshots. - Workflow strictly documents all actions, errors, and test evidence, ensuring thorough reporting and reproducibility. - Recommended triggers include UI自动化测试, browser automation test, record and replay, test report, 测试报告, agent-browser测试.
元数据
Slug ui-test-agent
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

ui-test-agent 是什么?

This skill should be used when the user wants to perform UI automation testing on web pages. It enables a full "record-then-report" workflow: execute real br... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 73 次。

如何安装 ui-test-agent?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install ui-test-agent」即可一键安装,无需额外配置。

ui-test-agent 是免费的吗?

是的,ui-test-agent 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

ui-test-agent 支持哪些平台?

ui-test-agent 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 ui-test-agent?

由 94lfj(@94lfj)开发并维护,当前版本 v1.0.0。

💬 留言讨论