← 返回 Skills 市场
Sui Coverage
作者
Eason Chen
· GitHub ↗
· v1.1.1
1410
总下载
0
收藏
0
当前安装
5
版本数
在 OpenClaw 中安装
/install sui-coverage
功能描述
Analyze Sui Move test coverage, identify untested code, write missing tests, and perform security audits. Includes Python tools for parsing coverage output and generating reports.
安全使用建议
This skill is internally consistent with a Sui Move coverage helper: it expects you to run 'sui move test --coverage' and then runs local Python parsers to analyze colored coverage output or LCOV files. Before installing or invoking the skill, consider:
- Trust the repository: the scripts will execute the 'sui' CLI and will read your package sources and coverage outputs. Running tests will execute code in the target Move package, so only run against trusted code or in a sandbox.
- Review the bundled scripts (they are small, local Python files) if you want certainty; they do not perform network calls, require secrets, or auto-write tests.
- The description mentions 'security audits' but the supplied code only generates coverage-based suggestions and does light pattern inspection; it does not replace a dedicated security audit tool.
- Because the skill invokes the Sui CLI (os.execvp/PTY usage), ensure your environment has the intended version of 'sui' and that you understand the effects of running package tests.
If you need automated test generation or deep security analysis, ask for clarification from the author or use dedicated tooling. Otherwise this skill appears coherent and low risk for use in a development sandbox.
功能分析
Type: OpenClaw Skill
Name: sui-coverage
Version: 1.1.1
The skill is designed to analyze Sui Move test coverage and assist in writing tests, including a security-focused approach. All files, including the `SKILL.md` instructions and Python scripts, align with this stated purpose. The `analyze_source.py` script uses `pty.openpty` and `os.execvp` to run the `sui` CLI, which is a powerful capability, but its usage is strictly limited to executing the `sui move coverage source` command, a core function of the skill. There is no evidence of malicious command construction, data exfiltration, persistence mechanisms, or prompt injection attempts against the agent to perform actions outside the skill's scope or against user intent. The security analysis instructions in `SKILL.md` guide the agent's analytical process, not malicious actions.
能力评估
Purpose & Capability
Name and description claim coverage analysis, test-writing guidance, and 'security audits'. The included Python tools clearly perform LCOV/source/bytecode parsing and generate suggestions for missing tests — they do not automatically write tests or perform deep automated security audits. This is a minor overstatement in the description but not an incoherence.
Instruction Scope
SKILL.md instructs running 'sui move test --coverage --trace' and then the provided Python scripts to analyze coverage output. The scripts read coverage output (stdin or lcov files) and optionally read local source files for context; they do not attempt to fetch external data, read arbitrary system config, or access environment variables beyond standard process usage. Running the 'sui' CLI and tests executes code in the target package (expected for coverage analysis) — users should only run against trusted code.
Install Mechanism
Instruction-only skill with bundled scripts; no install spec, no downloads, and no archive extraction. Risk is low because nothing is automatically fetched or written to disk by an installer.
Credentials
Requires python3 and the 'sui' binary (declared). No environment variables, credentials, or config paths are requested. The scripts may read local source files and coverage outputs (expected for their purpose).
Persistence & Privilege
The skill is not marked always:true and does not request permanent platform-level privileges. It does spawn subprocesses (execvp) to run the 'sui' CLI to capture colored output — this is necessary for its functionality but means it will execute the Sui tool in the agent's environment when invoked.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install sui-coverage - 安装完成后,直接呼叫该 Skill 的名称或使用
/sui-coverage触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.1
Add GitHub link and Related Skills section
v1.1.0
Add related skills section (sui-decompile, sui-move)
v1.0.2
Simplify install: brew for Mac, link to docs for others
v1.0.1
Add Sui CLI installation guide with suiup
v1.0.0
Initial release: Coverage analysis, auto-test generation, and security auditing for Sui Move contracts
元数据
常见问题
Sui Coverage 是什么?
Analyze Sui Move test coverage, identify untested code, write missing tests, and perform security audits. Includes Python tools for parsing coverage output and generating reports. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1410 次。
如何安装 Sui Coverage?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install sui-coverage」即可一键安装,无需额外配置。
Sui Coverage 是免费的吗?
是的,Sui Coverage 完全免费(开源免费),可自由下载、安装和使用。
Sui Coverage 支持哪些平台?
Sui Coverage 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Sui Coverage?
由 Eason Chen(@easonc13)开发并维护,当前版本 v1.1.1。
推荐 Skills