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.
- License 许可
- MIT
- 最近更新
- 2026-04-05
- Stars
- ★ 7
- Forks
- 1
01 前言 Front Matter
- name
- sui-move
- version
- 1.0.0
- metadata
- { "tags": "sui, move, blockchain, smart-contract, web3", "author": "EasonClawdbot1", "install": [ { "id": "sui-cli", "bins": [ "sui" ], "kind": "brew", "label": "Install Sui CLI (brew)", "formula": "sui" } ], "requires": { "bins": [ "sui", "rg" ] } }
- description
- 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.
02 资源文件 3
- 参考文档_meta.json270 B
- 参考文档package.json643 B
- 脚本setup.sh1.1 KB
03 SKILL.md 正文
Sui Move Development
Comprehensive knowledge base for Sui blockchain and Move smart contract development.
Setup References
Clone the official documentation:
# Create skill directory
mkdir -p {baseDir}/references && cd {baseDir}/references
# Clone Move Book (The Move Language Bible)
git clone --depth 1 https://github.com/MystenLabs/move-book.git
# Clone Sui docs (sparse checkout)
git clone --depth 1 --filter=blob:none --sparse https://github.com/MystenLabs/sui.git
cd sui && git sparse-checkout set docs
Reference Structure
Move Book (references/move-book/book/)
| Directory | Content |
|---|---|
your-first-move/ |
Hello World, Hello Sui tutorials |
move-basics/ |
Variables, functions, structs, abilities, generics |
concepts/ |
Packages, manifest, addresses, dependencies |
storage/ |
Object storage, UID, transfer functions |
object/ |
Object model, ownership, dynamic fields |
programmability/ |
Events, witness, publisher, display |
move-advanced/ |
BCS, PTB, cryptography |
guides/ |
Testing, debugging, upgrades, BCS |
appendix/ |
Glossary, reserved addresses |
Sui Docs (references/sui/docs/content/)
- Concepts, guides, standards, references
Quick Search
# Search Move Book for a topic
rg -i "keyword" {baseDir}/references/move-book/book/ --type md
# Search Sui docs
rg -i "keyword" {baseDir}/references/sui/docs/ --type md
# Find all files about a topic
find {baseDir}/references -name "*.md" | xargs grep -l "topic"
Key Concepts
Move Language Basics
Abilities - Type capabilities:
copy- Can be copieddrop- Can be dropped (destroyed)store- Can be stored in objectskey- Can be used as a key in global storage (objects)
public struct MyStruct has key, store {
id: UID,
value: u64
}
Object Model:
- Every object has a unique
UID - Objects can be owned (address), shared, or immutable
- Transfer functions:
transfer::transfer,transfer::share_object,transfer::freeze_object
Common Patterns
Create and Transfer Object:
public fun create(ctx: &mut TxContext) {
let obj = MyObject {
id: object::new(ctx),
value: 0
};
transfer::transfer(obj, tx_context::sender(ctx));
}
Shared Object:
public fun create_shared(ctx: &mut TxContext) {
let obj = SharedObject {
id: object::new(ctx),
counter: 0
};
transfer::share_object(obj);
}
Entry Functions:
public entry fun do_something(obj: &mut MyObject, value: u64) {
obj.value = value;
}
CLI Commands
# Create new project
sui move new my_project
# Build
sui move build
# Test
sui move test
# Publish
sui client publish --gas-budget 100000000
# Call function
sui client call --package <PACKAGE_ID> --module <MODULE> --function <FUNCTION> --args <ARGS>
# Get object
sui client object <OBJECT_ID>
Workflow
When answering Sui/Move questions:
-
Search references first:
rg -i "topic" {baseDir}/references/move-book/book/ -l -
Read relevant files:
cat {baseDir}/references/move-book/book/<path>/<file>.md -
Provide code examples from the references
-
Link to official docs when helpful:
- Move Book: https://move-book.com
- Sui Docs: https://docs.sui.io
Topics Index
| Topic | Location |
|---|---|
| Hello World | move-book/book/your-first-move/hello-world.md |
| Hello Sui | move-book/book/your-first-move/hello-sui.md |
| Primitives | move-book/book/move-basics/primitive-types.md |
| Structs | move-book/book/move-basics/struct.md |
| Abilities | move-book/book/move-basics/abilities-introduction.md |
| Generics | move-book/book/move-basics/generics.md |
| Object Model | move-book/book/object/ |
| Storage | move-book/book/storage/ |
| Events | move-book/book/programmability/events.md |
| Testing | move-book/book/guides/testing.md |
| Upgrades | move-book/book/guides/upgradeability.md |
| PTB | move-book/book/move-advanced/ptb/ |
| BCS | move-book/book/move-advanced/bcs.md |
Notes
- Move 2024 edition introduces new features (enums, method syntax, etc.)
- Sui uses a unique object-centric model different from other blockchains
- Gas is paid in SUI tokens
- Testnet/Devnet available for development
04 同仓库更多 Skills
zyfai
Earn yield on any Ethereum wallet on Base, Arbitrum, and Plasma. Use when a user wants passive DeFi yield on their funds. Deploys a non-custodial subaccount (Safe) linked to their EOA, enables automated yield optimization, and lets them deposit/withdraw anytime.
zerion-api
暂无简介
zerion-api-skill
暂无简介
zerion-api-mcp
暂无简介
yahoo-finance-forex
Fetches real-time FOREX news and market data from Yahoo Finance for major currency pairs (EUR/USD, GBP/USD, USD/JPY, etc.). Analyzes sentiment and provides trading context.
yahoo-finance
This skill should be used when the user asks to "get stock prices", "check stock quotes", "look up earnings", "get financial data", "find trending stocks", or needs stock market data from Yahoo Finance.