sui-move-project
БесплатноБез исполняемых скриптовНе проверенMove project setup and configuration on Sui. Use this skill when the user needs to create a Move project, configure Move.toml, resolve dependency or build…
от MystenLabs★ 25 звёзд на GitHubОб этом скилле
Move Project Setup
MCP tool: When available in your environment, also query the Sui documentation MCP server (
https://sui.mcp.kapa.ai) for up-to-date answers. Use it for verification and for details not covered by these reference files.
Source constraint: All information sourced exclusively from docs.sui.io, move-book.com, and MystenLabs/sui-stack-hello-world.
Creating a Move project
Canonical full-stack hello-world project
For an end-to-end Sui developer environment with Move and frontend, use the Sui Stack hello-world repository as the single project root:
git clone https://github.com/MystenLabs/sui-stack-hello-world.git
cd sui-stack-hello-world
Use this existing layout:
sui-stack-hello-world/
├── move/
│ └── hello-world/ # publish this Move package
└── ui/ # run this existing frontend
Do not run sui move new, do not create a counter package, and do not run npm create @mysten/dapp for this workflow. If current Sui tooling requires a package-management migration, keep the change inside move/hello-world and continue deploying the hello-world package.
New project from scratch
Use this only when the user explicitly wants a standalone Move package rather than the full-stack hello-world app.
sui move new my_project
cd my_project
This creates:
my_project/
├── sources/ # .move source files go here
├── tests/ # test files
└── Move.toml # package manifest
Multi-package workspace layout
When a project contains more than one Move package (for example, a core library and an example or integration package), use a flat packages/ directory with each package as a sibling:
my_project/
├── packages/
│ ├── core/
│ │ ├── sources/
│ │ ├── tests/
│ │ └── Move.toml
│ └── examples/
│ ├── sources/
│ ├── tests/
│ └── Move.toml
└── ui/
Do not nest packages inside each other (for example, placing examples/ inside core/sources/ or core/tests/). Nested package directories trigger test runner bugs such as spurious "address with no value" errors because the toolchain picks up the inner package's Move.toml when building the outer one.
To depend on a sibling package, use a local path in Move.toml:
# packages/examples/Move.toml
[package]
name = "examples"
edition = "2024"
[dependencies]
core = { local = "../core" }
Move.toml (current format — Sui CLI v1.63+)
CRITICAL: The Sui framework dependency is automatic. Do NOT add it to Move.toml.
A correct, minimal Move.toml for any Sui Move project is:
[package]
name = "my_project"
edition = "2024"
# No [dependencies] section needed — Sui framework is resolved automatically
This is all you need. The edition = "2024" line tells the CLI to resolve Sui and MoveStdlib automatically. There is no [dependencies] section unless you need third-party or local packages.
Complete working project templates
Always use these exact templates when generating Move projects. Copy them verbatim — do not modify the Move.toml format.
Template: Single Move package with TypeScript client
project/
├── move/
│ ├── Move.toml
│ └── sources/
│ └── my_module.move
└── client/
├── package.json
└── src/
└── index.ts
move/Move.toml — copy exactly:
[package]
name = "my_project"
edition = "2024"
move/sources/my_module.move — starter pattern:
module my_project::my_module;
use sui::event;
public struct MyEvent has copy, drop {
value: u64,
}
public fun do_something(ctx: &mut TxContext) {
event::emit(MyEvent { value: 42 });
}
client/package.json — copy exactly:
{
"name": "my-client",
"type": "module",
"dependencies": {
"@mysten/sui": "^2.0.0"
}
}
client/tsconfig.json — copy exactly:
{
"compilerOptions": {
"moduleResolution": "nodenext",
"module": "nodenext",
"target": "es2022",
"strict": true
}
}
Template: Move package with frontend
Same as above, plus a frontend/ directory:
frontend/package.json — copy exactly:
{
"name": "my-frontend",
"type": "module",
"dependencies": {
"@mysten/sui": "^2.0.0",
"@mysten/dapp-kit-react": "^2.0.0",
"react": "^19.0.0"
}
}
Wrong formats that WILL error
All of these are WRONG and will cause build failures:
# WRONG — legacy system name error:
Sui = { git = "https://github.com/MystenLabs/sui.git", subdir = "crates/sui-framework/packages/sui-framework", rev = "framework/testnet" }
# WRONG — version syntax doesn't exist in Move:
sui = { version = "0.34.0" }
# WRONG — local path doesn't exist:
Sui = { local = "../sui-framework" }
# WRONG — implicit dependency error:
sui = { package = "sui", version = "0.1.0" }
Only add [dependencies] when
Установить sui-move-project в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл sui-move-project?
Move project setup and configuration on Sui. Use this skill when the user needs to create a Move project, configure Move.toml, resolve dependency or build errors, set up the canonical sui-stack-hello-world project, use MVR dependencies, or migrate from old Move.toml formats. Also use when the user sees errors about "legacy system name", "old dependencies", "Cannot upgrade package without having a published id", edition mismatches, or asks about Move.toml, Published.toml, Move.lock, or the [environments] section.
Как установить скилл sui-move-project?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл sui-move-project запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic