[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75FQ1TGWF1VC3NDW43KVTFE":3,"skill-same:01M75FQ1TGWF1VC3NDW43KVTFE":55},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":32,"commitSha":33,"skillDirectory":34,"forksCount":35,"repositoryHtmlUrl":36,"repositoryHomepageUrl":6,"ownerHtmlUrl":37,"ownerBlogUrl":38,"ownerDescription":39,"updatedAt":40,"install":41,"resources":54},"01M75FQ1TGWF1VC3NDW43KVTFE","sui-coverage",null,"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.","javimosch\u002Fopen-claw-skills","javimosch","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F12900508?v=4","01M6D3F2AS6PV75ET9PZ1QGP8J","Javier Leandro Arancibia","01M75B8NCTAJG9WH5YNZH7C3D8",0,"MIT","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Feasonc13\u002Fsui-coverage\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: sui-coverage\ndescription: 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.\nhomepage: https:\u002F\u002Fgithub.com\u002FEasonC13-agent\u002Fsui-coverage-demo\nmetadata:\n  openclaw:\n    emoji: \"🔍\"\n    requires:\n      bins: [\"python3\", \"sui\"]\n---\n\n# Sui Coverage Skill\n\nAnalyze and automatically improve Sui Move test coverage with security analysis.\n\n**GitHub:** \u003Chttps:\u002F\u002Fgithub.com\u002FEasonC13-agent\u002Fsui-skills\u002Ftree\u002Fmain\u002Fsui-coverage>\n\n## Prerequisites\n\n### Install Sui CLI\n\n```bash\n# macOS (recommended)\nbrew install sui\n\n# Other platforms: see official docs\n# https:\u002F\u002Fdocs.sui.io\u002Fguides\u002Fdeveloper\u002Fgetting-started\u002Fsui-install\n```\n\nVerify:\n```bash\nsui --version\n```\n\n## Quick Reference\n\n```bash\n# Location of tools (adjust to your skill installation path)\nSKILL_DIR=\u003Cyour-workspace>\u002Fskills\u002Fsui-coverage\n\n# Full workflow\ncd \u002Fpath\u002Fto\u002Fmove\u002Fpackage\nsui move test --coverage --trace\npython3 $SKILL_DIR\u002Fanalyze_source.py -m \u003Cmodule> -o coverage.md\n```\n\n## Workflow: Auto-Improve Test Coverage\n\n### Step 1: Run Coverage Analysis\n\n```bash\ncd \u003Cpackage_path>\nsui move test --coverage --trace\npython3 $SKILL_DIR\u002Fanalyze_source.py -m \u003Cmodule_name> -o coverage.md\n```\n\n### Step 2: Read the Coverage Report\n\nRead the generated `coverage.md` to identify:\n- 🔴 **Uncalled functions** - Functions never executed\n- 🔴 **Uncovered assertions** - `assert!()` failure paths not tested\n- 🔴 **Uncovered branches** - `if\u002Felse` paths not taken\n\n### Step 3: Write Missing Tests\n\nFor each uncovered item, write a test:\n\n#### A. Uncalled Function\n```move\n#[test]\nfun test_\u003Cfunction_name>() {\n    \u002F\u002F Setup\n    let mut ctx = tx_context::dummy();\n    \u002F\u002F Call the uncovered function\n    \u003Cfunction_name>(...);\n    \u002F\u002F Assert expected behavior\n}\n```\n\n#### B. Assertion Failure Path (expect_failure)\n```move\n#[test]\n#[expected_failure(abort_code = \u003CERROR_CODE>)]\nfun test_\u003Cfunction>_fails_when_\u003Ccondition>() {\n    let mut ctx = tx_context::dummy();\n    \u002F\u002F Setup state that triggers the assertion failure\n    \u003Cfunction_call_that_should_fail>();\n}\n```\n\n#### C. Branch Coverage (if\u002Felse)\n```move\n#[test]\nfun test_\u003Cfunction>_when_\u003Ccondition_true>() { ... }\n\n#[test]  \nfun test_\u003Cfunction>_when_\u003Ccondition_false>() { ... }\n```\n\n### Step 4: Verify Coverage Improved\n\n```bash\nsui move test --coverage --trace\npython3 $SKILL_DIR\u002Fanalyze_source.py -m \u003Cmodule_name>\n```\n\n---\n\n## Tools\n\n### 1. analyze_source.py (Primary Tool)\n\n```bash\npython3 $SKILL_DIR\u002Fanalyze_source.py --module \u003Cname> [options]\n\nOptions:\n  -m, --module    Module name (required)\n  -p, --path      Package path (default: .)\n  -o, --output    Output file (e.g., coverage.md)\n  --json          JSON output\n  --markdown      Markdown to stdout\n```\n\n### 2. analyze.py (LCOV Statistics)\n\n```bash\nsui move coverage lcov\npython3 $SKILL_DIR\u002Fanalyze.py lcov.info -f \"\u003Cpackage>\" -s sources\u002F\n\nOptions:\n  -f, --filter       Filter by path pattern\n  -s, --source-dir   Source directory for context\n  -i, --issues-only  Only show files with issues\n  -j, --json         JSON output\n```\n\n### 3. parse_bytecode.py (Low-level)\n\n```bash\nsui move coverage bytecode --module \u003Cname> | python3 $SKILL_DIR\u002Fparse_bytecode.py\n```\n\n---\n\n## Common Patterns\n\n### Testing Assertion Failures\n\n```move\n\u002F\u002F Source code:\npublic fun withdraw(balance: &mut u64, amount: u64) {\n    assert!(*balance >= amount, EInsufficientBalance);  \u002F\u002F ← This failure path\n    *balance = *balance - amount;\n}\n\n\u002F\u002F Test for the failure path:\n#[test]\n#[expected_failure(abort_code = EInsufficientBalance)]\nfun test_withdraw_insufficient_balance() {\n    let mut balance = 50;\n    withdraw(&mut balance, 100);  \u002F\u002F Should fail: 50 \u003C 100\n}\n```\n\n### Testing All Branches\n\n```move\n\u002F\u002F Source code:\npublic fun classify(value: u64): u8 {\n    if (value == 0) {\n        0\n    } else if (value \u003C 100) {\n        1\n    } else {\n        2\n    }\n}\n\n\u002F\u002F Tests for all branches:\n#[test]\nfun test_classify_zero() {\n    assert!(classify(0) == 0, 0);\n}\n\n#[test]\nfun test_classify_small() {\n    assert!(classify(50) == 1, 0);\n}\n\n#[test]\nfun test_classify_large() {\n    assert!(classify(100) == 2, 0);\n}\n```\n\n### Testing Object Lifecycle\n\n```move\n#[test]\nfun test_full_lifecycle() {\n    let mut ctx = tx_context::dummy();\n    \n    \u002F\u002F Create\n    let obj = create(&mut ctx);\n    assert!(get_value(&obj) == 0, 0);\n    \n    \u002F\u002F Modify\n    increment(&mut obj);\n    assert!(get_value(&obj) == 1, 0);\n    \n    \u002F\u002F Destroy\n    destroy(obj);\n}\n```\n\n---\n\n## Error Code Reference\n\nWhen writing `#[expected_failure]` tests, use the error constant name:\n\n```move\n\u002F\u002F If the module defines:\nconst EInvalidInput: u64 = 1;\nconst ENotAuthorized: u64 = 2;\n\n\u002F\u002F Use in test:\n#[expected_failure(abort_code = EInvalidInput)]\nfun test_invalid_input() { ... }\n\n\u002F\u002F Or use the module-qualified name:\n#[expected_failure(abort_code = my_module::EInvalidInput)]\nfun test_invalid_input() { ... }\n```\n\n---\n\n## Example: Full Auto-Coverage Session\n\n```bash\n# 1. Analyze current coverage\ncd \u002Fpath\u002Fto\u002Fmy_package\nsui move test --coverage --trace\npython3 $SKILL_DIR\u002Fanalyze_source.py -m my_module -o coverage.md\n\n# 2. Review what's missing\ncat coverage.md\n# Shows:\n# - decrement() not called\n# - assert!(value > 0, EValueZero) failure not tested\n\n# 3. Add tests to sources\u002Fmy_module.move or tests\u002Fmy_module_tests.move\n# (write the missing tests)\n\n# 4. Verify improvement\nsui move test --coverage --trace\npython3 $SKILL_DIR\u002Fanalyze_source.py -m my_module\n\n# 5. Repeat until 100% coverage\n```\n\n---\n\n## Integration with Agent Workflow\n\nWhen asked to improve test coverage:\n\n1. **Run analysis** - Get current coverage state\n2. **Read source** - Understand the module's logic\n3. **Identify gaps** - List uncovered functions\u002Fbranches\u002Fassertions\n4. **Security review** - Analyze for vulnerabilities while writing tests\n5. **Write tests** - Create tests for each gap + security edge cases\n6. **Report findings** - Document any security concerns discovered\n7. **Verify** - Re-run coverage to confirm improvement\n\nAlways commit test improvements:\n```bash\ngit add sources\u002F tests\u002F\ngit commit -m \"Improve test coverage for \u003Cmodule>\"\n```\n\n---\n\n## Security Analysis During Testing\n\n**Writing tests = Understanding the contract = Finding vulnerabilities**\n\nWhen writing tests, actively look for these issues:\n\n### 1. Access Control\n```\nQuestions to ask:\n- Who can call this function?\n- Should there be owner\u002Fadmin checks?\n- Can unauthorized users manipulate state?\n\nRed flags:\n- Public functions that modify critical state without checks\n- Missing capability\u002Fwitness patterns\n```\n\n### 2. Integer Overflow\u002FUnderflow\n```\nQuestions to ask:\n- What happens at u64::MAX?\n- What happens when subtracting from 0?\n- Are arithmetic operations checked?\n\nTest pattern:\n#[test]\nfun test_overflow_boundary() {\n    \u002F\u002F Test with max values\n}\n```\n\n### 3. State Manipulation\n```\nQuestions to ask:\n- Can state be left in inconsistent state?\n- Are all state changes atomic?\n- Can partial failures corrupt data?\n\nRed flags:\n- Multiple state changes without rollback\n- Shared objects without proper locking\n```\n\n### 4. Economic Exploits\n```\nQuestions to ask:\n- Can someone extract more value than deposited?\n- Are there rounding errors that can be exploited?\n- Flash loan attack vectors?\n\nRed flags:\n- Price calculations without slippage protection\n- Unbounded loops over user-controlled data\n```\n\n### 5. Denial of Service\n```\nQuestions to ask:\n- Can someone block legitimate users?\n- Are there unbounded operations?\n- Can storage be filled maliciously?\n\nRed flags:\n- Vectors that grow unbounded\n- Loops over external data\n```\n\n### Security Report Template\n\nWhen analyzing a module, generate a security report:\n\n```markdown\n## Security Analysis: \u003Cmodule_name>\n\n### Summary\n- Risk Level: [Low\u002FMedium\u002FHigh\u002FCritical]\n- Issues Found: X\n\n### Findings\n\n#### [SEVERITY] Issue Title\n- **Location:** Line XX\n- **Description:** What the issue is\n- **Impact:** What could happen\n- **Recommendation:** How to fix\n\n### Tested Edge Cases\n- [ ] Overflow at max values\n- [ ] Underflow at zero\n- [ ] Unauthorized access attempts\n- [ ] Empty\u002Fnull inputs\n- [ ] Reentrancy scenarios\n```\n\n### Example: Security-Aware Test\n\n```move\n\u002F\u002F SECURITY: Testing that non-owner cannot withdraw\n#[test]\n#[expected_failure(abort_code = ENotOwner)]\nfun test_unauthorized_withdraw() {\n    \u002F\u002F Setup: Create vault owned by ALICE\n    \u002F\u002F Action: BOB tries to withdraw\n    \u002F\u002F Expected: Should fail with ENotOwner\n}\n\n\u002F\u002F SECURITY: Testing overflow protection\n#[test]\nfun test_deposit_overflow_protection() {\n    \u002F\u002F Deposit near u64::MAX\n    \u002F\u002F Verify no overflow occurs\n}\n\n\u002F\u002F SECURITY: Testing economic invariant\n#[test]\nfun test_total_supply_invariant() {\n    \u002F\u002F After any operations:\n    \u002F\u002F sum(all_balances) == total_supply\n}\n```\n\n---\n\n## Full Workflow with Security\n\n```bash\n# 1. Coverage analysis\nsui move test --coverage --trace\npython3 $SKILL_DIR\u002Fanalyze_source.py -m \u003Cmodule> -o coverage.md\n\n# 2. While writing tests, document security findings\n# Create SECURITY.md alongside coverage.md\n\n# 3. After tests pass, summarize:\n# - Coverage: X% → 100%\n# - Security issues found: N\n# - Recommendations: ...\n```\n\n---\n\n## Related Skills\n\nThis skill is part of the Sui development skill suite:\n\n| Skill | Description |\n|-------|-------------|\n| [sui-decompile](https:\u002F\u002Fclawhub.ai\u002FEasonC13\u002Fsui-decompile) | Fetch and read on-chain contract source code |\n| [sui-move](https:\u002F\u002Fclawhub.ai\u002FEasonC13\u002Fsui-move) | Write and deploy Move smart contracts |\n| **sui-coverage** | Analyze test coverage with security analysis |\n| [sui-agent-wallet](https:\u002F\u002Fclawhub.ai\u002FEasonC13\u002Fsui-agent-wallet) | Build and test DApps frontend |\n\n**Workflow:**\n```\nsui-decompile → sui-move → sui-coverage → sui-agent-wallet\n    Study        Write      Test & Audit   Build DApps\n```\n\nAll skills: \u003Chttps:\u002F\u002Fgithub.com\u002FEasonC13-agent\u002Fsui-skills>\n","# Sui Coverage Skill\n\nAnalyze and automatically improve Sui Move test coverage with security analysis.\n\n**GitHub:** \u003Chttps:\u002F\u002Fgithub.com\u002FEasonC13-agent\u002Fsui-skills\u002Ftree\u002Fmain\u002Fsui-coverage>\n\n## Prerequisites\n\n### Install Sui CLI\n\n```bash\n# macOS (recommended)\nbrew install sui\n\n# Other platforms: see official docs\n# https:\u002F\u002Fdocs.sui.io\u002Fguides\u002Fdeveloper\u002Fgetting-started\u002Fsui-install\n```\n\nVerify:\n```bash\nsui --version\n```\n\n## Quick Reference\n\n```bash\n# Location of tools (adjust to your skill installation path)\nSKILL_DIR=\u003Cyour-workspace>\u002Fskills\u002Fsui-coverage\n\n# Full workflow\ncd \u002Fpath\u002Fto\u002Fmove\u002Fpackage\nsui move test --coverage --trace\npython3 $SKILL_DIR\u002Fanalyze_source.py -m \u003Cmodule> -o coverage.md\n```\n\n## Workflow: Auto-Improve Test Coverage\n\n### Step 1: Run Coverage Analysis\n\n```bash\ncd \u003Cpackage_path>\nsui move test --coverage --trace\npython3 $SKILL_DIR\u002Fanalyze_source.py -m \u003Cmodule_name> -o coverage.md\n```\n\n### Step 2: Read the Coverage Report\n\nRead the generated `coverage.md` to identify:\n- 🔴 **Uncalled functions** - Functions never executed\n- 🔴 **Uncovered assertions** - `assert!()` failure paths not tested\n- 🔴 **Uncovered branches** - `if\u002Felse` paths not taken\n\n### Step 3: Write Missing Tests\n\nFor each uncovered item, write a test:\n\n#### A. Uncalled Function\n```move\n#[test]\nfun test_\u003Cfunction_name>() {\n    \u002F\u002F Setup\n    let mut ctx = tx_context::dummy();\n    \u002F\u002F Call the uncovered function\n    \u003Cfunction_name>(...);\n    \u002F\u002F Assert expected behavior\n}\n```\n\n#### B. Assertion Failure Path (expect_failure)\n```move\n#[test]\n#[expected_failure(abort_code = \u003CERROR_CODE>)]\nfun test_\u003Cfunction>_fails_when_\u003Ccondition>() {\n    let mut ctx = tx_context::dummy();\n    \u002F\u002F Setup state that triggers the assertion failure\n    \u003Cfunction_call_that_should_fail>();\n}\n```\n\n#### C. Branch Coverage (if\u002Felse)\n```move\n#[test]\nfun test_\u003Cfunction>_when_\u003Ccondition_true>() { ... }\n\n#[test]  \nfun test_\u003Cfunction>_when_\u003Ccondition_false>() { ... }\n```\n\n### Step 4: Verify Coverage Improved\n\n```bash\nsui move test --coverage --trace\npython3 $SKILL_DIR\u002Fanalyze_source.py -m \u003Cmodule_name>\n```\n\n---\n\n## Tools\n\n### 1. analyze_source.py (Primary Tool)\n\n```bash\npython3 $SKILL_DIR\u002Fanalyze_source.py --module \u003Cname> [options]\n\nOptions:\n  -m, --module    Module name (required)\n  -p, --path      Package path (default: .)\n  -o, --output    Output file (e.g., coverage.md)\n  --json          JSON output\n  --markdown      Markdown to stdout\n```\n\n### 2. analyze.py (LCOV Statistics)\n\n```bash\nsui move coverage lcov\npython3 $SKILL_DIR\u002Fanalyze.py lcov.info -f \"\u003Cpackage>\" -s sources\u002F\n\nOptions:\n  -f, --filter       Filter by path pattern\n  -s, --source-dir   Source directory for context\n  -i, --issues-only  Only show files with issues\n  -j, --json         JSON output\n```\n\n### 3. parse_bytecode.py (Low-level)\n\n```bash\nsui move coverage bytecode --module \u003Cname> | python3 $SKILL_DIR\u002Fparse_bytecode.py\n```\n\n---\n\n## Common Patterns\n\n### Testing Assertion Failures\n\n```move\n\u002F\u002F Source code:\npublic fun withdraw(balance: &mut u64, amount: u64) {\n    assert!(*balance >= amount, EInsufficientBalance);  \u002F\u002F ← This failure path\n    *balance = *balance - amount;\n}\n\n\u002F\u002F Test for the failure path:\n#[test]\n#[expected_failure(abort_code = EInsufficientBalance)]\nfun test_withdraw_insufficient_balance() {\n    let mut balance = 50;\n    withdraw(&mut balance, 100);  \u002F\u002F Should fail: 50 \u003C 100\n}\n```\n\n### Testing All Branches\n\n```move\n\u002F\u002F Source code:\npublic fun classify(value: u64): u8 {\n    if (value == 0) {\n        0\n    } else if (value \u003C 100) {\n        1\n    } else {\n        2\n    }\n}\n\n\u002F\u002F Tests for all branches:\n#[test]\nfun test_classify_zero() {\n    assert!(classify(0) == 0, 0);\n}\n\n#[test]\nfun test_classify_small() {\n    assert!(classify(50) == 1, 0);\n}\n\n#[test]\nfun test_classify_large() {\n    assert!(classify(100) == 2, 0);\n}\n```\n\n### Testing Object Lifecycle\n\n```move\n#[test]\nfun test_full_lifecycle() {\n    let mut ctx = tx_context::dummy();\n    \n    \u002F\u002F Create\n    let obj = create(&mut ctx);\n    assert!(get_value(&obj) == 0, 0);\n    \n    \u002F\u002F Modify\n    increment(&mut obj);\n    assert!(get_value(&obj) == 1, 0);\n    \n    \u002F\u002F Destroy\n    destroy(obj);\n}\n```\n\n---\n\n## Error Code Reference\n\nWhen writing `#[expected_failure]` tests, use the error constant name:\n\n```move\n\u002F\u002F If the module defines:\nconst EInvalidInput: u64 = 1;\nconst ENotAuthorized: u64 = 2;\n\n\u002F\u002F Use in test:\n#[expected_failure(abort_code = EInvalidInput)]\nfun test_invalid_input() { ... }\n\n\u002F\u002F Or use the module-qualified name:\n#[expected_failure(abort_code = my_module::EInvalidInput)]\nfun test_invalid_input() { ... }\n```\n\n---\n\n## Example: Full Auto-Coverage Session\n\n```bash\n# 1. Analyze current coverage\ncd \u002Fpath\u002Fto\u002Fmy_package\nsui move test --coverage --trace\npython3 $SKILL_DIR\u002Fanalyze_source.py -m my_module -o coverage.md\n\n# 2. Review what's missing\ncat coverage.md\n# Shows:\n# - decrement() not called\n# - assert!(value > 0, EValueZero) failure not tested\n\n# 3. Add tests to sources\u002Fmy_module.move or tests\u002Fmy_module_tests.move\n# (write the missing tests)\n\n# 4. Verify improvement\nsui move test --coverage --trace\npython3 $SKILL_DIR\u002Fanalyze_source.py -m my_module\n\n# 5. Repeat until 100% coverage\n```\n\n---\n\n## Integration with Agent Workflow\n\nWhen asked to improve test coverage:\n\n1. **Run analysis** - Get current coverage state\n2. **Read source** - Understand the module's logic\n3. **Identify gaps** - List uncovered functions\u002Fbranches\u002Fassertions\n4. **Security review** - Analyze for vulnerabilities while writing tests\n5. **Write tests** - Create tests for each gap + security edge cases\n6. **Report findings** - Document any security concerns discovered\n7. **Verify** - Re-run coverage to confirm improvement\n\nAlways commit test improvements:\n```bash\ngit add sources\u002F tests\u002F\ngit commit -m \"Improve test coverage for \u003Cmodule>\"\n```\n\n---\n\n## Security Analysis During Testing\n\n**Writing tests = Understanding the contract = Finding vulnerabilities**\n\nWhen writing tests, actively look for these issues:\n\n### 1. Access Control\n```\nQuestions to ask:\n- Who can call this function?\n- Should there be owner\u002Fadmin checks?\n- Can unauthorized users manipulate state?\n\nRed flags:\n- Public functions that modify critical state without checks\n- Missing capability\u002Fwitness patterns\n```\n\n### 2. Integer Overflow\u002FUnderflow\n```\nQuestions to ask:\n- What happens at u64::MAX?\n- What happens when subtracting from 0?\n- Are arithmetic operations checked?\n\nTest pattern:\n#[test]\nfun test_overflow_boundary() {\n    \u002F\u002F Test with max values\n}\n```\n\n### 3. State Manipulation\n```\nQuestions to ask:\n- Can state be left in inconsistent state?\n- Are all state changes atomic?\n- Can partial failures corrupt data?\n\nRed flags:\n- Multiple state changes without rollback\n- Shared objects without proper locking\n```\n\n### 4. Economic Exploits\n```\nQuestions to ask:\n- Can someone extract more value than deposited?\n- Are there rounding errors that can be exploited?\n- Flash loan attack vectors?\n\nRed flags:\n- Price calculations without slippage protection\n- Unbounded loops over user-controlled data\n```\n\n### 5. Denial of Service\n```\nQuestions to ask:\n- Can someone block legitimate users?\n- Are there unbounded operations?\n- Can storage be filled maliciously?\n\nRed flags:\n- Vectors that grow unbounded\n- Loops over external data\n```\n\n### Security Report Template\n\nWhen analyzing a module, generate a security report:\n\n```markdown\n## Security Analysis: \u003Cmodule_name>\n\n### Summary\n- Risk Level: [Low\u002FMedium\u002FHigh\u002FCritical]\n- Issues Found: X\n\n### Findings\n\n#### [SEVERITY] Issue Title\n- **Location:** Line XX\n- **Description:** What the issue is\n- **Impact:** What could happen\n- **Recommendation:** How to fix\n\n### Tested Edge Cases\n- [ ] Overflow at max values\n- [ ] Underflow at zero\n- [ ] Unauthorized access attempts\n- [ ] Empty\u002Fnull inputs\n- [ ] Reentrancy scenarios\n```\n\n### Example: Security-Aware Test\n\n```move\n\u002F\u002F SECURITY: Testing that non-owner cannot withdraw\n#[test]\n#[expected_failure(abort_code = ENotOwner)]\nfun test_unauthorized_withdraw() {\n    \u002F\u002F Setup: Create vault owned by ALICE\n    \u002F\u002F Action: BOB tries to withdraw\n    \u002F\u002F Expected: Should fail with ENotOwner\n}\n\n\u002F\u002F SECURITY: Testing overflow protection\n#[test]\nfun test_deposit_overflow_protection() {\n    \u002F\u002F Deposit near u64::MAX\n    \u002F\u002F Verify no overflow occurs\n}\n\n\u002F\u002F SECURITY: Testing economic invariant\n#[test]\nfun test_total_supply_invariant() {\n    \u002F\u002F After any operations:\n    \u002F\u002F sum(all_balances) == total_supply\n}\n```\n\n---\n\n## Full Workflow with Security\n\n```bash\n# 1. Coverage analysis\nsui move test --coverage --trace\npython3 $SKILL_DIR\u002Fanalyze_source.py -m \u003Cmodule> -o coverage.md\n\n# 2. While writing tests, document security findings\n# Create SECURITY.md alongside coverage.md\n\n# 3. After tests pass, summarize:\n# - Coverage: X% → 100%\n# - Security issues found: N\n# - Recommendations: ...\n```\n\n---\n\n## Related Skills\n\nThis skill is part of the Sui development skill suite:\n\n| Skill | Description |\n|-------|-------------|\n| [sui-decompile](https:\u002F\u002Fclawhub.ai\u002FEasonC13\u002Fsui-decompile) | Fetch and read on-chain contract source code |\n| [sui-move](https:\u002F\u002Fclawhub.ai\u002FEasonC13\u002Fsui-move) | Write and deploy Move smart contracts |\n| **sui-coverage** | Analyze test coverage with security analysis |\n| [sui-agent-wallet](https:\u002F\u002Fclawhub.ai\u002FEasonC13\u002Fsui-agent-wallet) | Build and test DApps frontend |\n\n**Workflow:**\n```\nsui-decompile → sui-move → sui-coverage → sui-agent-wallet\n    Study        Write      Test & Audit   Build DApps\n```\n\nAll skills: \u003Chttps:\u002F\u002Fgithub.com\u002FEasonC13-agent\u002Fsui-skills>\n",{"name":5,"homepage":24,"metadata":25,"description":7},"https:\u002F\u002Fgithub.com\u002FEasonC13-agent\u002Fsui-coverage-demo",{"openclaw":26},{"emoji":27,"requires":28},"🔍",{"bins":29},[30,31],"python3","sui","main","f9d3fe7cf9ac8f1ea63a0d96e98e1f510a3814db","skills\u002Feasonc13\u002Fsui-coverage",1,"https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills","https:\u002F\u002Fgithub.com\u002Fjavimosch","intrane.fr","Building robust, open-source infrastructure for the commons. AI-leveraged, self-hosted, built to last.","2026-06-07 03:34:58",{"source":8,"skillName":5,"commands":42,"prompt":52,"zipAvailable":53},[43,46,49],{"tool":44,"command":45},"npx","npx skills add javimosch\u002Fopen-claw-skills --skill sui-coverage",{"tool":47,"command":48},"bunx","bunx skills add javimosch\u002Fopen-claw-skills --skill sui-coverage",{"tool":50,"command":51},"pnpm","pnpm dlx skills add javimosch\u002Fopen-claw-skills --skill sui-coverage","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Feasonc13\u002Fsui-coverage\u002FSKILL.md",true,[],[56,64,71,78,85,92],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":63},"01M778GGXG2VQ0YF31W2MKGMQZ","crowd-prompting","A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzzadrian\u002Fcrowd-prompting\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":63},"01M778G7BH8SBJ9FJ6C3G7CB1K","ceaser","Interact with the Ceaser privacy protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- shield, unshield, note management, and protocol queries. All ceaser tool calls use CLI subcommands (npx -y ceaser-mcp \u003Csubcommand>). Ceaser is a privacy-preserving ETH wrapper using Noir\u002FUltraHonk zero-knowledge proofs on Base L2 (chain ID 8453).","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyra-v21\u002Fceaser\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":63},"01M778FYCJQZWFKKX5FYMK3S47","ceaser-send","Fully automated private ETH transfer via Ceaser Protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- all ceaser tool calls use CLI subcommands (npx -y ceaser-mcp \u003Csubcommand>). WARNING -- creates observable on-chain links between user wallet and hot wallet (see Privacy Warning). Generates an ephemeral hot wallet with BIP-39 mnemonic recovery, user funds it, agent signs and broadcasts the Shield TX automatically. Exactly one manual step required (funding the hot wallet with ETH). Uses Noir\u002FUltraHonk zero-knowledge proofs.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyra-v21\u002Fceaser-send\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":63},"01M778FQQNSEYA3HJKZBPQ4M9Z","dilemm-ai","Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyori\u002Fdilemm-ai\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":63},"01M778FGVZX7QA2TF9BFMM37FY","moldium","Post and manage content on the Moldium blog platform. Triggered by \"post to Moldium\", \"write a blog post\", \"publish an article\", etc.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyom45\u002Fmoldium\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":63},"01M778F88D8PQ9MQ0KNW2TJ8ZH","arxiv-paper-reviews","Interact with arXiv Crawler API to fetch papers, read reviews, submit comments, search papers, and import papers. Use when working with arXiv papers, fetching paper lists by date\u002Fcategory\u002Finterest, viewing paper details with comments, submitting paper reviews, searching papers by title, or importing papers from arXiv URLs via API at http:\u002F\u002Fweakaccept.top:8000\u002F.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Farxiv-paper-reviews\u002FSKILL.md",[],[]]