Sui Move Guide
Route the task to the smallest set of Sui Move skills that covers the risk. Use
this skill as an explicit catalog, not a coding standard.
Route the task
- Decide whether the user wants only a route or wants the route executed. A
route-only request is complete with a named sequence and one reason per
selected skill.
- Inventory every affected boundary and risk, then select the smallest sequence
that owns all of them. The inventory is complete when each requested change
maps to at least one selected skill.
- Before execution, verify every selected sibling skill is installed. If one is
missing, stop execution and tell the user to install the complete suite;
still provide the route without recreating the missing rules.
- Execute the selected skills in the stated order, reading each once. Execution
is complete only when every selected skill's completion gate is satisfied or
its evidence gap is reported.
Skills
$sui-move-architecture: package boundaries, module responsibilities,
minimal state, reusable value invariants, events and replay, canonical
authority, dependency direction, on-chain scope, abilities, capabilities,
and composition seams.
$sui-move-source-style: sections, imports, names, visibility, signatures,
errors and abort ownership, receiver and index syntax, direct UID access,
pinned library reuse, locals, API vocabulary, documentation, and test-only
seams.
$sui-move-security: fail-fast ordering, authorization, signed actions,
replay, bounded work, arithmetic, custody, integrations, time, oracles,
randomness, pauses, versions, and upgrades.
$sui-move-testing: risk-based tests, exact failures, guard precedence,
fixtures, properties, event replay, integrations, upgrades, dependencies, and
release gates.
$sui-move-patterns: selection and application of the suite's promoted
reusable designs.
$sui-move-review: one complete audit across all focused standards.
Common routes
Design a new package or major feature
Apply architecture before public ABI or storage, then security, source style,
and testing. Finish with review. Read each standard only once per task.
Change an existing state transition
Apply security, source style, and testing. Add architecture when state
ownership, authority, abilities, visibility, storage, event emission, replay,
or package boundaries can change. Source style owns any changed error
representation; security owns guard behavior and precedence.
Add or change a module, type, or public API
Apply architecture and source style. Add security for authority, asset,
lifecycle, or shared-state types. Preserve published function signatures and
datatype layouts; the focused skills own migration details.
Upgrade a package or migrate state
Apply architecture, security, source style, and testing. Load architecture's
event reference or source style's error reference when indexed or diagnostic
behavior changes. Finish with review for a release-wide audit.
Add events or errors
For events, apply architecture and testing. For errors, apply source style and
testing; add security when guard order, authorization, or transition behavior
can change.
Audit redundancy or simplify Move code
Apply architecture to state, public seams, events, and replay; apply source
style to code shape and errors; apply testing before removal. Add security when
simplification can change guards, authority, assets, composition, or evaluation
order.
Build or repair tests
Apply testing plus the focused skill that owns the behavior under test. Tests
prove rules; they do not invent them.
Select, compare, or apply a reusable pattern
Apply patterns when the task asks for a named reusable design or matches a
promoted pattern's problem. Then apply only the focused standards that own the
selected design's invariants.
Review a branch or pull request
Use review. It loads every focused standard and requires the complete suite.
Routing rule
Use a focused skill for a narrow question. When uncertainty could affect
behavior, include security and testing. Keep source style, architecture, and
security distinct: each must cover the risks it owns.
The route is complete when every affected boundary and risk has an owner, no
selected skill is redundant, and the execution order preserves design before
implementation and tests before final review.
1---2name: sui-move-guide3description: Route a Sui Move task to the smallest applicable skill sequence. Requires the complete suite installation to execute a route.4---56# Sui Move Guide78Route the task to the smallest set of Sui Move skills that covers the risk. Use9this skill as an explicit catalog, not a coding standard.1011## Route the task12131. Decide whether the user wants only a route or wants the route executed. A14 route-only request is complete with a named sequence and one reason per15 selected skill.162. Inventory every affected boundary and risk, then select the smallest sequence17 that owns all of them. The inventory is complete when each requested change18 maps to at least one selected skill.193. Before execution, verify every selected sibling skill is installed. If one is20 missing, stop execution and tell the user to install the complete suite;21 still provide the route without recreating the missing rules.224. Execute the selected skills in the stated order, reading each once. Execution23 is complete only when every selected skill's completion gate is satisfied or24 its evidence gap is reported.2526## Skills2728- `$sui-move-architecture`: package boundaries, module responsibilities,29 minimal state, reusable value invariants, events and replay, canonical30 authority, dependency direction, on-chain scope, abilities, capabilities,31 and composition seams.32- `$sui-move-source-style`: sections, imports, names, visibility, signatures,33 errors and abort ownership, receiver and index syntax, direct UID access,34 pinned library reuse, locals, API vocabulary, documentation, and test-only35 seams.36- `$sui-move-security`: fail-fast ordering, authorization, signed actions,37 replay, bounded work, arithmetic, custody, integrations, time, oracles,38 randomness, pauses, versions, and upgrades.39- `$sui-move-testing`: risk-based tests, exact failures, guard precedence,40 fixtures, properties, event replay, integrations, upgrades, dependencies, and41 release gates.42- `$sui-move-patterns`: selection and application of the suite's promoted43 reusable designs.44- `$sui-move-review`: one complete audit across all focused standards.4546## Common routes4748### Design a new package or major feature4950Apply architecture before public ABI or storage, then security, source style,51and testing. Finish with review. Read each standard only once per task.5253### Change an existing state transition5455Apply security, source style, and testing. Add architecture when state56ownership, authority, abilities, visibility, storage, event emission, replay,57or package boundaries can change. Source style owns any changed error58representation; security owns guard behavior and precedence.5960### Add or change a module, type, or public API6162Apply architecture and source style. Add security for authority, asset,63lifecycle, or shared-state types. Preserve published function signatures and64datatype layouts; the focused skills own migration details.6566### Upgrade a package or migrate state6768Apply architecture, security, source style, and testing. Load architecture's69event reference or source style's error reference when indexed or diagnostic70behavior changes. Finish with review for a release-wide audit.7172### Add events or errors7374For events, apply architecture and testing. For errors, apply source style and75testing; add security when guard order, authorization, or transition behavior76can change.7778### Audit redundancy or simplify Move code7980Apply architecture to state, public seams, events, and replay; apply source81style to code shape and errors; apply testing before removal. Add security when82simplification can change guards, authority, assets, composition, or evaluation83order.8485### Build or repair tests8687Apply testing plus the focused skill that owns the behavior under test. Tests88prove rules; they do not invent them.8990### Select, compare, or apply a reusable pattern9192Apply patterns when the task asks for a named reusable design or matches a93promoted pattern's problem. Then apply only the focused standards that own the94selected design's invariants.9596### Review a branch or pull request9798Use review. It loads every focused standard and requires the complete suite.99100## Routing rule101102Use a focused skill for a narrow question. When uncertainty could affect103behavior, include security and testing. Keep source style, architecture, and104security distinct: each must cover the risks it owns.105106The route is complete when every affected boundary and risk has an owner, no107selected skill is redundant, and the execution order preserves design before108implementation and tests before final review.