LaunchKit · 2026
Back to Skills

sui-auto-test

Analyze Sui Move test coverage, identify untested code, write missing tests, and perform security audits.

0
978 downloads
by @easonc13

Setup & Installation

openclaw skills install @easonc13/sui-auto-test

Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:

npx clawhub install sui-auto-test

What This Skill Does

Analyzes test coverage for Sui Move smart contracts, identifies uncovered functions, branches, and assertion failure paths, then writes the missing tests. Also performs security analysis during the testing process, checking for access control issues, integer overflow, and economic exploits.

Combines coverage gap detection with security analysis in a single workflow, so test-writing and vulnerability review happen together rather than as separate passes.

When to use it

  • Identifying untested functions in a Sui Move module
  • Writing expected_failure tests for assert! paths
  • Generating coverage reports before a contract audit
  • Catching integer overflow vulnerabilities while improving coverage
  • Verifying 100% branch coverage before mainnet deployment

Example Workflow

Here's how your AI assistant might use this skill in practice.

INPUT

User asks: Improve test coverage for my_module in my Sui Move package

AGENT
  1. 1Run `sui move test --coverage --trace` in the package directory
  2. 2Run `analyze_source.py -m my_module -o coverage.md` to generate the coverage report
  3. 3Read coverage.md to list uncovered functions, uncovered branches, and untested assert! failure paths
  4. 4Write Move tests for each gap, including #[expected_failure] tests for abort paths and paired tests for if/else branches
  5. 5Re-run coverage analysis to confirm all gaps are closed and document any security findings
OUTPUT

New test functions added to the module's test file, coverage at 100%, and a security report noting any vulnerabilities found during the process

Requirements

Accounts, API keys, or tools you or your AI assistant may need to set up while using this skill.

Sui CLI installed and available in PATH