sui-decompile

Fetch on-chain SUI Move contract source code via Suivision, Suiscan, and sui client CLI.

7|2|Updated Feb 11, 2026
One-click install
npx skills add https://github.com/first-mover-tw/sui-dev-agents --skill sui-decompile
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sui-decompile
Source: https://github.com/first-mover-tw/sui-dev-agents/tree/main/skills/sui-decompile
Command: npx skills add https://github.com/first-mover-tw/sui-dev-agents --skill sui-decompile

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill enables developers to easily retrieve and analyze the source code of deployed SUI Move contracts directly from the blockchain, facilitating learning, auditing, and reverse-engineering.

Core Features & Use Cases

  • Fetch Verified Source: Retrieves official, verified source code when available from explorers like Suivision.
  • Decompile Bytecode: Uses tools like Revela or Suiscan's decompiled output for contracts without verified source.
  • Handle Multi-Module Packages: Extracts code for all modules within a single package.
  • Use Case: Before building a new DEX, use this skill to decompile existing popular AMMs like Cetus or Turbos Finance to understand their liquidity pool logic and fee mechanisms.

Quick Start

Use the sui-decompile skill to fetch the source code for the Cetus CLMM package ID '0x1eabed72c53feb73c00...' from mainnet.

Frequently Asked Questions about sui-decompile

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fetch the source code of a deployed Sui Move smart contract?

To fetch Sui Move smart contract source code, retrieve verified code from block explorers like Suivision or Suiscan, or use the sui client CLI to get bytecode. You can then analyze or reverse-engineer the deployed protocol directly.

Can I decompile Sui bytecode if the contract source is not verified?

Yes, you can decompile Sui bytecode without verified source by using tools like Revela or Suiscan's decompiled output. This allows you to reverse-engineer the smart contract logic and understand the deployed modules.

What is the best way to analyze Sui AMM liquidity pool logic before building a DEX?

The best way to analyze Sui AMM liquidity pool logic is to decompile existing popular protocols like Cetus or Turbos Finance. Fetching their on-chain Move contract source helps you understand fee mechanisms and pool architectures.

Does fetching Sui contract source support extracting all modules within a single package?

Yes, fetching Sui contract source supports extracting code for all modules within a single package. This multi-module package handling ensures you retrieve the complete source code for comprehensive dependency auditing.

How do I audit dependencies of deployed Sui Move protocols?

To audit dependencies of deployed Sui Move protocols, fetch the on-chain smart contract source code using the sui client CLI and block explorers. This retrieves the exact deployed bytecode or verified source for security analysis.