move-code-quality
यह क्या करती है
यह स्किल आपके AI को Move कोड की समीक्षा के लिए एक चेकलिस्ट देती है, जो कुछ blockchains पर इस्तेमाल होने वाली भाषा है। यह उन डेवलपर्स के लिए है जो Move पैकेज लिखते हैं और चाहते हैं कि वे मौजूदा सर्वोत्तम प्रथाओं का पालन करें।
कब इस्तेमाल करें
- ✓जब आप एजेंट से Move कोड या Move पैकेज की समीक्षा करवाना चाहते हैं।
- ✓जब आप प्रोजेक्ट को Move 2024 Edition के अनुपालन के लिए जाँचना चाहते हैं।
- ✓जब आपके प्रोजेक्ट में .move फ़ाइलें या Move.toml manifest है।
Skill का लिंक
https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/development/move-code-quality/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरे Move पैकेज में कोड गुणवत्ता समस्याएँ जाँचिए और बताइए कि क्या ठीक करना है।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट Move प्रोजेक्ट फ़ाइलें ढूँढता है और manifest पढ़ता है। फिर वह कोड को 11 श्रेणियों के नियमों से जाँचता है और विशिष्ट, कार्रवाई योग्य फ़ीडबैक देता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे 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
अक्सर पूछे जाने वाले सवाल
कितनी नियम श्रेणियाँ जाँची जाती हैं?
स्किल 50 से अधिक विशिष्ट नियमों वाली 11 श्रेणियाँ जाँचती है।
क्या इसके लिए Move फ़ाइलें चाहिए?
हाँ, यह तब काम करती है जब प्रोजेक्ट में .move फ़ाइलें या Move.toml manifest हो।
क्या यह फ़ॉर्मैटिंग जाँचती है?
हाँ, एक श्रेणी सुसंगत कोड के लिए Move formatter इस्तेमाल करने को कवर करती है।
जानकारी
लेखक का मूल विवरण
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.
लोकप्रियता
- GitHub स्टार
- 33k
- रैंकिंग में स्थान
- #8779
- लाइसेंस
- MIT
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
owasp-security
33kआपके एजेंट को वेब ऐप, API, मोबाइल, कंटेनर और AI एजेंट्स के लिए OWASP सुरक्षा मार्गदर्शन सिखाती है, ताकि वह आम कमज़ोरियाँ पहचान सके और सुधार सुझा सके।
agent-management
33kआपके एजेंट को AI Maestro कमांड-लाइन से AI एजेंट बनाने, सूची देखने, hibernate और wake करने, नाम बदलने और हटाने देती है, हर एजेंट के जीवन-चक्र को संभालते हुए।
agent-messaging
33kAgent Messaging Protocol का उपयोग करके AI एजेंट्स के बीच हस्ताक्षरित संदेश भेजने, प्राप्त करने और उनका जवाब देने देती है, ज़्यादातर आपकी अपनी मशीन पर।
docs-search
33kआपके एजेंट को फ़ंक्शन सिग्नेचर, क्लास परिभाषा और कमेंट के लिए ऑटो-जनरेटेड कोड डॉक्यूमेंटेशन खोजने देती है, ताकि कोड बदलने से पहले वह असली API जाँच सके।
मिलती-जुलती skills
diffs
394kयह आपके एजेंट को बदलावों का असली diff बनाने देती है, जिसे व्यूअर लिंक या इमेज फ़ाइल के रूप में साझा किया जा सकता है, हाथ से लिखे सारांश के बजाय।
coding-agent
394kयह आपके एजेंट को बड़े कोडिंग काम Codex, Claude Code या OpenCode को बैकग्राउंड वर्कर के रूप में सौंपने, फिर उसकी प्रगति जांचने में मदद करती है।
gh-issues
394kयह आपके एजेंट को GitHub issues खोजने, उनमें से काम करने लायक चुनने, और सुधार के साथ pull requests खोलने में मदद करती है, जिसमें समीक्षा टिप्पणियों का फ़ॉलो-अप भी शामिल है।