Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/aptos-labs/aptos-ai --skill move-check명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SOC 직업 분류 기준
SKILL.md 표시 중
| name | move-check |
| description | Check a Move package for compilation errors |
Move on Aptos is a safe, resource-oriented programming language for smart contracts on the Aptos blockchain. It uses a linear type system to enforce ownership and prevent double-spending at compile time.
key, store, copy, drop) control what
operations are permitted.entry fun) are transaction entry points callable from outside Move.#[view]) are read-only queries that do not modify state.key) at addresses.&T[addr] (not borrow_global<T>(addr))&mut T[addr] (not borrow_global_mut<T>(addr))T[addr].field directly (the compiler inserts the ref op)acquires annotations are no longer needed — do not add them.const E_NOT_FOUND: u64 = 1;) and
document them.// for regular comments. /// is a doc comment and is only valid
directly before a module, struct, enum, fun, or const declaration..move files after edits. If it reports
compilation errors, fix them before proceeding with further changes.A Move package is a directory with a Move.toml manifest and source files. The manifest defines the package name, dependencies, and named addresses.
Modules are published at named addresses (e.g., @my_package). These must resolve to hex values for compilation.
[addresses] — production addresses (may use _ placeholder for deploy-time assignment)[dev-addresses] — development/test values (used when compiling in dev or test mode)Fixing "Unresolved addresses" errors: For each Named address 'X' in package 'Y', add X = "0x..." to [dev-addresses] in that package's Move.toml. Use 0x100 and up, avoiding reserved addresses (0x0=vm_reserved, 0x1=std/aptos_std/aptos_framework, 0x3=aptos_token, 0x4=aptos_token_objects, 0x5=aptos_trading, 0x7=aptos_experimental, 0xA=aptos_fungible_asset, 0xA550C18=core_resources):
[dev-addresses]
my_package = "0x100"
other_addr = "0x101"
Use the move_package_status MCP tool to check for compilation errors and warnings.
move_package_status with package_path set to the package directory.Notice that like with a build system, the tool is idempotent, and does not cause recompilation if the compilation result and sources are up-to-date.
Use the move_package_manifest MCP tool to discover source files and dependencies
of a Move package:
move_package_manifest with package_path set to the package directory.source_paths (target modules) and dep_paths (dependencies).Use the move_package_query MCP tool to inspect the structure of a Move package.
Parameters:
package_path (required) — path to the Move package directory.query (required) — one of the query types below.function (required for function_usage) — function name in the form module_name::function_name.dep_graph — returns a map from each module to the modules it depends on.
Useful for understanding module layering and import structure.module_summary — returns a summary of each module's constants, structs,
and functions. Useful for getting an overview without reading all source files.call_graph — returns a function-level call graph as a map from each
function to the functions it calls.function_usage — returns direct and transitive calls/uses for a given
function. "called" = direct calls; "used" = direct calls + closure captures.
Requires the function parameter.When fixing compilation errors, follow this iterative loop:
move_package_status with the package path.Run the Edit–Compile Cycle on the current Move package.