sui-decompile
Fetch on-chain Sui Move contract source code and let your agent explain how smart contracts work. Scrape from Suivision/Suiscan explorers, analyze DeFi protocols, and understand any contract on Sui.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/easonc13/sui-decompileSui Decompile Skill
Fetch decompiled source code for on-chain Sui Move packages via block explorers.
GitHub: https://github.com/EasonC13-agent/sui-skills/tree/main/sui-decompile
Suivision (Preferred)
May have official verified source code when available.
URL: https://suivision.xyz/package/{package_id}?tab=Code
Browser workflow:
browser action=open profile=openclaw targetUrl="https://suivision.xyz/package/{package_id}?tab=Code"- Click module tabs on the left if multiple modules exist
- Extract code:
() => {
const rows = document.querySelectorAll('table tr');
const lines = [];
rows.forEach(r => {
const cells = r.querySelectorAll('td');
if (cells.length >= 2) lines.push(cells[1].textContent);
});
return lines.join('\n');
}
Suiscan (Alternative)
URL: https://suiscan.xyz/mainnet/object/{package_id}/contracts
Browser workflow:
browser action=open profile=openclaw targetUrl="https://suiscan.xyz/mainnet/object/{package_id}/contracts"- Click "Source" tab (default may show Bytecode)
- Click module tabs if multiple modules
- Extract code:
() => {
const rows = document.querySelectorAll('table tr');
const lines = [];
rows.forEach(r => {
const cells = r.querySelectorAll('td');
if (cells.length >= 2) lines.push(cells[1].textContent);
});
return lines.join('\n') || 'not found';
}
Multiple Modules
Packages like DeepBook (0xdee9) have multiple modules:
- List module tabs from sidebar
- Click each tab, extract code
- Save to separate
.movefiles
Examples
| Package | Suivision | Suiscan |
|---|---|---|
| Sui Framework | suivision.xyz/package/0x2?tab=Code | suiscan.xyz/mainnet/object/0x2/contracts |
| DeepBook | suivision.xyz/package/0xdee9?tab=Code | suiscan.xyz/mainnet/object/0xdee9/contracts |
Use with Other Skills
This skill works great with the Sui development skill suite:
- sui-move: Write and deploy Move smart contracts. Use
sui-decompileto study existing contracts, then usesui-moveto write your own. - sui-coverage: Analyze test coverage. Decompile a contract, write tests for it, then check coverage.
Typical workflow:
sui-decompile- Study how a DeFi protocol workssui-move- Write your own contract based on learned patternssui-coverage- Ensure your code is well-tested
Server/Headless Setup
For running on servers without display (CI/CD, VPS, etc.), use Puppeteer with a virtual display to avoid headless detection:
# Install xvfb (virtual framebuffer)
sudo apt-get install xvfb
# Run with virtual display (avoids headless detection)
xvfb-run --auto-servernum node scraper.js
Puppeteer example:
const puppeteer = require('puppeteer');
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-decompile": {
"enabled": true,
"auto_update": true
}
}
}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.