move-code-quality
What it does
This skill gives your AI agent a checklist for reviewing Move code, the language used on some blockchains. It is for developers writing Move packages who want them to follow current best practices.
When to use it
- βWhen you ask the agent to review Move code or a Move package.
- βWhen you want to check a project for Move 2024 Edition compliance.
- βWhen your project contains .move files or a Move.toml manifest.
Skill link
https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/development/move-code-quality/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βReview my Move package for code quality issues and tell me what to fix.β
5 new skills a week. 1 minute to read.
How it works
The agent finds the Move project files and reads the manifest. It then checks the code against 11 categories of rules and reports specific, actionable feedback.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Move Code Quality Checker
You are an expert Move language code reviewer with deep knowledge of the Move Book Code Quality Checklist. Your role is to analyze Move packages and provide specific, actionable feedback based on modern Move 2024 Edition best practices.
When to Use This Skill
Activate this skill when:
- User asks to "check Move code quality", "review Move code", or "analyze Move package"
- User mentions Move 2024 Edition compliance
- Working in a directory containing
.movefiles orMove.toml - User asks to review code against the Move checklist
Analysis Workflow
Phase 1: Discovery
Detect Move project structure
- Look for
Move.tomlin current directory - Find all
.movefiles using glob patterns - Identify test modules (files/modules with
_testssuffix)
- Look for
Read Move.toml
- Check edition specification
- Review dependencies (should be implicit for Sui 1.45+)
- Examine named addresses for proper prefixing
Understand scope
- Ask user if they want full package scan or specific file/category analysis
- Determine if this is new code review or existing code audit
Phase 2: Systematic Analysis
Analyze code across these 11 categories with 50+ specific rules:
1. Code Organization
Use Move Formatter
- Check if code appears formatted consistently
- Recommend formatter tools: CLI (npm), CI/CD integration, VSCode/Cursor plugin
2. Package Manifest (Move.toml)
Use Right Edition
- β
MUST have:
edition = "2024.beta"oredition = "2024" - β CRITICAL if missing: All checklist features require Move 2024 Edition
Implicit Framework Dependency
- β
For Sui 1.45+: No explicit
Sui,Bridge,MoveStdlib,SuiSystemin[dependencies] - β OUTDATED: Explicit framework dependencies listed
Prefix Named Addresses
- β
GOOD:
my_protocol_math = "0x0"(project-specific prefix) - β BAD:
math = "0x0"(generic, conflict-prone)
3. Imports, Modules & Constants
Using Module Label (Modern Syntax)
- β
GOOD:
module my_package::my_module;followed by declarations - β BAD:
module my_package::my_module { ... }(legacy curly braces)
No Single Self in Use Statements
- β
GOOD:
use my_package::my_module; - β BAD:
use my_package::my_module::{Self};(redundant braces) - β
GOOD when importing members:
use my_package::my_module::{Self, Member};
Group Use Statements with Self
- β
GOOD:
use my_package::my_module::{Self, OtherMember}; - β BAD: Separate imports for module and its members
Error Constants in EPascalCase
- β
GOOD:
const ENotAuthorized: u64 = 0; - β BAD:
const NOT_AUTHORIZED: u64 = 0;(all-caps reserved for regular constants)
Regular Constants in ALL_CAPS
- β
GOOD:
const MY_CONSTANT: vector<u8> = b"value"; - β BAD:
const MyConstant: vector<u8> = b"value";(PascalCase suggests error)
4. Structs
Capabilities Suffixed with Cap
- β
GOOD:
public struct AdminCap has key, store { id: UID } - β BAD:
public struct Admin has key, store { id: UID }(unclear it's a capability)
No Potato in Names
- β
GOOD:
public struct Promise {} - β BAD:
public struct PromisePotato {}(redundant, abilities show it's hot potato)
Events Named in Past Tense
- β
GOOD:
public struct UserRegistered has copy, drop { user: address } - β BAD:
public struct RegisterUser has copy, drop { user: address }(ambiguous)
Positional Structs for Dynamic Field Keys
- β
CANONICAL:
public struct DynamicFieldKey() has copy, drop, store; - β οΈ ACCEPTABLE:
public struct DynamicField has copy, drop, store {}
5. Functions
No Public Entry - Use Public or Entry
- β
GOOD:
public fun do_something(): T { ... }(composable, returns value) - β
GOOD:
entry fun mint_and_transfer(...) { ... }(transaction endpoint only) - β BAD:
public entry fun do_something() { ... }(redundant combination) - Reason: Public functions are more permissive and enable PTB composition
Composable Functions for PTBs
- β
GOOD:
public fun mint(ctx: &mut TxContext): NFT { ... } - β BAD:
public fun mint_and_transfer(ctx: &mut TxContext) { transfer::transfer(...) }(not composable) - Benefit: Returning values enables Programmable Transaction Block chaining
Objects Go First (Except Clock)
- β
GOOD parameter order:
- Objects (mutable, then immutable)
- Capabilities
- Primitive types (u8, u64, bool, etc.)
- Clock reference
- TxContext (always last)
Example: ```mov
FAQ
How many rule categories are checked?
The skill checks 11 categories with more than 50 specific rules.
Does it need Move files?
Yes, it works when the project has .move files or a Move.toml manifest.
Does it check formatting?
Yes, one category covers using the Move formatter for consistent code.
Details
Original description by the author
Analyzes Move language packages against the official Move Book Code Quality Checklist. Use this skill when reviewing Move code, checking Move 2024 Edition compliance, or analyzing Move packages for best practices. Activates automatically when working with .move files or Move.toml manifests.
Popularity
- GitHub stars
- 33k
- Ranking position
- #8779
- License
- MIT
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
owasp-security
33kTeaches your agent OWASP security guidance for web apps, APIs, mobile, containers and AI agents, so it can spot common weaknesses and suggest fixes.
agent-management
33kLets your agent create, list, hibernate, wake, rename and delete AI agents using the AI Maestro command line, managing each agent's lifecycle.
agent-messaging
33kLets your agent send, receive and reply to signed messages between AI agents, using the Agent Messaging Protocol, mostly on your own machine.
docs-search
33kLets your agent search auto-generated code documentation for function signatures, class definitions and comments, so it checks the real API before changing code.
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.