К основному содержанию
скилл CX Codex

sui-for-ethereum — скилл для Claude Code: миграция на Sui Move

Скилл sui-for-ethereum для Claude Code объясняет переход с Ethereum и Solidity на Sui Move. Подключается при сравнении моделей, переносе токенов и разборе контрактных паттернов.

Apache-2.0 159 установок ★ 25 обновлён 2026-11-12

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add MystenLabs/skills --skill sui-for-ethereum -a claude-code
Открыть на GitHub

Что делает sui-for-ethereum

Скилл сопоставляет привычные разработчикам Ethereum подходы с моделью Sui Move. Он объясняет переход от аккаунтов к объектам, устройство хранения данных и различия в управлении доступом. Данные в Move хранятся в объектах отдельно от пакета с логикой.

Для точечных сравнений в patterns.md собраны сопоставления стандартов ERC-20, ERC-721 и ERC-1155, а также темы обновления контрактов, владения и компонуемости. Материал разбирает PTB: они объединяют вызовы контрактов в одну атомарную транзакцию, до 1,024 вызовов. В отличие от Solidity, Move не поддерживает наследование и динамическую диспетчеризацию.

Какие задачи решает

  • сопоставить модель аккаунтов Ethereum с объектами Sui
  • найти соответствия ERC-20 и ERC-721 в стандартах Sui
  • разобраться в управлении доступом через capability-объекты
  • сравнить обновление контрактов в Solidity и Move
  • объединить вызовы контрактов в атомарную транзакцию через PTB

Примеры запросов агенту

  • Сравни хранение данных в Solidity и Sui Move.
  • Какие стандарты Sui соответствуют ERC-20 и ERC-721?
  • Объясни разницу между Ownable и capability-доступом в Sui.

Как установить sui-for-ethereum

1Через Skills CLI (Vercel)

npx skills add MystenLabs/skills --skill sui-for-ethereum -a claude-code

2Вручную: положить файлы

~/.claude/skills/sui-for-ethereum/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/sui-for-ethereum/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о sui-for-ethereum

Как установить sui-for-ethereum в Claude Code?

Выполни npx skills add MystenLabs/skills --skill sui-for-ethereum -a claude-code. Файл скилла находится по пути ~/.claude/skills/sui-for-ethereum/SKILL.md.

Что делает sui-for-ethereum?

Скилл объясняет различия между Ethereum/EVM/Solidity и Sui Move и сопоставляет их модели хранения, доступа, токенов и обновления контрактов.

Как скилл объясняет атомарные вызовы в Sui?

Он разбирает PTB — механизм для объединения вызовов контрактов в одну атомарную транзакцию. В одном PTB может быть до 1,024 вызовов.

Исходный текст

SKILL.md · Apache-2.0
---
name: sui-for-ethereum
description: >
  Migrating from Ethereum/EVM/Solidity to Sui Move. Use when the user is an
  Ethereum developer learning Sui, comparing Solidity patterns to Move equivalents,
  asking about differences between EVM and MoveVM, mapping Ethereum token standards
  to Sui standards, or translating access control, state storage, contract upgrade,
  or composability patterns from Ethereum to Sui.
---

# Sui for Ethereum Developers

