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.
Why use this skill?
Automate your Sui Move testing with the sui-coverage skill. Identify untested code paths, analyze branch coverage, and improve smart contract security.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/easonc13/sui-auto-testWhat This Skill Does
The sui-coverage skill is a comprehensive suite of tools designed to automate the testing, analysis, and security verification of Sui Move smart contracts. It integrates directly with the Sui CLI to parse coverage data, pinpoint gaps in logic, and generate actionable documentation for developers. By analyzing trace logs and bytecode, the skill identifies uncalled functions, missed branches in conditional logic, and untested assertion failure paths. It streamlines the testing lifecycle, ensuring high-quality, audit-ready codebases with minimal manual effort.
Installation
To integrate this tool into your OpenClaw environment, use the official hub repository provided by the author. Run the following command in your terminal:
clawhub install openclaw/skills/skills/easonc13/sui-auto-test
Ensure that your environment has the Sui CLI properly configured and the path to your Move package is accessible to the agent.
Use Cases
- Automated Security Audits: Quickly surface untested code paths that could harbor vulnerabilities or logic errors.
- CI/CD Integration: Incorporate the analysis tools into automated pipelines to ensure 100% coverage thresholds before mainnet deployment.
- Refactoring Support: Generate coverage reports before and after code changes to confirm that optimizations or updates do not break existing logic or introduce regression risks.
- Learning & Debugging: Utilize the bytecode parsing capabilities to understand how complex Move functions behave at a lower level, aiding in difficult debugging sessions.
Example Prompts
- "Analyze my current Move package using the sui-coverage skill and identify which functions have zero test coverage."
- "I need to improve my assertion testing; can you read my coverage.md and generate a test function for the failed abort_code in my
withdrawfunction?" - "Run a full coverage report for the
my-defi-appmodule and output the results in JSON format so I can track our progress."
Tips & Limitations
- Precision: Always run
sui move test --coverage --traceimmediately before running the analysis tools to ensure you are working with the most recent bytecode data. - Dependencies: This tool relies on the standard output of the Sui CLI. If your project uses custom build configurations, ensure your paths are correctly mapped in the
analyze_source.pyarguments. - Security: While this tool identifies untested code, it is not a substitute for a professional security audit. It should be used as a primary layer of quality assurance to reduce the surface area for manual review.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-easonc13-sui-auto-test": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-read, file-write, code-execution
Related Skills
sui-move
Sui blockchain and Move smart contract development. Use when the user asks about Sui, Move language, smart contracts, objects, transactions, or blockchain development on Sui.
sui-knowledge
Answer questions about Sui blockchain ecosystem, concepts, tokenomics, validators, staking, and general knowledge. Use when users ask "what is Sui", "how does Sui work", "Sui vs other chains", or any Sui-related questions that aren't specifically about Move programming.
abstract-searcher
Add abstracts to .bib file entries by searching academic databases (arXiv, Semantic Scholar, CrossRef) with browser fallback.
mac-control
Control Mac via mouse/keyboard automation using cliclick and AppleScript. Use for clicking UI elements, taking screenshots, getting window bounds, handling coordinate scaling on Retina displays, and automating UI interactions like clicking Chrome extension icons, dismissing dialogs, or toolbar buttons.
m3u8-downloader
Download encrypted m3u8/HLS videos using parallel downloads. Use when given an m3u8 URL to download a video, especially encrypted HLS streams with AES-128.