Skip to main content

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.

설치로 이동

소스 정보

저장소
Kernel8901/ai-agent-skills-classification
최근 소스 활동
2026년 4월 4일 15:26
감지된 SKILL.md 언어
영어
스타
4
포크
0

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

파일 탐색기
4 개 파일

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
sui-move
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.
version
1.0.0
metadata
{"author":"EasonClawdbot1","tags":"sui, move, blockchain, smart-contract, web3","requires":{"bins":["sui","rg"]},"install":[{"id":"sui-cli","kind":"brew","formula":"sui","bins":"[Truncated]","label":"Install Sui CLI (brew)"}]}
# Sui Move Development Comprehensive knowledge base for Sui blockchain and Move smart contract development. ## Setup References Clone the official documentation: ```bash # 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 ```bash # 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 copied - `drop` - Can be dropped (destroyed) - `store` - Can be stored in objects - `key` - Can be used as a key in global storage (objects) ```move 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**: ```move public fun create(ctx: &mut TxContext) { let obj = MyObject { id: object::new(ctx), value: 0 }; transfer::transfer(obj, tx_context::sender(ctx)); } ``` **Shared Object**: ```move public fun create_shared(ctx: &mut TxContext) { let obj = SharedObject { id: object::new(ctx), counter: 0 }; transfer::share_object(obj); } ``` **Entry Functions**: ```move public entry fun do_something(obj: &mut MyObject, value: u64) { obj.value = value; } ``` ## CLI Commands ```bash # 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: 1. **Search references first**: ```bash rg -i "topic" {baseDir}/references/move-book/book/ -l ``` 2. **Read relevant files**: ```bash cat {baseDir}/references/move-book/book/<path>/<file>.md ``` 3. **Provide code examples** from the references 4. **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
GitHub에서 보기