> **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 in this skill is sourced exclusively from [docs.sui.io/getting-started/sui-for-ethereum](https://docs.sui.io/getting-started/sui-for-ethereum). When extending or updating this skill, only pull from this source. Do not use third-party blogs, tutorials, or unofficial documentation.

This skill helps Ethereum/EVM/Solidity developers understand how Sui Move differs from the patterns they already know. It covers conceptual model shifts, pattern mappings, and concrete comparisons between the two ecosystems.

---

## Reference files

### patterns — Pattern Mappings and Comparisons
**Path:** `patterns.md`
**Load when:** the user asks about specific Ethereum-to-Sui pattern mappings, token standard equivalents, technical comparisons (signatures, consensus, VM), access control differences, data storage differences, contract upgrade approaches, or composability differences.
**Covers:** account vs object model, data storage, inheritance and polymorphism, asset accessibility, access control patterns (with Move capability example), contract upgrades, development environment, state mutation, object model fundamentals, object ownership types, mutating objects, PTBs, standards mapping (ERC-20/ERC-721/ERC-1155 to Sui equivalents), and full technical comparison table.

---

## Routing guide

| Task | Load |
|------|------|
| High-level "what is different about Sui vs Ethereum" | SKILL.md only |
| Specific pattern mapping (access control, storage, tokens) | patterns |
| Token standard equivalents (ERC-20, ERC-721, ERC-1155) | patterns |
| Technical comparisons (signatures, consensus, VM, execution) | patterns |
| How PTBs replace multi-transaction workflows | patterns |
| Contract upgrade differences | patterns |
| Capability-based vs role-based access control | patterns |

---

## Core conceptual shifts

### Programming language
Sui uses Move; the EVM uses Solidity. Move enforces resource safety at both compile time and through bytecode verification. Objects cannot be duplicated or silently dropped. Solidity relies on the EVM for runtime safety.

### Account-centric vs object-centric
Ethereum uses an account-centric model. Solidity implements custom ownership logic within contracts using mappings. Only Ethereum's native currency (ETH) is a first-class citizen with global APIs. Sui uses an object-centric model. Object ownership is inherent to the protocol. Objects are first-class citizens encompassing everything owned on Sui. Any currency on Sui has the same properties as SUI.

### Data storage
In Solidity, data is stored in the smart contract. In Move, data is stored in Move objects. Logic is defined in the contract (package), but the data lives in objects separate from the contract itself. Object behavior (creation, modification, ownership, and deletion) is defined by a package.

### Object model fundamentals
Objects store data in Move and everything in Move is an object. This includes smart contracts (Move packages), onchain addresses, coins, and NFTs.

### Object ownership
- **Address-owned objects:** Single address ownership. Transferable without smart contract interaction.
- **Shared objects:** Publicly accessible objects anyone can use.

### Programmable transaction blocks (PTBs)
PTBs give builders the ability to chain contract calls together with atomicity guarantees during runtime. A Sui PTB can have up to 1,024 different contract calls. This replaces the pattern in Ethereum where each call is its own transaction and is not atomic.

---

## Rules

- Always frame migration advice around the shift from account-centric to object-centric thinking.
- When comparing access control, emphasize that Sui uses capability-based access control through owned objects, not identity/role-based access control through Ownable or AccessControl contracts.
- When discussing token standards, map ERC-20 and ERC-721 to the Sui Currency Standard and Closed-Loop Token. Do not invent Sui equivalents for standards not covered in the source material.
- When discussing contract upgrades, explain that Sui requires layout compatibility, not proxy contracts.
- When discussing composability, emphasize PTBs as the mechanism for atomic multi-call transactions.
- Do not describe Sui as "just another EVM chain." The programming model is fundamentally different.
- Do not invent information beyond what is provided in the source material from docs.sui.io/getting-started/sui-for-ethereum.

## Common mistakes

- **Assuming Solidity inheritance patterns work in Move.** Move has no interfaces, no polymorphism, and no dynamic dispatch. It uses composition through module imports and generics (`Type<T>`) instead.
- **Assuming only role-based access control works.** Sui can implement role-based access control, but the idiomatic pattern is capability-based access through owned objects (e.g., `AdminCap`). Capabilities cheaply objectify ownership transfer rules.
- **Thinking data is stored in the contract like Solidity.** In Sui, logic lives in the contract (package) but data lives in Move objects.
- **Expecting proxy-based contract upgrades.** Sui can have proxy-like patterns, but they must operate on the same object types across upgrades. Layout compatibility is required — new contracts must be layout-compatible with the old one. Upgrades are controlled through `UpgradeCap`.
- **Treating each Move function call as a separate transaction.** Use PTBs to chain up to 1,024 contract calls into a single atomic transaction.
- **Assuming tokens are bound to a smart contract like in Solidity.** On Sui, anyone can access shared objects, and owned objects are directly accessible by their owner without going through a contract.

© MystenLabs · Apache-2.0 · MystenLabs/skills

Похожие скиллы

Все скиллы по теме «Языки программирования» →
ethereum Mindrally Задаёт агенту правила разработки смарт-контрактов Ethereum: паттерны безопасности, интеграция OpenZeppelin, тесты на Hardhat. CX Codex +1 783установок analyzing-ethereum-smart-contract-vulnerabilities mahipal Скилл analyzing-ethereum-smart-contract-vulnerabilities запускает статический и символьный анализ смарт-контрактов на Solidity через Slither и Mythril. Помогает находить reentrancy и ошибки переполнения до деплоя в сеть Ethereum. CX Codex +1 398установок Sui Knowledge Base (kapa.ai) MystenLabs Sui Knowledge Base (kapa.ai) — MCP-сервер для Claude Code и других платформ: ищет ответы в документации Sui по смыслу запроса и возвращает точные ссылки вместо списка файлов. CX Codex +1 ★ 7 782звёзд репо Ethereum Developer ameya-2003 Промпт Ethereum Developer для ChatGPT и Claude.ai, который настраивает агента на роль Ethereum-разработчика. Задача — написать смарт-контракт на Solidity для блокчейн-мессенджера с публичным чтением и приватной записью. GP ChatGPT ★ 178 201звёзд репо ethskills austintgriffith Скилл ethskills для Claude Code, Codex, Cursor и других агентов, который даёт актуальный контекст по Ethereum, EVM и L2-сетям. Подключается при любой задаче со смарт-контрактами, DeFi-протоколами или деплоем dApp. CX Codex +1 2 500установок EVMole cdump Локальный MCP-сервер EVMole, который разбирает развёрнутый байткод EVM: селекторы функций, аргументы, мутабельность, обращения к хранилищу и метаданные компилятора. CX Codex +1 ★ 476звёзд репо

Из того же набора30

Весь набор →
deepbook-margin Скилл deepbook-margin для Claude Code объясняет маржинальную торговлю в DeepBook на Sui. Подключается к задачам с заёмными позициями, залогом, рисками и ликвидацией. CX Codex +1 181установок deepbook-move Скилл deepbook-move для Claude Code помогает писать и отлаживать Move-контракты с DeepBook V3. Он подключается к вопросам о пулах, ордерах, обменах, флеш-займах и правах BalanceManager. CX Codex +1 181установок deepbook-predict Объясняет интеграцию DeepBook Predict с рынками прогнозов на Sui. Помогает создавать и закрывать позиции, разбирать расчёт и работу пула ликвидности. CX Codex +1 181установок sui-ts-sdk-backend Скилл sui-ts-sdk-backend для Claude Code помогает писать серверный код и агентов, которые работают с Sui через TypeScript SDK. Подключается для настройки клиента, подписания транзакций и запуска их сериями. CX Codex +1 167установок zklogin Объясняет устройство zkLogin и помогает интегрировать вход через OAuth в приложения на Sui. Подключается к вопросам о провайдерах OpenID, адресах, сроке сессии и безопасности. CX Codex +1 164установок kiosk Помогает писать, проверять и отлаживать Move-код с Sui Kiosk. Он подключается к задачам с торговлей активами, NFT и расширениями Kiosk. CX Codex +1 162установок onchain-randomness Скилл onchain-randomness для Claude Code настраивает работу с генератором случайных чисел в смарт-контрактах Sui Move. Защищает функции от атак композиции и утечек состояния. CX Codex +1 162установок sui-bridge Объясняет работу Sui Bridge и помогает находить сведения о переводах между Sui и Ethereum. Подключается к вопросам о поддерживаемых активах, лимитах, финальности и управлении мостом. CX Codex +1 160установок

Спонсоры проекта

Компании, которые помогают держать аналитику открытой