build-ai-agent
Build an AI agent that signs Sui transactions or runs onchain actions. Use when the user wants an AI agent on Sui.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Build an AI agent that signs Sui transactions or runs onchain actions. Use when the user wants an AI agent on Sui.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Pick a brand name, color palette, or typography for a Sui product. Use when the user wants to name or brand a Sui project.
Build a Sui data indexer or analytics pipeline. Use when the user wants to index Sui events, build a pipeline, or query Sui RPC data.
Build a mobile Sui app with React Native or the Sui Mobile SDK. Use when the user wants iOS, Android, or mobile Sui flows.
Pair with a coding agent to build a Sui MVP step by step. Use when the user wants to build the MVP iteratively with an agent.
Author Sui Move modules and packages with a senior Move dev as your pair. Use when the user wants to write, build, author, add, or scaffold Move code, smart contracts, or Sui programs at the module or function level, in any phrasing.
Integrate Cetus AMM on Sui (swaps, liquidity, concentrated pools). Use when the user mentions Cetus.
| name | build-ai-agent |
| description | Build an AI agent that signs Sui transactions or runs onchain actions. Use when the user wants an AI agent on Sui. |
# Suiperpower telemetry. Routes through the CLI so projects.json + Convex stay in sync.
# Silent on failure so the skill never blocks. Opt out: SUIPERPOWER_TELEMETRY=off.
#
# AGENT NOTE: when this skill finishes, run the matching completion command:
# suiperpower track build-ai-agent build completed
# Or use "failed" / "aborted" if it ended that way.
command -v suiperpower >/dev/null 2>&1 && suiperpower track build-ai-agent build started >/dev/null 2>&1 &
true
If TEL_PROMPTED is no, before doing real work, ask the user:
Help suiperpower get better. We track which skills get used and how long they take. No code, no file paths, no PII. Change anytime in
~/.suiperpower/config.json.A) Sure, anonymous B) No thanks
Write the answer to ~/.suiperpower/config.json telemetryTier field and create ~/.suiperpower/.telemetry-prompted. Then continue.
Guides the user through building an AI agent that autonomously transacts on Sui. Picks the right wallet pattern, compute layer, memory system, and coordination model for the agent's use case, then wires them together with PTBs as the agent's tool-use layer. Refuses to ship an agent that cannot execute a real transaction end to end.
find-next-sui-idea first.scaffold-project first.sui-zk-login.sponsored-transactions.seal-access-control.build-with-move.If you activated this and the user actually wants something else, consult skills/SKILL_ROUTER.md and hand off.
.suiperpower/build-context.md from scaffold-project. Read it if present.If unclear, interview the user for:
Agent wallet setup (zkLogin + sponsored, server keypair, or hybrid).
PTB composition logic for the agent's on-chain actions.
Memory integration (MemWal) if the agent needs persistence.
Compute integration (Nautilus or Atoma) if the agent needs inference.
Coordination layer (shared objects, events) if multi-agent.
Append to .suiperpower/build-context.md:
## build-ai-agent session, <timestamp>
- agent purpose: <one sentence>
- wallet pattern: <zkLogin+sponsored | keypair | hybrid>
- compute: <Nautilus | Atoma | local | none>
- memory: <MemWal | custom | none>
- coordination: <shared objects | events | none>
- packages added: <list>
- open issues: <list>
| Use case | Wallet | Compute | Memory | Coordination |
|---|---|---|---|---|
| Trading bot (server-side) | Ed25519 keypair | Atoma or local LLM | MemWal | Events for signals |
| User-facing assistant | zkLogin + Enoki sponsored | Atoma API | MemWal | None |
| Data marketplace agent | zkLogin + sponsored | Nautilus TEE | Walrus blobs | Shared object registry |
| Multi-agent swarm | Keypair per agent | Atoma | MemWal per agent | Shared objects as bulletin boards |
| Privacy-preserving agent | zkLogin | Nautilus TEE + Seal | MemWal (encrypted) | Events, Seal-gated |
| Game NPC / autonomous entity | Keypair (server) | Local or Atoma | MemWal | Shared game state objects |
Confirm the architecture with the user before writing code. If the use case does not fit a row, compose from the columns.
Context gathering
.suiperpower/build-context.md if it exists.Pick architecture
Wallet setup
sui-zk-login and sponsored-transactions skills for detail.@mysten/sui/keypairs/ed25519. Store the private key in env or KMS, never in source. Fund with SUI for gas.PTB composition (agent tool use)
NestedResult.Transaction from @mysten/sui/transactions. Compose multi-step atomic operations: check condition, swap, update state, emit event, all in one PTB.references/agent-architecture.md for PTB-as-tool-use patterns.Memory integration (if applicable)
@mysten-incubation/memwal and peer deps (@mysten/sui, @mysten/seal, @mysten/walrus, ai, zod).mw.remember() to store decisions, user preferences, and context.mw.recall() for semantic retrieval.references/agent-tooling.md for the API.Compute integration (if applicable)
references/agent-architecture.md for the Nautilus flow.Coordination (if multi-agent)
sui::event::emit for agent-to-agent signals, poll via queryEvents (suix_subscribeEvent is deprecated).Test end to end
remember then recall returns the stored context.Writeback
.suiperpower/build-context.md.Closing handoff
.suiperpower/intent.md exists and the session was non-trivial (new module, new sponsor integration, or material changes to public functions), recommend verify-against-intent as the next step so drift is caught before shipping.intent.md exists and the session was non-trivial, surface that gap once: offer clarify-intent to backfill, do not force it.Before reporting done, the skill asks itself the following and refuses to declare success if any answer is no:
If any answer is no, the skill reports the gap and works through it before claiming the session is complete.
On-demand references (load when relevant to the user's question):
references/agent-architecture.md: Why Sui for agents, PTBs as tool use, wallet patterns, memory, compute, coordination.references/agent-tooling.md: MemWal API, Atoma API, agent frameworks (Sui Agent Kit, Caterpillar Kit, Talus), Enoki sponsored flow, npm packages.references/agent-pitfalls.md: Common mistakes when building AI agents on Sui.External docs (fetch at runtime for the latest API surface):
claude "/suiper:build-ai-agent <your message>"codex "/build-ai-agent <your message>"grok, then /build-ai-agent <your message> in the session~/.cursor/rules/build-ai-agent.mdcIf you activated this and the user actually wants something else, consult skills/SKILL_ROUTER.md and hand off.