debug-move
Debug Sui Move compile errors, runtime aborts, or capability leaks. Use when the user has a Move error, abort code, failed PTB, or compiler issue.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Debug Sui Move compile errors, runtime aborts, or capability leaks. Use when the user has a Move error, abort code, failed PTB, or compiler issue.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
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 an AI agent that signs Sui transactions or runs onchain actions. Use when the user wants an AI agent on Sui.
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.
| name | debug-move |
| description | Debug Sui Move compile errors, runtime aborts, or capability leaks. Use when the user has a Move error, abort code, failed PTB, or compiler issue. |
# 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 debug-move build completed
# Or use "failed" / "aborted" if it ended that way.
command -v suiperpower >/dev/null 2>&1 && suiperpower track debug-move 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.
Diagnoses Move problems methodically. Sui Move errors fall into three buckets, compile errors, runtime aborts, and capability or ownership mistakes that compile but misbehave. This skill sorts the symptom into the right bucket, then walks the matching playbook until the bug is reproduced, understood, and fixed. It does not guess. It runs the build or the test, reads the actual error, and proceeds from evidence.
sui move build or sui move test is failing and the user does not know why.abort_code and the user wants to trace it.build-with-move.ptb-composer or the relevant frontend skill.review-move.Move.toml (dependency rev mismatch), this skill will route you, but resolution may belong in scaffold-project.If you activated this and the user actually wants something else, consult skills/SKILL_ROUTER.md and hand off.
Move.toml, .suiperpower/build-context.md, the PTB transaction digest if the error came from testnet.If unclear, ask:
.suiperpower/build-context.md under a ### debug-move session, <timestamp> heading.learnings.md so future builds avoid it.The skill never edits code without reading the surrounding module and confirming the change preserves intent.
Reproduce
Categorize
error[E...] from the Move compiler. Bucket by code: ability mismatch, type mismatch, missing function, visibility.MoveAbort with a code. Read the abort_code and find the assert! or named error const that produced it.sui client tx-block <digest>.transfer::public_transfer fails, a function refuses to authorize, or a shared Object behaves unexpectedly. This category is the trickiest.Walk the bucket-specific playbook
references/compile-error-playbook.md.references/abort-tracing.md.references/capability-leakage.md.Fix and re-run
Add a regression test if missing
Writeback
.suiperpower/build-context.md.Before reporting done, the skill asks itself:
.suiperpower/build-context.md so the next session has context?If any answer is no, the skill keeps working before declaring fixed.
On-demand references (load when relevant to the user's question):
references/compile-error-playbook.md: Common compiler error codes and the fix shape for each.references/abort-tracing.md: Reading abort_code, mapping to assert! lines, tracing PTB aborts on testnet.references/capability-leakage.md: Patterns that compile but misuse capabilities, and the safer rewrites.Knowledge docs (load when scope expands beyond what is in references):
skills/data/sui-knowledge/03-move-and-objects.md: Object model and Move ability rules.skills/build/build-with-move/references/common-move-pitfalls.md: Cross-cutting Move pitfalls reference.claude "/suiper:debug-move <your message>"codex "/debug-move <your message>"grok, then /debug-move <your message> in the session~/.cursor/rules/debug-move.mdc and reference it.If you activated this and the user actually wants something else, consult skills/SKILL_ROUTER.md and hand off.