How this command is triggered — by the user, by Claude, or both
Slash command
/move:debugThe summary Claude sees in its command listing — used to decide when to auto-load this command
# Debug Move Code Parse compiler errors from stderr and suggest fixes. **Usage:** `/move:debug` ## Instructions 1. Check for recent compiler output: - Look for error messages in the terminal/output - Parse the error location (file:line:column) - Identify the error type 2. Common error patterns and fixes: **Ability Errors:** - "does not have the 'key' ability" → Add `has key` to struct - "does not have the 'store' ability" → Add `has store` to struct - "cannot copy" → Add `has copy` or use `&` reference **Borrow Errors:** - "cannot borrow" → Check mutability...
Parse compiler errors from stderr and suggest fixes.
Usage: /move:debug
Check for recent compiler output:
Common error patterns and fixes:
Ability Errors:
has key to structhas store to structhas copy or use & referenceBorrow Errors:
borrow_global_mutType Errors:
Move Errors:
move_from or copy the valueexists<T>(addr) firstAccess Errors:
public or public(friend)Read the relevant source file at the error location
Use search_framework if the error involves framework types
Provide:
To get fresh errors, suggest running:
movement move compile 2>&1
npx claudepluginhub joshuarweaver/cascade-code-languages-misc-2 --plugin moveindustries-move-skills/debug-contractSystematic debugging for Compact smart contracts — analyzes errors, investigates root causes, and guides fixes
/build-fixAutomatically fixes build errors (compilation, type, unresolved dependencies) by analyzing output, applying targeted fixes, and retrying up to 3 times.
/rust-buildFixes Rust build errors, borrow checker issues, and dependency problems incrementally. Runs cargo check, clippy, fmt diagnostics and applies minimal verified fixes.
/rust-buildFixes Rust build errors, borrow checker issues, and dependency problems incrementally with minimal changes, verifying each fix via cargo check, clippy, and fmt.
/explain-errorAnalyzes an error message or exception and produces a structured root cause analysis with fix guidance, including error type, context clues, common triggers, and prevention tips.
/build-fixFixes TypeScript and build errors by iteratively running the build, parsing output, explaining and applying one fix at a time, and re-running to verify. Shows a summary of fixed, remaining, and new errors.