[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6C6PCWSYM92Q78NZ6142P9W":3,"skill-same:01M6C6PCWSYM92Q78NZ6142P9W":67},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":41,"linkOnly":42,"markdownContent":43,"markdownBody":44,"frontMatter":45,"refName":46,"commitSha":47,"skillDirectory":48,"forksCount":15,"repositoryHtmlUrl":49,"repositoryHomepageUrl":17,"ownerHtmlUrl":50,"ownerBlogUrl":17,"ownerDescription":51,"updatedAt":52,"install":53,"resources":66},"01M6C6PCWSYM92Q78NZ6142P9W","move-code-quality","Move 代码质量审查","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.","依据官方 Move Book 代码质量检查清单分析 Move 语言包。在审查 Move 代码、检查 Move 2024 Edition 合规性或分析 Move 包最佳实践时使用此技能。处理 .move 文件或 Move.toml 清单时自动激活。","swesmith\u002Fdavila7__claude-code-templates.734b8a50","swesmith","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F189315905?v=4","01M6C6MQ65WXKTCSMZA2V1MVHH","SWE-smith","01M6C6MQAR55RCJYERH7BG0DYN",2,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fswesmith\u002Fdavila7__claude-code-templates.734b8a50\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fdevelopment\u002Fmove-code-quality\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQJH394GT47X57A9Q8G7HX","测试与质量保障","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40],"code quality","code","move code quality","quality","official","packages","best practices","compliance","analyzing","use","2026-11-10 10:12:30",false,"---\nname: move-code-quality\ndescription: 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.\n---\n\n# Move Code Quality Checker\n\nYou 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.\n\n## When to Use This Skill\n\nActivate this skill when:\n- User asks to \"check Move code quality\", \"review Move code\", or \"analyze Move package\"\n- User mentions Move 2024 Edition compliance\n- Working in a directory containing `.move` files or `Move.toml`\n- User asks to review code against the Move checklist\n\n## Analysis Workflow\n\n### Phase 1: Discovery\n\n1. **Detect Move project structure**\n   - Look for `Move.toml` in current directory\n   - Find all `.move` files using glob patterns\n   - Identify test modules (files\u002Fmodules with `_tests` suffix)\n\n2. **Read Move.toml**\n   - Check edition specification\n   - Review dependencies (should be implicit for Sui 1.45+)\n   - Examine named addresses for proper prefixing\n\n3. **Understand scope**\n   - Ask user if they want full package scan or specific file\u002Fcategory analysis\n   - Determine if this is new code review or existing code audit\n\n### Phase 2: Systematic Analysis\n\nAnalyze code across these **11 categories with 50+ specific rules**:\n\n#### 1. Code Organization\n\n**Use Move Formatter**\n- Check if code appears formatted consistently\n- Recommend formatter tools: CLI (npm), CI\u002FCD integration, VSCode\u002FCursor plugin\n\n---\n\n#### 2. Package Manifest (Move.toml)\n\n**Use Right Edition**\n- ✅ MUST have: `edition = \"2024.beta\"` or `edition = \"2024\"`\n- ❌ CRITICAL if missing: All checklist features require Move 2024 Edition\n\n**Implicit Framework Dependency**\n- ✅ For Sui 1.45+: No explicit `Sui`, `Bridge`, `MoveStdlib`, `SuiSystem` in `[dependencies]`\n- ❌ OUTDATED: Explicit framework dependencies listed\n\n**Prefix Named Addresses**\n- ✅ GOOD: `my_protocol_math = \"0x0\"` (project-specific prefix)\n- ❌ BAD: `math = \"0x0\"` (generic, conflict-prone)\n\n---\n\n#### 3. Imports, Modules & Constants\n\n**Using Module Label (Modern Syntax)**\n- ✅ GOOD: `module my_package::my_module;` followed by declarations\n- ❌ BAD: `module my_package::my_module { ... }` (legacy curly braces)\n\n**No Single Self in Use Statements**\n- ✅ GOOD: `use my_package::my_module;`\n- ❌ BAD: `use my_package::my_module::{Self};` (redundant braces)\n- ✅ GOOD when importing members: `use my_package::my_module::{Self, Member};`\n\n**Group Use Statements with Self**\n- ✅ GOOD: `use my_package::my_module::{Self, OtherMember};`\n- ❌ BAD: Separate imports for module and its members\n\n**Error Constants in EPascalCase**\n- ✅ GOOD: `const ENotAuthorized: u64 = 0;`\n- ❌ BAD: `const NOT_AUTHORIZED: u64 = 0;` (all-caps reserved for regular constants)\n\n**Regular Constants in ALL_CAPS**\n- ✅ GOOD: `const MY_CONSTANT: vector\u003Cu8> = b\"value\";`\n- ❌ BAD: `const MyConstant: vector\u003Cu8> = b\"value\";` (PascalCase suggests error)\n\n---\n\n#### 4. Structs\n\n**Capabilities Suffixed with Cap**\n- ✅ GOOD: `public struct AdminCap has key, store { id: UID }`\n- ❌ BAD: `public struct Admin has key, store { id: UID }` (unclear it's a capability)\n\n**No Potato in Names**\n- ✅ GOOD: `public struct Promise {}`\n- ❌ BAD: `public struct PromisePotato {}` (redundant, abilities show it's hot potato)\n\n**Events Named in Past Tense**\n- ✅ GOOD: `public struct UserRegistered has copy, drop { user: address }`\n- ❌ BAD: `public struct RegisterUser has copy, drop { user: address }` (ambiguous)\n\n**Positional Structs for Dynamic Field Keys**\n- ✅ CANONICAL: `public struct DynamicFieldKey() has copy, drop, store;`\n- ⚠️ ACCEPTABLE: `public struct DynamicField has copy, drop, store {}`\n\n---\n\n#### 5. Functions\n\n**No Public Entry - Use Public or Entry**\n- ✅ GOOD: `public fun do_something(): T { ... }` (composable, returns value)\n- ✅ GOOD: `entry fun mint_and_transfer(...) { ... }` (transaction endpoint only)\n- ❌ BAD: `public entry fun do_something() { ... }` (redundant combination)\n- **Reason**: Public functions are more permissive and enable PTB composition\n\n**Composable Functions for PTBs**\n- ✅ GOOD: `public fun mint(ctx: &mut TxContext): NFT { ... }`\n- ❌ BAD: `public fun mint_and_transfer(ctx: &mut TxContext) { transfer::transfer(...) }` (not composable)\n- **Benefit**: Returning values enables Programmable Transaction Block chaining\n\n**Objects Go First (Except Clock)**\n- ✅ GOOD parameter order:\n  1. Objects (mutable, then immutable)\n  2. Capabilities\n  3. Primitive types (u8, u64, bool, etc.)\n  4. Clock reference\n  5. TxContext (always last)\n\nExample:\n```move\n\u002F\u002F ✅ GOOD\npublic fun call_app(\n    app: &mut App,\n    cap: &AppCap,\n    value: u8,\n    is_smth: bool,\n    clock: &Clock,\n    ctx: &mut TxContext,\n) { }\n\n\u002F\u002F ❌ BAD - parameters out of order\npublic fun call_app(\n    value: u8,\n    app: &mut App,\n    is_smth: bool,\n    cap: &AppCap,\n    clock: &Clock,\n    ctx: &mut TxContext,\n) { }\n```\n\n**Capabilities Go Second**\n- ✅ GOOD: `public fun authorize(app: &mut App, cap: &AdminCap)`\n- ❌ BAD: `public fun authorize(cap: &AdminCap, app: &mut App)` (breaks method associativity)\n\n**Getters Named After Field + _mut**\n- ✅ GOOD: `public fun name(u: &User): String` (immutable accessor)\n- ✅ GOOD: `public fun details_mut(u: &mut User): &mut Details` (mutable accessor)\n- ❌ BAD: `public fun get_name(u: &User): String` (unnecessary prefix)\n\n---\n\n#### 6. Function Body: Struct Methods\n\n**Common Coin Operations**\n- ✅ GOOD: `payment.split(amount, ctx).into_balance()`\n- ✅ BETTER: `payment.balance_mut().split(amount)`\n- ✅ CONVERT: `balance.into_coin(ctx)`\n- ❌ BAD: `coin::into_balance(coin::split(&mut payment, amount, ctx))`\n\n**Don't Import std::string::utf8**\n- ✅ GOOD: `b\"hello, world!\".to_string()`\n- ✅ GOOD: `b\"hello, world!\".to_ascii_string()`\n- ❌ BAD: `use std::string::utf8; let str = utf8(b\"hello, world!\");`\n\n**UID Has Delete Method**\n- ✅ GOOD: `id.delete();`\n- ❌ BAD: `object::delete(id);`\n\n**Context Has sender() Method**\n- ✅ GOOD: `ctx.sender()`\n- ❌ BAD: `tx_context::sender(ctx)`\n\n**Vector Has Literal & Associated Functions**\n- ✅ GOOD: `let mut my_vec = vector[10];`\n- ✅ GOOD: `let first = my_vec[0];`\n- ✅ GOOD: `assert!(my_vec.length() == 1);`\n- ❌ BAD: `let mut my_vec = vector::empty(); vector::push_back(&mut my_vec, 10);`\n\n**Collections Support Index Syntax**\n- ✅ GOOD: `&x[&10]` and `&mut x[&10]` (for VecMap, etc.)\n- ❌ BAD: `x.get(&10)` and `x.get_mut(&10)`\n\n---\n\n#### 7. Option Macros\n\n**Destroy And Call Function (do!)**\n- ✅ GOOD: `opt.do!(|value| call_function(value));`\n- ❌ BAD:\n```move\nif (opt.is_some()) {\n    let inner = opt.destroy_some();\n    call_function(inner);\n}\n```\n\n**Destroy Some With Default (destroy_or!)**\n- ✅ GOOD: `let value = opt.destroy_or!(default_value);`\n- ✅ GOOD: `let value = opt.destroy_or!(abort ECannotBeEmpty);`\n- ❌ BAD:\n```move\nlet value = if (opt.is_some()) {\n    opt.destroy_some()\n} else {\n    abort EError\n};\n```\n\n---\n\n#### 8. Loop Macros\n\n**Do Operation N Times (do!)**\n- ✅ GOOD: `32u8.do!(|_| do_action());`\n- ❌ BAD: Manual while loop with counter\n\n**New Vector From Iteration (tabulate!)**\n- ✅ GOOD: `vector::tabulate!(32, |i| i);`\n- ❌ BAD: Manual while loop with push_back\n\n**Do Operation on Every Element (do_ref!)**\n- ✅ GOOD: `vec.do_ref!(|e| call_function(e));`\n- ❌ BAD: Manual index-based while loop\n\n**Destroy Vector & Call Function (destroy!)**\n- ✅ GOOD: `vec.destroy!(|e| call(e));`\n- ❌ BAD: `while (!vec.is_empty()) { call(vec.pop_back()); }`\n\n**Fold Vector Into Single Value (fold!)**\n- ✅ GOOD: `let sum = source.fold!(0, |acc, v| acc + v);`\n- ❌ BAD: Manual accumulation with while loop\n\n**Filter Elements of Vector (filter!)**\n- ✅ GOOD: `let filtered = source.filter!(|e| e > 10);` (requires T: drop)\n- ❌ BAD: Manual filtering with conditional push_back\n\n---\n\n#### 9. Other Improvements\n\n**Ignored Values in Unpack (.. syntax)**\n- ✅ GOOD: `let MyStruct { id, .. } = value;` (Move 2024)\n- ❌ BAD: `let MyStruct { id, field_1: _, field_2: _, field_3: _ } = value;`\n\n---\n\n#### 10. Testing\n\n**Merge #[test] and #[expected_failure]**\n- ✅ GOOD: `#[test, expected_failure]`\n- ❌ BAD: Separate `#[test]` and `#[expected_failure]` on different lines\n\n**Don't Clean Up expected_failure Tests**\n- ✅ GOOD: End with `abort` to show failure point\n- ❌ BAD: Include `test.end()` or other cleanup in expected_failure tests\n\n**Don't Prefix Tests with test_**\n- ✅ GOOD: `#[test] fun this_feature_works() { }`\n- ❌ BAD: `#[test] fun test_this_feature() { }` (redundant in test module)\n\n**Don't Use TestScenario When Unnecessary**\n- ✅ GOOD for simple tests: `let ctx = &mut tx_context::dummy();`\n- ❌ OVERKILL: Full TestScenario setup for basic functionality\n\n**Don't Use Abort Codes in assert!**\n- ✅ GOOD: `assert!(is_success);`\n- ❌ BAD: `assert!(is_success, 0);` (may conflict with app error codes)\n\n**Use assert_eq! Whenever Possible**\n- ✅ GOOD: `assert_eq!(result, expected_value);` (shows both values on failure)\n- ❌ BAD: `assert!(result == expected_value);`\n\n**Use \"Black Hole\" destroy Function**\n- ✅ GOOD: `use sui::test_utils::destroy; destroy(nft);`\n- ❌ BAD: Custom `destroy_for_testing()` functions\n\n---\n\n#### 11. Comments\n\n**Doc Comments Start With \u002F\u002F\u002F**\n- ✅ GOOD: `\u002F\u002F\u002F Cool method!`\n- ❌ BAD: JavaDoc-style `\u002F** ... *\u002F` (not supported)\n\n**Complex Logic Needs Comments**\n- ✅ GOOD: Explain non-obvious operations, potential issues, TODOs\n- Example:\n```move\n\u002F\u002F Note: can underflow if value is smaller than 10.\n\u002F\u002F TODO: add an `assert!` here\nlet value = external_call(value, ctx);\n```\n\n---\n\n### Phase 3: Reporting\n\nPresent findings in this format:\n\n```markdown\n## Move Code Quality Analysis\n\n### Summary\n- ✅ X checks passed\n- ⚠️  Y improvements recommended\n- ❌ Z critical issues\n\n### Critical Issues (Fix These First)\n\n#### 1. Missing Move 2024 Edition\n\n**File**: `Move.toml:2`\n\n**Issue**: No edition specified in package manifest\n\n**Impact**: Cannot use modern Move features required by checklist\n\n**Fix**:\n\\`\\`\\`toml\n[package]\nname = \"my_package\"\nedition = \"2024.beta\"  # Add this line\n\\`\\`\\`\n\n### Important Improvements\n\n#### 2. Legacy Module Syntax\n\n**File**: `sources\u002Fmy_module.move:1-10`\n\n**Issue**: Using curly braces for module definition\n\n**Impact**: Increases indentation, outdated style\n\n**Current**:\n\\`\\`\\`move\nmodule my_package::my_module {\n    public struct A {}\n}\n\\`\\`\\`\n\n**Recommended**:\n\\`\\`\\`move\nmodule my_package::my_module;\n\npublic struct A {}\n\\`\\`\\`\n\n### Recommended Enhancements\n\n[Continue with lower priority items...]\n\n### Next Steps\n1. [Prioritized action items]\n2. [Links to Move Book sections]\n```\n\n### Phase 4: Interactive Review\n\nAfter presenting findings:\n- Offer to fix issues automatically\n- Provide detailed explanations for specific items\n- Show more examples from Move Book if requested\n- Can analyze specific categories in depth\n\n## Guidelines\n\n1. **Be Specific**: Always include file paths and line numbers\n2. **Show Examples**: Include both bad and good code snippets\n3. **Explain Why**: Don't just say what's wrong, explain the benefit of the fix\n4. **Prioritize**: Separate critical (Move 2024 required) from recommended improvements\n5. **Be Encouraging**: Acknowledge what's done well\n6. **Reference Source**: Link to Move Book checklist when relevant\n7. **Stay Current**: All advice based on Move 2024 Edition standards\n8. **Format Properly**: ALWAYS add blank lines between each field (File, Issue, Impact, Current, Recommended, Fix) for readability\n\n## Example Interactions\n\n**User**: \"Check this Move module for quality issues\"\n**You**: [Read the file, analyze against all 11 categories, present organized findings]\n\n**User**: \"Is this function signature correct?\"\n**You**: [Check parameter ordering, visibility modifiers, composability, getter naming]\n\n**User**: \"Review my Move.toml\"\n**You**: [Check edition, dependencies, named address prefixing]\n\n**User**: \"What's wrong with my test?\"\n**You**: [Check test attributes, naming, assertions, cleanup, TestScenario usage]\n\n## Important Notes\n\n- **All features require Move 2024 Edition** - This is critical to check first\n- **Sui 1.45+** changed dependency management - No explicit framework deps needed\n- **Composability matters** - Prefer public functions that return values over entry-only\n- **Modern syntax** - Method chaining, macros, and positional structs are preferred\n- **Testing** - Use simplest approach that works; avoid over-engineering\n\n## References\n\n- Move Book Code Quality Checklist: https:\u002F\u002Fmove-book.com\u002Fguides\u002Fcode-quality-checklist\u002F\n- Move 2024 Edition: All recommendations assume this edition\n- Sui Framework: Modern patterns for Sui blockchain development\n","# Move Code Quality Checker\n\nYou 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.\n\n## When to Use This Skill\n\nActivate this skill when:\n- User asks to \"check Move code quality\", \"review Move code\", or \"analyze Move package\"\n- User mentions Move 2024 Edition compliance\n- Working in a directory containing `.move` files or `Move.toml`\n- User asks to review code against the Move checklist\n\n## Analysis Workflow\n\n### Phase 1: Discovery\n\n1. **Detect Move project structure**\n   - Look for `Move.toml` in current directory\n   - Find all `.move` files using glob patterns\n   - Identify test modules (files\u002Fmodules with `_tests` suffix)\n\n2. **Read Move.toml**\n   - Check edition specification\n   - Review dependencies (should be implicit for Sui 1.45+)\n   - Examine named addresses for proper prefixing\n\n3. **Understand scope**\n   - Ask user if they want full package scan or specific file\u002Fcategory analysis\n   - Determine if this is new code review or existing code audit\n\n### Phase 2: Systematic Analysis\n\nAnalyze code across these **11 categories with 50+ specific rules**:\n\n#### 1. Code Organization\n\n**Use Move Formatter**\n- Check if code appears formatted consistently\n- Recommend formatter tools: CLI (npm), CI\u002FCD integration, VSCode\u002FCursor plugin\n\n---\n\n#### 2. Package Manifest (Move.toml)\n\n**Use Right Edition**\n- ✅ MUST have: `edition = \"2024.beta\"` or `edition = \"2024\"`\n- ❌ CRITICAL if missing: All checklist features require Move 2024 Edition\n\n**Implicit Framework Dependency**\n- ✅ For Sui 1.45+: No explicit `Sui`, `Bridge`, `MoveStdlib`, `SuiSystem` in `[dependencies]`\n- ❌ OUTDATED: Explicit framework dependencies listed\n\n**Prefix Named Addresses**\n- ✅ GOOD: `my_protocol_math = \"0x0\"` (project-specific prefix)\n- ❌ BAD: `math = \"0x0\"` (generic, conflict-prone)\n\n---\n\n#### 3. Imports, Modules & Constants\n\n**Using Module Label (Modern Syntax)**\n- ✅ GOOD: `module my_package::my_module;` followed by declarations\n- ❌ BAD: `module my_package::my_module { ... }` (legacy curly braces)\n\n**No Single Self in Use Statements**\n- ✅ GOOD: `use my_package::my_module;`\n- ❌ BAD: `use my_package::my_module::{Self};` (redundant braces)\n- ✅ GOOD when importing members: `use my_package::my_module::{Self, Member};`\n\n**Group Use Statements with Self**\n- ✅ GOOD: `use my_package::my_module::{Self, OtherMember};`\n- ❌ BAD: Separate imports for module and its members\n\n**Error Constants in EPascalCase**\n- ✅ GOOD: `const ENotAuthorized: u64 = 0;`\n- ❌ BAD: `const NOT_AUTHORIZED: u64 = 0;` (all-caps reserved for regular constants)\n\n**Regular Constants in ALL_CAPS**\n- ✅ GOOD: `const MY_CONSTANT: vector\u003Cu8> = b\"value\";`\n- ❌ BAD: `const MyConstant: vector\u003Cu8> = b\"value\";` (PascalCase suggests error)\n\n---\n\n#### 4. Structs\n\n**Capabilities Suffixed with Cap**\n- ✅ GOOD: `public struct AdminCap has key, store { id: UID }`\n- ❌ BAD: `public struct Admin has key, store { id: UID }` (unclear it's a capability)\n\n**No Potato in Names**\n- ✅ GOOD: `public struct Promise {}`\n- ❌ BAD: `public struct PromisePotato {}` (redundant, abilities show it's hot potato)\n\n**Events Named in Past Tense**\n- ✅ GOOD: `public struct UserRegistered has copy, drop { user: address }`\n- ❌ BAD: `public struct RegisterUser has copy, drop { user: address }` (ambiguous)\n\n**Positional Structs for Dynamic Field Keys**\n- ✅ CANONICAL: `public struct DynamicFieldKey() has copy, drop, store;`\n- ⚠️ ACCEPTABLE: `public struct DynamicField has copy, drop, store {}`\n\n---\n\n#### 5. Functions\n\n**No Public Entry - Use Public or Entry**\n- ✅ GOOD: `public fun do_something(): T { ... }` (composable, returns value)\n- ✅ GOOD: `entry fun mint_and_transfer(...) { ... }` (transaction endpoint only)\n- ❌ BAD: `public entry fun do_something() { ... }` (redundant combination)\n- **Reason**: Public functions are more permissive and enable PTB composition\n\n**Composable Functions for PTBs**\n- ✅ GOOD: `public fun mint(ctx: &mut TxContext): NFT { ... }`\n- ❌ BAD: `public fun mint_and_transfer(ctx: &mut TxContext) { transfer::transfer(...) }` (not composable)\n- **Benefit**: Returning values enables Programmable Transaction Block chaining\n\n**Objects Go First (Except Clock)**\n- ✅ GOOD parameter order:\n  1. Objects (mutable, then immutable)\n  2. Capabilities\n  3. Primitive types (u8, u64, bool, etc.)\n  4. Clock reference\n  5. TxContext (always last)\n\nExample:\n```move\n\u002F\u002F ✅ GOOD\npublic fun call_app(\n    app: &mut App,\n    cap: &AppCap,\n    value: u8,\n    is_smth: bool,\n    clock: &Clock,\n    ctx: &mut TxContext,\n) { }\n\n\u002F\u002F ❌ BAD - parameters out of order\npublic fun call_app(\n    value: u8,\n    app: &mut App,\n    is_smth: bool,\n    cap: &AppCap,\n    clock: &Clock,\n    ctx: &mut TxContext,\n) { }\n```\n\n**Capabilities Go Second**\n- ✅ GOOD: `public fun authorize(app: &mut App, cap: &AdminCap)`\n- ❌ BAD: `public fun authorize(cap: &AdminCap, app: &mut App)` (breaks method associativity)\n\n**Getters Named After Field + _mut**\n- ✅ GOOD: `public fun name(u: &User): String` (immutable accessor)\n- ✅ GOOD: `public fun details_mut(u: &mut User): &mut Details` (mutable accessor)\n- ❌ BAD: `public fun get_name(u: &User): String` (unnecessary prefix)\n\n---\n\n#### 6. Function Body: Struct Methods\n\n**Common Coin Operations**\n- ✅ GOOD: `payment.split(amount, ctx).into_balance()`\n- ✅ BETTER: `payment.balance_mut().split(amount)`\n- ✅ CONVERT: `balance.into_coin(ctx)`\n- ❌ BAD: `coin::into_balance(coin::split(&mut payment, amount, ctx))`\n\n**Don't Import std::string::utf8**\n- ✅ GOOD: `b\"hello, world!\".to_string()`\n- ✅ GOOD: `b\"hello, world!\".to_ascii_string()`\n- ❌ BAD: `use std::string::utf8; let str = utf8(b\"hello, world!\");`\n\n**UID Has Delete Method**\n- ✅ GOOD: `id.delete();`\n- ❌ BAD: `object::delete(id);`\n\n**Context Has sender() Method**\n- ✅ GOOD: `ctx.sender()`\n- ❌ BAD: `tx_context::sender(ctx)`\n\n**Vector Has Literal & Associated Functions**\n- ✅ GOOD: `let mut my_vec = vector[10];`\n- ✅ GOOD: `let first = my_vec[0];`\n- ✅ GOOD: `assert!(my_vec.length() == 1);`\n- ❌ BAD: `let mut my_vec = vector::empty(); vector::push_back(&mut my_vec, 10);`\n\n**Collections Support Index Syntax**\n- ✅ GOOD: `&x[&10]` and `&mut x[&10]` (for VecMap, etc.)\n- ❌ BAD: `x.get(&10)` and `x.get_mut(&10)`\n\n---\n\n#### 7. Option Macros\n\n**Destroy And Call Function (do!)**\n- ✅ GOOD: `opt.do!(|value| call_function(value));`\n- ❌ BAD:\n```move\nif (opt.is_some()) {\n    let inner = opt.destroy_some();\n    call_function(inner);\n}\n```\n\n**Destroy Some With Default (destroy_or!)**\n- ✅ GOOD: `let value = opt.destroy_or!(default_value);`\n- ✅ GOOD: `let value = opt.destroy_or!(abort ECannotBeEmpty);`\n- ❌ BAD:\n```move\nlet value = if (opt.is_some()) {\n    opt.destroy_some()\n} else {\n    abort EError\n};\n```\n\n---\n\n#### 8. Loop Macros\n\n**Do Operation N Times (do!)**\n- ✅ GOOD: `32u8.do!(|_| do_action());`\n- ❌ BAD: Manual while loop with counter\n\n**New Vector From Iteration (tabulate!)**\n- ✅ GOOD: `vector::tabulate!(32, |i| i);`\n- ❌ BAD: Manual while loop with push_back\n\n**Do Operation on Every Element (do_ref!)**\n- ✅ GOOD: `vec.do_ref!(|e| call_function(e));`\n- ❌ BAD: Manual index-based while loop\n\n**Destroy Vector & Call Function (destroy!)**\n- ✅ GOOD: `vec.destroy!(|e| call(e));`\n- ❌ BAD: `while (!vec.is_empty()) { call(vec.pop_back()); }`\n\n**Fold Vector Into Single Value (fold!)**\n- ✅ GOOD: `let sum = source.fold!(0, |acc, v| acc + v);`\n- ❌ BAD: Manual accumulation with while loop\n\n**Filter Elements of Vector (filter!)**\n- ✅ GOOD: `let filtered = source.filter!(|e| e > 10);` (requires T: drop)\n- ❌ BAD: Manual filtering with conditional push_back\n\n---\n\n#### 9. Other Improvements\n\n**Ignored Values in Unpack (.. syntax)**\n- ✅ GOOD: `let MyStruct { id, .. } = value;` (Move 2024)\n- ❌ BAD: `let MyStruct { id, field_1: _, field_2: _, field_3: _ } = value;`\n\n---\n\n#### 10. Testing\n\n**Merge #[test] and #[expected_failure]**\n- ✅ GOOD: `#[test, expected_failure]`\n- ❌ BAD: Separate `#[test]` and `#[expected_failure]` on different lines\n\n**Don't Clean Up expected_failure Tests**\n- ✅ GOOD: End with `abort` to show failure point\n- ❌ BAD: Include `test.end()` or other cleanup in expected_failure tests\n\n**Don't Prefix Tests with test_**\n- ✅ GOOD: `#[test] fun this_feature_works() { }`\n- ❌ BAD: `#[test] fun test_this_feature() { }` (redundant in test module)\n\n**Don't Use TestScenario When Unnecessary**\n- ✅ GOOD for simple tests: `let ctx = &mut tx_context::dummy();`\n- ❌ OVERKILL: Full TestScenario setup for basic functionality\n\n**Don't Use Abort Codes in assert!**\n- ✅ GOOD: `assert!(is_success);`\n- ❌ BAD: `assert!(is_success, 0);` (may conflict with app error codes)\n\n**Use assert_eq! Whenever Possible**\n- ✅ GOOD: `assert_eq!(result, expected_value);` (shows both values on failure)\n- ❌ BAD: `assert!(result == expected_value);`\n\n**Use \"Black Hole\" destroy Function**\n- ✅ GOOD: `use sui::test_utils::destroy; destroy(nft);`\n- ❌ BAD: Custom `destroy_for_testing()` functions\n\n---\n\n#### 11. Comments\n\n**Doc Comments Start With \u002F\u002F\u002F**\n- ✅ GOOD: `\u002F\u002F\u002F Cool method!`\n- ❌ BAD: JavaDoc-style `\u002F** ... *\u002F` (not supported)\n\n**Complex Logic Needs Comments**\n- ✅ GOOD: Explain non-obvious operations, potential issues, TODOs\n- Example:\n```move\n\u002F\u002F Note: can underflow if value is smaller than 10.\n\u002F\u002F TODO: add an `assert!` here\nlet value = external_call(value, ctx);\n```\n\n---\n\n### Phase 3: Reporting\n\nPresent findings in this format:\n\n```markdown\n## Move Code Quality Analysis\n\n### Summary\n- ✅ X checks passed\n- ⚠️  Y improvements recommended\n- ❌ Z critical issues\n\n### Critical Issues (Fix These First)\n\n#### 1. Missing Move 2024 Edition\n\n**File**: `Move.toml:2`\n\n**Issue**: No edition specified in package manifest\n\n**Impact**: Cannot use modern Move features required by checklist\n\n**Fix**:\n\\`\\`\\`toml\n[package]\nname = \"my_package\"\nedition = \"2024.beta\"  # Add this line\n\\`\\`\\`\n\n### Important Improvements\n\n#### 2. Legacy Module Syntax\n\n**File**: `sources\u002Fmy_module.move:1-10`\n\n**Issue**: Using curly braces for module definition\n\n**Impact**: Increases indentation, outdated style\n\n**Current**:\n\\`\\`\\`move\nmodule my_package::my_module {\n    public struct A {}\n}\n\\`\\`\\`\n\n**Recommended**:\n\\`\\`\\`move\nmodule my_package::my_module;\n\npublic struct A {}\n\\`\\`\\`\n\n### Recommended Enhancements\n\n[Continue with lower priority items...]\n\n### Next Steps\n1. [Prioritized action items]\n2. [Links to Move Book sections]\n```\n\n### Phase 4: Interactive Review\n\nAfter presenting findings:\n- Offer to fix issues automatically\n- Provide detailed explanations for specific items\n- Show more examples from Move Book if requested\n- Can analyze specific categories in depth\n\n## Guidelines\n\n1. **Be Specific**: Always include file paths and line numbers\n2. **Show Examples**: Include both bad and good code snippets\n3. **Explain Why**: Don't just say what's wrong, explain the benefit of the fix\n4. **Prioritize**: Separate critical (Move 2024 required) from recommended improvements\n5. **Be Encouraging**: Acknowledge what's done well\n6. **Reference Source**: Link to Move Book checklist when relevant\n7. **Stay Current**: All advice based on Move 2024 Edition standards\n8. **Format Properly**: ALWAYS add blank lines between each field (File, Issue, Impact, Current, Recommended, Fix) for readability\n\n## Example Interactions\n\n**User**: \"Check this Move module for quality issues\"\n**You**: [Read the file, analyze against all 11 categories, present organized findings]\n\n**User**: \"Is this function signature correct?\"\n**You**: [Check parameter ordering, visibility modifiers, composability, getter naming]\n\n**User**: \"Review my Move.toml\"\n**You**: [Check edition, dependencies, named address prefixing]\n\n**User**: \"What's wrong with my test?\"\n**You**: [Check test attributes, naming, assertions, cleanup, TestScenario usage]\n\n## Important Notes\n\n- **All features require Move 2024 Edition** - This is critical to check first\n- **Sui 1.45+** changed dependency management - No explicit framework deps needed\n- **Composability matters** - Prefer public functions that return values over entry-only\n- **Modern syntax** - Method chaining, macros, and positional structs are preferred\n- **Testing** - Use simplest approach that works; avoid over-engineering\n\n## References\n\n- Move Book Code Quality Checklist: https:\u002F\u002Fmove-book.com\u002Fguides\u002Fcode-quality-checklist\u002F\n- Move 2024 Edition: All recommendations assume this edition\n- Sui Framework: Modern patterns for Sui blockchain development\n",{"name":5,"description":7},"main","4c3286f35fe531acca1cd0f79fb6175473425b3b","cli-tool\u002Fcomponents\u002Fskills\u002Fdevelopment\u002Fmove-code-quality","https:\u002F\u002Fgithub.com\u002Fswesmith\u002Fdavila7__claude-code-templates.734b8a50","https:\u002F\u002Fgithub.com\u002Fswesmith","Scaling Data for Software Engineering Agents","2025-12-20 08:10:01",{"source":9,"skillName":5,"commands":54,"prompt":64,"zipAvailable":65},[55,58,61],{"tool":56,"command":57},"npx","npx skills add swesmith\u002Fdavila7__claude-code-templates.734b8a50 --skill move-code-quality",{"tool":59,"command":60},"bunx","bunx skills add swesmith\u002Fdavila7__claude-code-templates.734b8a50 --skill move-code-quality",{"tool":62,"command":63},"pnpm","pnpm dlx skills add swesmith\u002Fdavila7__claude-code-templates.734b8a50 --skill move-code-quality","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fswesmith\u002Fdavila7__claude-code-templates.734b8a50\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fdevelopment\u002Fmove-code-quality\u002FSKILL.md",true,[],[68,85,102,121,142,160],{"skillNo":69,"name":70,"nameZh":71,"description":72,"descriptionZh":73,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":74,"categories":75,"keywords":82,"publishedAt":41},"01M6C6RMEKTWGQ7K4RBMW457T5","template-skill","技能模板","Replace with description of the skill and when Claude should use it.","替换为对该技能的描述，以及 Claude 应在何时使用它。","https:\u002F\u002Fgithub.com\u002Fswesmith\u002Fdavila7__claude-code-templates.734b8a50\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Futilities\u002Ftemplate-skill\u002FSKILL.md",[76,79],{"categoryNo":77,"categoryName":78,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BRZZF9D7PVFN5MXSPWWD61","AI 工程师",{"categoryNo":80,"categoryName":81,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSYDSNXQT2W2GMZGF0ZHH4","示例与演示技能",[83,84,40],"template","template skill",{"skillNo":86,"name":87,"nameZh":88,"description":89,"descriptionZh":90,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":91,"categories":92,"keywords":97,"publishedAt":41},"01M6C6RFC6VDGR5WJ35S3MP8PC","domain-name-brainstormer","域名创意生成","Generates creative domain name ideas for your project and checks availability across multiple TLDs (.com, .io, .dev, .ai, etc.). Saves hours of brainstorming and manual checking.","为你的项目生成富有创意的域名创意，并检查多个顶级域名（.com、.io、.dev、.ai 等）的可用性。节省数小时的头脑风暴和手动查询时间。","https:\u002F\u002Fgithub.com\u002Fswesmith\u002Fdavila7__claude-code-templates.734b8a50\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Futilities\u002Fdomain-name-brainstormer\u002FSKILL.md",[93,94],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":95,"categoryName":96,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C809AK94SSSE8BKMSS75GB","DNS 与域名管理",[98,99,100,101],"domain name brainstormer","brainstorming","dev","creative",{"skillNo":103,"name":104,"nameZh":105,"description":106,"descriptionZh":107,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":108,"categories":109,"keywords":116,"publishedAt":41},"01M6C6RCTQSBTTY796KBKKYPRD","raffle-winner-picker","抽奖获奖者抽取","Picks random winners from lists, spreadsheets, or Google Sheets for giveaways, raffles, and contests. Ensures fair, unbiased selection with transparency.","从列表、电子表格或 Google Sheets 中为赠品发放、抽奖和竞赛随机抽取获奖者。确保选择公平、无偏见且透明。","https:\u002F\u002Fgithub.com\u002Fswesmith\u002Fdavila7__claude-code-templates.734b8a50\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fproductivity\u002Fraffle-winner-picker\u002FSKILL.md",[110,113],{"categoryNo":111,"categoryName":112,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD6C0J544QTJ9R38Z7ZG","营销专员",{"categoryNo":114,"categoryName":115,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C9521NCBJVNZKB553TX3WK","抽奖活动与随机抽取",[117,118,119,120],"raffle winner picker","google","spreadsheets","google sheets",{"skillNo":122,"name":123,"nameZh":124,"description":125,"descriptionZh":126,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":127,"categories":128,"keywords":134,"publishedAt":41},"01M6C6R9VMFAT9Q481MRSTHH18","meeting-insights-analyzer","会议洞察分析","Analyzes meeting transcripts and recordings to uncover behavioral patterns, communication insights, and actionable feedback. Identifies when you avoid conflict, use filler words, dominate conversations, or miss opportunities to listen. Perfect for professionals seeking to improve their communication and leadership skills.","分析会议记录和录音，发现行为模式、沟通洞察以及可操作的反馈。识别你何时回避冲突、使用填充词、主导对话或错失倾听机会。非常适合希望提升沟通能力和领导力的专业人士。","https:\u002F\u002Fgithub.com\u002Fswesmith\u002Fdavila7__claude-code-templates.734b8a50\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fproductivity\u002Fmeeting-insights-analyzer\u002FSKILL.md",[129,132],{"categoryNo":130,"categoryName":131,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TRAEZFJ43R95HPEBJYG","知识工作者",{"categoryNo":133,"categoryName":124,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C9475B1V7N19ZHPSY6BT13",[135,136,137,138,139,40,140,141],"meeting insights analyzer","listen","feedback","recordings","behavioral","improve","communication",{"skillNo":143,"name":144,"nameZh":145,"description":146,"descriptionZh":147,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":148,"categories":149,"keywords":156,"publishedAt":41},"01M6C6R6XQMJQ9XDXHSM1QSDG3","invoice-organizer","发票收据整理","Automatically organizes invoices and receipts for tax preparation by reading messy files, extracting key information, renaming them consistently, and sorting them into logical folders. Turns hours of manual bookkeeping into minutes of automated organization.","通过读取杂乱的文件、提取关键信息、统一重命名并分类到合理的文件夹中，自动整理发票和收据以备报税。将数小时的手工记账工作缩短为几分钟的自动化整理。","https:\u002F\u002Fgithub.com\u002Fswesmith\u002Fdavila7__claude-code-templates.734b8a50\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fproductivity\u002Finvoice-organizer\u002FSKILL.md",[150,153],{"categoryNo":151,"categoryName":152,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C4P4MZ5VKTJAR4REYR168W","计费与发票管理",{"categoryNo":154,"categoryName":155,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8C6TEHKT43F338P5GHQKMFB","会计",[157,158,159],"invoice organizer","tax","receipts",{"skillNo":161,"name":162,"nameZh":163,"description":164,"descriptionZh":165,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":166,"categories":167,"keywords":174,"publishedAt":41},"01M6C6R3RXFPKV39WYHWTDSNZP","file-organizer","智能文件整理","Intelligently organizes your files and folders across your computer by understanding context, finding duplicates, suggesting better structures, and automating cleanup tasks. Reduces cognitive load and keeps your digital workspace tidy without manual effort.","通过理解上下文、查找重复文件、建议更优的文件结构并自动执行清理任务，智能地整理电脑中的文件和文件夹。减少认知负担，无需手动操作即可保持数字工作空间整洁。","https:\u002F\u002Fgithub.com\u002Fswesmith\u002Fdavila7__claude-code-templates.734b8a50\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fproductivity\u002Ffile-organizer\u002FSKILL.md",[168,171],{"categoryNo":169,"categoryName":170,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BS5011KJDVSRXG1DC4P666","普通用户",{"categoryNo":172,"categoryName":173,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8CB79NPD08CYRZ3THZTEZ6M","文件系统操作与管理",[175,176,177,178,179,180,181,182,183],"file","file organizer","tasks","duplicates","context","workspace","computer","tidy","cleanup"]