naming-conventions
naming-conventions
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.
Overview
Move on Sui has specific naming conventions that differ from what AI agents typically generate from training data. This skill covers every naming pattern from the official code quality checklist.
All patterns sourced from https://move-book.com/guides/code-quality-checklist
Error Constants: EPascalCase with #[error]
Error constants MUST use PascalCase with an E prefix. Do NOT use SCREAMING_SNAKE_CASE.
Use the #[error] attribute to attach human-readable messages to error constants. When an abort occurs, the message is included in the error output, making debugging much easier for users and support.