← 返回 Skills 市场
204
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install modernize-move
功能描述
Detects and modernizes outdated Move V1 syntax, patterns, and APIs to Move V2+. Use when upgrading legacy contracts, migrating to modern syntax, or convertin...
安全使用建议
This skill appears to be a genuine Move modernization guide, but there are practical mismatches you should address before running it:
- Missing runtime dependency: SKILL.md assumes the aptos/Move CLI (`aptos move test`) is available, but the skill metadata does not declare that binary. Ensure the aptos CLI (or equivalent move test runner) is installed and at the expected PATH before invoking the skill.
- Undeclared skill dependency: The workflow will call a `generate-tests` skill if no tests exist; confirm that your agent has that skill available or provide tests yourself. The skill does not declare or bundle that dependency.
- Powerful permissions: The skill requests Bash and file Write/Edit capabilities and will modify source files. Although it promises an analysis report and explicit user confirmation gates, you should:
- Run it in a sandbox or feature branch, not directly on production code.
- Back up the repository (or ensure version control) before applying changes.
- Start with `syntax-only` (Tier 1) scope to see automated edits and test impact before permitting Tier 2/3.
- Manually verify that `aptos move test` passes locally and inspect diffs after each tier.
- Verify no unexpected config access: the skill may read project config files (Move.toml, test manifests). If you have secrets or CI credentials in the repo, review what the aptos CLI will access.
If you cannot confirm the aptos CLI or the generate-tests skill availability, treat the omission as a blocker and request an updated skill manifest that lists those runtime dependencies explicitly.
功能分析
Type: OpenClaw Skill
Name: modernize-move
Version: 1.0.0
The modernize-move skill is a legitimate utility designed to automate the refactoring of Move V1 smart contracts to Move V2+ syntax. It incorporates robust safety protocols, including mandatory test verification using 'aptos move test' (SKILL.md), a tiered transformation workflow to minimize risk, and explicit user confirmation gates (Gate 1) before any code modifications occur. The instructions in SKILL.md and the transformation logic in the reference files are strictly aligned with the stated purpose of structural modernization without introducing functional changes or malicious behavior.
能力评估
Purpose & Capability
The skill's name/description (modernize Move V1→V2) aligns with the actions described (scan .move files, transform syntax/API, run tests). However, the SKILL.md explicitly requires running `aptos move test` and (when tests are missing) invoking a separate `generate-tests` skill. The package metadata declares no required binaries and no dependencies. Not declaring the aptos CLI and the dependency on another skill is an incoherence: a legitimate modernization workflow would need the Move/Aptos toolchain and any test-generation capability to be available or declared.
Instruction Scope
Instructions ask the agent to read all project source files, run shell commands (e.g., `aptos move test`), modify code (Write/Edit), and run iterative transforms with reversion on test failure. That scope is appropriate for modernization, but the skill also instructs invoking another skill (`generate-tests`) when tests are absent without declaring that dependency or describing how that skill is resolved. The workflow gives the agent permission to run Bash and edit files; the SKILL.md enforces user gates (present analysis and ask for scope), which mitigates surprise edits, but the implicit ability to run arbitrary shell commands is powerful—ensure the agent's runtime environment and available binaries are as expected.
Install Mechanism
Instruction-only skill with no install spec and no code files. This is lower risk — nothing will be downloaded or installed automatically. The agent-only documentation and references are local files provided in the skill bundle.
Credentials
The skill declares no required environment variables, credentials, or config paths. The operations described (reading source files, running local tests, editing files) do not require secrets. That is proportionate. Just be aware that running `aptos move test` may read local config files (e.g., Move.toml or CLI configs) from the project directory; the skill does not declare or request access to unrelated credentials.
Persistence & Privilege
always is false and the skill is user-invocable; it does not request permanent inclusion or elevated platform privileges. The SKILL.md requires user confirmation before making edits, which appropriately limits autonomous destructive changes.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install modernize-move - 安装完成后,直接呼叫该 Skill 的名称或使用
/modernize-move触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: Automatically detects and modernizes outdated Move V1 code to Move V2+ using a structured, safe workflow.
- Scans and reports legacy Move V1 syntax, patterns, and APIs with tiered risk and change analysis.
- Guides user through scope selection: syntax-only, standard (syntax + error/visibility), or full API migration.
- Enforces test-first transformations: halts if no tests exist, verifies with tests after each tier, and only proceeds on clean baseline.
- Applies safest changes first (syntax), then incrementally handles more complex migrations, with explicit user confirmation and rollback if tests fail.
- Generates detailed analysis and summary reports for transparency and auditability.
元数据
常见问题
Modernize Move 是什么?
Detects and modernizes outdated Move V1 syntax, patterns, and APIs to Move V2+. Use when upgrading legacy contracts, migrating to modern syntax, or convertin... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 204 次。
如何安装 Modernize Move?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install modernize-move」即可一键安装,无需额外配置。
Modernize Move 是免费的吗?
是的,Modernize Move 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Modernize Move 支持哪些平台?
Modernize Move 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Modernize Move?
由 iskysun96(@iskysun96)开发并维护,当前版本 v1.0.0。
推荐 Skills