sui-sdks
Installation
SKILL.md
Sui SDKs
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.
Most AI agents give confusing, outdated, or cross-wired answers about Sui SDKs. This skill fixes the three most common failure modes:
- Recommending a community SDK as if it were official. Only two SDKs are maintained by Mysten Labs: TypeScript (
@mysten/sui) and Rust (sui-rust-sdkfamily of crates). Everything else is community-maintained. - Mixing up TypeScript SDK generations. The old
@mysten/sui.jspackage was renamed to@mysten/suiat v1.0. The v2 client API (client.core.*,includeinstead ofshow*,SuiGrpcClientreplacingSuiClient) is distinct from v1. - Not using the installed LLM docs. Every
@mysten/*package shipsdocs/llms-index.md+ topic-specific markdown files tonode_modules. Agents should read those before answering; they are guaranteed to match the installed version.
All patterns in this skill are derived from:
- https://docs.sui.io/references/sui-sdks (canonical SDK inventory)
- https://sdk.mystenlabs.com/sui (TypeScript SDK reference)
- https://sdk.mystenlabs.com/sui/llm-docs (bundled LLM docs convention)
- https://github.com/MystenLabs/sui-rust-sdk (Rust SDK source)
- https://docs.rs/sui-transaction-builder (Rust PTB builder)
If unsure about any specific API in any SDK, fetch from the relevant doc page — do not extrapolate from a different SDK's surface.