sui-decompile for Openclaw

A powerful tool for fetching and analyzing decompiled Sui Move smart contract source code directly from block explorers.

easonc13
v1.0.3
Feb 10, 2026
0
1.9k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install sui-decompile

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install sui-decompile using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is sui-decompile?

sui-decompile is a specialized module for AI agents that facilitates the retrieval of Move source code from the Sui blockchain. By targeting platforms like Suivision and Suiscan, it allows developers to inspect on-chain logic, understand complex DeFi protocols, and learn from existing contract implementations. This tool is a cornerstone of the Openclaw Skills ecosystem for Sui development.

The skill handles the nuances of web scraping, including navigating module tabs and extracting code from complex table structures. Whether you are performing a security audit or looking for implementation inspiration, sui-decompile bridges the gap between on-chain bytecode and human-readable Move code.

sui-decompile Use Cases

  • Study existing DeFi protocols on the Sui network to understand their inner workings.
  • Decompile and analyze smart contracts for security vulnerabilities or auditing purposes.
  • Extract verified source code from Suivision to ensure implementation accuracy.
  • Scrape multiple modules from complex packages like DeepBook to build a local codebase.
  • Integrate with other Openclaw Skills to automate the development lifecycle from research to deployment.

How sui-decompile Works

  1. The agent identifies a target Sui package ID to analyze based on user input.
  2. It navigates to a supported explorer like Suivision or Suiscan using automated browser actions.
  3. The tool interacts with the user interface to switch between bytecode and source code tabs.
  4. It iterates through available module tabs in the sidebar to capture all facets of the contract package.
  5. The skill executes custom JavaScript within the browser context to parse table rows and reconstruct code lines.
  6. The final output is aggregated into Move files and passed to the AI agent for further explanation or modification.

sui-decompile Setup

To use this skill in a server or CI/CD environment without a physical display, you should use xvfb to avoid headless detection. Install the dependencies and run the scraper as follows:

# Install xvfb (virtual framebuffer)
sudo apt-get install xvfb

# Run with virtual display to bypass bot detection
xvfb-run --auto-servernum node scraper.js

Ensure your Puppeteer configuration uses the correct flags to mimic a real desktop browser environment within the Openclaw Skills framework.

sui-decompile Data Schema & Taxonomy

The skill organizes its extracted data by mapping package IDs to individual module files, maintaining a clear taxonomy for the AI agent.

Data Element Type Description
Package ID String The hex address of the Sui package (e.g., 0xdee9)
Module Name String Individual module identified within the package
Source Code Move The reconstructed .move code content extracted from the DOM
Explorer Origin String Identifies if the source was Suivision or Suiscan

sui-decompile Advanced Features

  • Multi-source fallback logic between Suivision and Suiscan to ensure high availability.
  • Automatic multi-module detection and sequential extraction through automated sidebar navigation.
  • Server-side headless support via virtual framebuffers (xvfb) to mimic real user behavior and avoid scraping blocks.
  • Native integration with the sui-move skill for immediate code prototyping after successful de-compilation.
  • Specialized extraction of MovebitAudit verified source code for high-security applications.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*