move-code-quality
Fungsinya
Skill ini memberikan agent AI Anda daftar periksa untuk meninjau kode Move, bahasa yang digunakan di beberapa blockchain. Skill ini ditujukan untuk pengembang paket Move yang ingin paket mereka mengikuti praktik terbaik saat ini.
Kapan dipakai
- βSaat Anda meminta agent meninjau kode Move atau paket Move.
- βSaat Anda ingin memeriksa proyek untuk kepatuhan terhadap Move 2024 Edition.
- βSaat proyek Anda berisi file .move atau manifest Move.toml.
Link skill
https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/development/move-code-quality/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βTinjau paket Move saya dari masalah kualitas kode dan beri tahu apa yang harus diperbaiki.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent menemukan file proyek Move dan membaca manifest-nya. Setelah itu, agent memeriksa kode terhadap 11 kategori aturan dan melaporkan umpan balik yang spesifik dan dapat ditindaklanjuti.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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
Pertanyaan umum
Berapa banyak kategori aturan yang diperiksa?
Skill memeriksa 11 kategori dengan lebih dari 50 aturan spesifik.
Apakah perlu file Move?
Ya. Skill bekerja jika proyek memiliki file .move atau manifest Move.toml.
Apakah memeriksa format?
Ya. Satu kategori mencakup penggunaan formatter Move untuk kode yang konsisten.
Detail
Deskripsi asli dari pembuat
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.
Popularitas
- Bintang GitHub
- 33k
- Peringkat
- #8779
- Lisensi
- MIT
- Diperbarui
- 2/11/2026
Komentar
- β¦
Skill lain dari repositori ini
owasp-security
33kMengajari agent Anda panduan keamanan OWASP untuk aplikasi web, API, mobile, kontainer, dan agent AI, sehingga bisa menemukan kelemahan umum dan menyarankan perbaikan.
agent-management
33kMembiarkan agent Anda membuat, mencantumkan, menidurkan, membangunkan, mengganti nama, dan menghapus agent AI menggunakan baris perintah AI Maestro, sambil mengelola siklus hidup setiap agent.
agent-messaging
33kMembiarkan agent Anda mengirim, menerima, dan membalas pesan bertanda tangan antaragent AI, menggunakan Agent Messaging Protocol, sebagian besar di mesin Anda sendiri.
docs-search
33kMembiarkan agent Anda mencari dokumentasi kode yang dibuat otomatis untuk tanda tangan fungsi, definisi kelas, dan komentar, sehingga agent memeriksa API yang sebenarnya sebelum mengubah kode.
Skill serupa
diffs
394kMemungkinkan agent Anda menghasilkan diff perubahan yang nyata dan dapat dibagikan sebagai tautan viewer atau file gambar, bukan ringkasan yang ditulis manual.
coding-agent
394kMembantu agent Anda menyerahkan pekerjaan pemrograman besar ke Codex, Claude Code, atau OpenCode di latar belakang, lalu memeriksa kemajuannya.
gh-issues
394kMembantu agent Anda menemukan issue GitHub, memilih yang dikerjakan, dan membuka pull request perbaikan, termasuk tindak lanjut komentar tinjauan.