sui-networks-gas — скилл для Claude Code: сети и установка
Скилл sui-networks-gas для Claude Code объясняет сети Sui и расчёт газа. Включается на вопросы о Mainnet, Testnet, Devnet, Localnet, бюджетах газа и эпохах.
Apache-2.0 184 установок ★ 25 обновлён 2026-11-12
npx skills add MystenLabs/skills --skill sui-networks-gas -a claude-codeЧто делает sui-networks-gas
Скилл объясняет различия между четырьмя сетями Sui и устройство комиссий за транзакции. Он разбирает вычислительную стоимость, хранение объектов и возврат за освобождённое хранилище; также поясняет, как бюджет газа влияет на выполнение транзакции.
Материалы охватывают эпохи, смену валидаторов и изменение цены газа. Это справочник по концепциям сети, а не по командам CLI. Для настройки клиента, адресов, кранов и обозревателей нужен sui-client, а для установки CLI — sui-install. Если доступен MCP-сервер документации Sui, скилл может использовать его для проверки актуальных сведений.
Какие задачи решает
- сравнить Mainnet, Testnet, Devnet и Localnet
- рассчитать газ с учётом вычислений, хранения и возврата
- разобраться, как бюджет газа влияет на транзакцию
- понять, что меняется на границе эпохи
Примеры запросов агенту
- Объясни разницу между Mainnet и Testnet в Sui.
- Как рассчитать комиссию за транзакцию с учётом возврата за хранилище?
- Что происходит с ценой газа при смене эпохи?
Как установить sui-networks-gas
1Через Skills CLI (Vercel)
npx skills add MystenLabs/skills --skill sui-networks-gas -a claude-code2Вручную: положить файлы
~/.claude/skills/sui-networks-gas/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/sui-networks-gas/
1Через Skills CLI (Vercel)
npx skills add MystenLabs/skills --skill sui-networks-gas -a codex2Вручную: положить файлы
.agents/skills/sui-networks-gas/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add MystenLabs/skills --skill sui-networks-gas -a cursor2Вручную: положить файлы
.cursor/skills/sui-networks-gas/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install MystenLabs/skills sui-networks-gas2Вручную: положить файлы
.github/skills/sui-networks-gas/SKILL.md1Через Skills CLI (Vercel)
npx skills add MystenLabs/skills --skill sui-networks-gas -a gemini-cli2Командой платформы
gemini skills install https://github.com/MystenLabs/skills --path sui-networks-gasВручную: положить файлы
.devin/skills/sui-networks-gas/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add MystenLabs/skills --skill sui-networks-gas -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о sui-networks-gas
Как установить sui-networks-gas в Claude Code?
Выполни npx skills add MystenLabs/skills --skill sui-networks-gas -a claude-code. Файл скилла находится по пути ~/.claude/skills/sui-networks-gas/SKILL.md.
Что делает sui-networks-gas?
Скилл объясняет среды Sui, расчёт газа, бюджеты и эпохи. Он описывает концепции сети, а не команды CLI.
Из чего складывается стоимость газа в Sui?
К стоимости вычислений прибавляется стоимость хранения, затем вычитается возврат за освобождённое хранилище: gas cost = computation cost + storage cost - storage rebate.
Исходный текст
SKILL.md · Apache-2.0
--- name: sui-networks-gas description: > Sui network environments and gas economics. Use when the user asks about Mainnet, Testnet, Devnet, or Localnet differences, gas cost calculations (computation + storage - rebate), gas budgets, epochs, or how the Sui network operates at a high level. This skill covers network concepts, not CLI commands. For CLI client setup, address management, faucets, and explorers, see the `sui-client` skill. For installing the Sui CLI, see the `sui-install` skill. --- # Sui Networks and Gas > **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](https://docs.sui.io). When extending or updating this skill, only pull from this source. Do not use third-party blogs, tutorials, or unofficial documentation. --- ## Related skills | Topic | Skill | |-------|-------| | CLI client configuration, addresses, faucets, explorers | `sui-client/` | | Installing the Sui CLI (suiup) | `sui-install/` | | Move project setup and Move.toml | `sui-move-project/` | | Publishing and upgrading packages | `sui-publish/` | --- ## Sui networks Sui operates four network environments: - **Mainnet:** Production network. SUI tokens have real monetary value. Use for final deployments. - **Testnet:** Mirrors Mainnet features. Free SUI tokens from faucets. Use for integration testing and staging. - **Devnet:** Development network. Free SUI tokens. Use for early-stage development and experimentation. - **Localnet:** Runs locally on your machine. Use for offline development and unit testing. ## Gas cost model Every transaction on Sui requires SUI tokens to pay gas. The total gas cost is: **gas cost = computation cost + storage cost - storage rebate** - **Computation cost:** Proportional to the computational effort of executing the transaction. - **Storage cost:** The cost of storing new or expanded objects onchain. You pay for the bytes your objects occupy. - **Storage rebate:** When a transaction deletes objects or reduces their size, you receive a rebate for the storage freed. This incentivizes cleaning up unused state. The gas budget (`--gas-budget`) sets the maximum you are willing to pay. If the transaction exceeds the budget, it fails and a portion of the gas budget is still charged. On Testnet and Devnet, tokens are free through faucets (see the `sui-client` skill for faucet methods). Gas prices can vary per epoch; query the current gas price through the RPC. ## Epochs An epoch is a fixed time period during which the validator set and gas price remain constant. On Mainnet, one epoch is approximately 24 hours. At the epoch boundary, the network processes staking rewards, rotates validators, and updates the gas price. Use `ctx.epoch()` to read the current epoch number in Move and `ctx.epoch_timestamp_ms()` for the epoch start time. ## Rules - Always specify `--gas-budget` when submitting transactions from the CLI. - Use `sui client switch --env <ENV>` to change networks. Do not edit `client.yaml` manually. ## Common mistakes - **Forgetting to switch networks.** Publishing to Mainnet when you meant Testnet. Always verify with `sui client active-env`. - **Running out of gas on Testnet/Devnet.** Use the faucet (see `sui-client` skill) to get free tokens.
© MystenLabs · Apache-2.0 · MystenLabs/skills