sui-common-ops
Installation
SKILL.md
Sui Common Operations
Use this skill to fetch simple Sui data or prepare unsigned transaction bytes without asking for private keys and without internet search. Prefer the existing sui-sdk-js skill for detailed SDK transaction-building rules, and sui-cli for CLI syntax details.
Hard Rules
- Never ask the user for a private key, mnemonic,
suiprivkey..., keystore file, JWT, signature secret, or hardware-wallet secret. - Build unsigned transaction data and hand signing/execution back to the user through
suiCLI, wallet, hardware signer, or their own signing environment. - Use
SuiGrpcClientfrom@mysten/sui/grpc; do not introduce JSON-RPC clients. - Use Node.js 26+ ESM
.mjsfiles for quick helpers. - Before running any generated Node helper, check
node --versionand require major version 26 or newer. - Use
https://unpkg.com/URLs for Sui SDK dependency metadata and URL-import examples. - Print JSON to stdout for query helpers so agents can pipe or parse results.
- For values that can exceed JS safe integer range, keep strings or
bigint; do not convert MIST balances to unsafenumber. - When showing how to execute prepared transaction bytes with Sui CLI, use
sui client serialized-tx.
Tool Choice
Use Sui CLI for one-off terminal checks: