sui-decompileFetch 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 ClawdBot CLI:
clawdbot install EasonC13/sui-decompileFetch decompiled source code for on-chain Sui Move packages via block explorers.
GitHub:
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"() => {
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');
}
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"() => {
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';
}
Packages like DeepBook (0xdee9) have multiple modules:
.move files| 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 |
This skill works great with the Sui development skill suite:
sui-decompile to study existing contracts, then use sui-move to write your own.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-testedFor 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');
async function fetchContractSource(packageId) {
const browser = await puppeteer.launch({
headless: false, // Use 'new' headless or false with xvfb
args: ['--no-sandbox', '--disable-setuid-sandbox']
});
const page = await browser.newPage();
await page.goto(`https://suivision.xyz/package/${packageId}?tab=Code`);
await page.waitForSelector('table tr');
const code = await page.evaluate(() => {
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');
});
await browser.close();
return code;
}
Why xvfb? Some sites detect headless browsers. Running with xvfb-run creates a virtual display, making the browser behave like a real desktop browser.
This skill is part of the Sui development skill suite:
| Skill | Description |
|-------|-------------|
| sui-decompile | Fetch and read on-chain contract source code |
| sui-move | Write and deploy Move smart contracts |
| sui-coverage | Analyze test coverage with security analysis |
| sui-agent-wallet | Build and test DApps frontend |
Workflow:
sui-decompile β sui-move β sui-coverage β sui-agent-wallet
Study Write Test & Audit Build DApps
All skills:
AI Usage Analysis
Analysis is being generated⦠refresh in a few seconds.
Connect Claude to Clawdbot instantly and keep it connected 24/7. Run after setup to link your subscription, then auto-refreshes tokens forever.
ERC-8004 Trustless Agents - Register, discover, and build reputation for AI agents on Ethereum. Use when registering agents on-chain, querying agent registries, giving/receiving reputation feedback, or interacting with the AI agent trust layer.
Autonomous crypto trading on Base via Bankr. Use for trading tokens, monitoring launches, executing strategies, or managing a trading portfolio. Triggers on "trade", "buy", "sell", "launch", "snipe", "profit", "PnL", "portfolio balance", or any crypto trading task on Base.
Deploy ERC20 tokens on Base using Clanker SDK. Create tokens with built-in Uniswap V4 liquidity pools. Supports Base mainnet and Sepolia testnet. Requires PRIVATE_KEY in config.
Query DeFi portfolio data across 50+ chains via Zapper's GraphQL API. Use when the user wants to check wallet balances, DeFi positions, NFT holdings, token prices, or transaction history. Supports Base, Ethereum, Polygon, Arbitrum, Optimism, and more. Requires ZAPPER_API_KEY.
Interact with Solana blockchain via Helius APIs. Create/manage wallets, check balances (SOL + tokens), send transactions, swap tokens via Jupiter, and monitor addresses. Use for any Solana blockchain operation, crypto wallet management, token transfers, DeFi swaps, or portfolio tracking.