Token导航 LogoToken导航

Agent Skill · 研究检索

modernize-move(现代化举措)

modernize-move 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

modernize-move 是研究检索类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为需要联网;许可证为 MIT-0,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 18,463。

总安装 6,071周安装 248GitHub Stars 公开资料未说明下载 1,964核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT-0
版本
1.0.0

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:modernize-move(现代化举措)
来源仓库:https://github.com/iskysun96/modernize-move
安装命令:
openclaw skills install modernize-move
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install modernize-move

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

用于检测和更新过时的 Move V1 语法和 API 到现代版本。适合升级遗留智能合约或迁移到新语法的区块链开发场景。通过 clawhub 安装,需确认合约路径和转换规则。建议结合原始 README 核验兼容性和回滚机制。使用前请评估是否会触发文件修改,避免数据丢失。

modernize-move 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 OpenClaw;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install modernize-move;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

modernize-move 怎么安装?

在终端执行 openclaw skills install modernize-move。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

modernize-move 支持哪些 AI 工具?

公开资料标注支持 OpenClaw。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

modernize-move 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

modernize-move 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

modernize-move 用的人多吗?

公开数据是累计安装 6,071 次,近一周安装 248 次,下载 1,964 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

modernize-move 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。

先想清楚的地方

  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
modernize-move

现代化举措 · 本页

6,071—需要联网MIT-0有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
modernize-move
description
>-
license
MIT
metadata
author
aptos-labs
version
1.0
category
move
tags
["modernization", "migration", "v2", "refactoring", "syntax"]
priority
high
allowed-tools
Read Glob Grep Write Edit Bash AskUserQuestion

Skill: modernize-move

Detect and modernize outdated Move V1 syntax, patterns, and APIs to Move V2+. Preserves correctness through tiered transformations with test verification after each tier.

Essential Principles

Five non-negotiable rules for every modernization:

  1. Test safety net is mandatory WHY: Modernization must preserve behavior. No tests = no safety net. If no tests

exist, invoke generate-tests skill first to create comprehensive tests before making any changes.

  1. Analyze before modifying WHY: The user must see exactly what will change and confirm the scope. Never

surprise-edit code. Present the full analysis report and wait for confirmation.

  1. Tiered execution order WHY: Syntax changes (Tier 1) are zero-risk. API migrations (Tier 3) change semantics.

Always apply safest changes first so riskier changes build on a clean, verified foundation.

  1. Verify after each tier WHY: If tests break, you know exactly which tier caused it. Revert that tier and

investigate before proceeding. Never apply the next tier on a broken baseline.

  1. Preserve error code values WHY: Tests use #[expected_failure(abort_code = N)]. Changing numeric values breaks

tests silently. When creating named constants, the numeric value MUST match the original literal.

When to Use This Skill

  • Upgrading Move V1 contracts to V2 syntax
  • Migrating public(friend) to package fun
  • Converting vector::borrow to index notation
  • Converting while loops with counters to for range loops
  • Replacing manual vector iteration with stdlib inline functions (vector::for_each_ref, vector::map, vector::fold,

etc.) and lambdas

  • Replacing magic abort numbers with named constants
  • Migrating legacy coin/TokenV1 to modern fungible_asset/Digital Assets
  • Converting EventHandle to #[event] pattern
  • Upgrading custom signed integer workarounds to native i8-i256 types

When NOT to Use This Skill

  • Writing new contracts from scratch — use write-contracts
  • Fixing bugs or adding features — modernization is structural, not functional
  • Optimizing gas usage — use analyze-gas-optimization
  • Auditing security — use security-audit (run AFTER modernization)

Workflow

Phase 1: Analyze Contract

Entry: User provides a Move contract or project to modernize.

Actions:

  1. Read all contract source files (.move files in sources/)
  2. Scan for V1 patterns using detection rules from detection-rules.md:

- Grep for Tier 1 patterns (syntax) — highest confidence, most common - Grep for Tier 2 patterns (visibility, errors, events) - Grep for Tier 3 patterns (API migrations) — flag for manual review

  1. Cross-reference coupled patterns (T3-09+T3-10)
  2. Categorize each finding: line number, rule ID, pattern name, proposed change, tier, confidence
  3. Build the Analysis Report

Exit: Analysis Report ready for presentation.

Phase 2: Present Analysis (GATE 1)

Entry: Analysis Report complete.

Actions:

  1. Present the full Analysis Report to the user in this format:
## Modernization Analysis Report

### Summary
- Tier 1 (Syntax): X findings
- Tier 2 (Visibility & Errors): X findings
- Tier 3 (API Migrations): X findings

### Findings

| # | File:Line | Rule | Pattern | Proposed Change | Tier | Confidence |
|---|-----------|------|---------|-----------------|------|------------|
| 1 | src/mod.move:15 | T1-01 | vector::borrow | → index notation | 1 | High |
| ... | ... | ... | ... | ... | ... | ... |

### Tier 3 Warnings (if any)
- T3-03: coin → fungible_asset migration is a major rewrite (X locations)
  1. Ask the user to choose scope:

- syntax-only (Tier 1 only) — zero risk, just cleaner syntax - standard (Tier 1 + Tier 2) — recommended default, syntax + visibility + error constants - full (all tiers) — includes API migrations, higher risk

  1. Highlight any Tier 3 items that require major rewrites
  2. If scope includes Tier 3, ask the user about deployment context:

- Compatible — Upgrading an already-deployed contract. Breaking changes are excluded even if the scope includes them. Rules marked ⚠ Breaking are skipped. - Fresh deploy — New deployment or willing to redeploy. All changes in the selected scope are applied including breaking changes.

Exit: User has confirmed scope (and deployment context if Tier 3 is included). Do NOT proceed until confirmed.

Phase 3: Establish Test Safety Net

Entry: User confirmed scope.

Actions:

  1. Search for existing tests:

- #[test_only] modules within source files - *_tests.move files - tests/ directory

  1. If no tests found: stop and invoke generate-tests skill to create comprehensive tests first, then return here
  2. Run aptos move test to establish a passing baseline
  3. Record baseline: number of tests, all passing status

Exit: All tests pass. Baseline recorded. If tests fail pre-modernization, stop and address test failures first — do not modernize on a broken test suite.

Phase 4: Apply Transformations (with Feedback Loops)

Entry: Test baseline established.

Actions — apply in tier order:

Tier 1 (if scope includes it — always):

  1. Apply all Tier 1 syntax changes per transformation-guide.md
  2. Run aptos move test
  3. If tests fail → revert all Tier 1 changes, investigate which specific change caused failure, fix and retry

Tier 2 (if scope is standard or full): 4. Apply all Tier 2 changes per transformation guide 5. Run aptos move test 6. If tests fail → revert all Tier 2 changes, investigate and fix

Tier 3 (if scope is full only): 7. Apply Tier 3 changes ONE AT A TIME (not all at once)

  • If deployment context is compatible: skip any rule marked ⚠ Breaking. Add to the skipped list with reason

"breaking change, excluded in compatible mode."

  • If deployment context is fresh deploy: apply all rules in scope normally.
  1. Run aptos move test after EACH individual Tier 3 change
  2. If tests fail → revert that specific change, note it as skipped, proceed to next Tier 3 item

Exit: All approved changes applied, all tests passing.

Phase 5: Final Verification

Entry: All transformations applied.

Actions:

  1. Run aptos move test --coverage
  2. Verify test coverage is >= baseline (should be same or better)
  3. Generate Modernization Summary Report:
## Modernization Summary

### Changes Applied
- Tier 1: X changes (syntax)
- Tier 2: X changes (visibility & errors)
- Tier 3: X changes (API migrations)

### Changes Skipped
- [List any skipped items with reasons]

### Test Results
- Tests: X passing (baseline: Y)
- Coverage: X% (baseline: Y%)

### Files Modified
- [List of modified files]

Exit: Report presented to user.

Modernization Scope Quick Reference

ScopeTiersRiskWhen to Use
syntax-onlyTier 1ZeroJust clean up syntax, no semantic changes
standardTier 1+2LowDefault. Syntax + visibility + error constants
fullTier 1+2+3Medium-HighFull migration including API changes

Tier Quick Reference

TierWhat ChangesRiskExamples
1 — SyntaxCode reads differently, compiles identicallyZerovector::borrow(&v, i) → v[i], x = x + 1 → x += 1, while (i < n) { ... i += 1 } → for (i in 0..n) { ... }
2 — Visibility & ErrorsSame semantics, cleaner declarationsLowpublic(friend) → package fun, magic numbers → E_* constants
3 — API MigrationsDifferent APIs, same intended behavior. Most are breaking changes.Medium-Highcoin → fungible_asset, SmartTable → BigOrderedMap, EventHandle → #[event], manual loops → stdlib v.for_each_ref()/v.map()/v.fold() with lambdas

See detection-rules.md for the complete rule catalog (22 rules across 3 tiers).

Rationalizations to Reject

RationalizationWhy It's Wrong
"Tests pass so the modernization is correct"Tests verify behavior, not code quality. Review changes manually too.
"This contract is simple, skip the analysis"Simple contracts can have subtle patterns. Always analyze first.
"Let's do all tiers at once to save time"If tests break, you can't isolate which change caused it. Always tier.
"The receiver-style call looks right"Must verify the target function declares self. False positives are common.
"Error constants can have new names and values"Existing tests depend on exact numeric values. Preserve them.
"No tests exist, but the changes are safe"Without tests there is no safety net. Generate tests first.
"Tier 3 changes are optional, skip the test run"Every change needs verification. Tier 3 is highest risk — test MORE, not less.

Success Criteria

  • [ ] Analysis Report presented before any modifications
  • [ ] User confirmed modernization scope
  • [ ] Test baseline established before changes
  • [ ] Tests pass after each tier of changes
  • [ ] All error code numeric values preserved
  • [ ] No Tier 3 changes applied without full scope confirmation
  • [ ] Breaking changes excluded when user selected compatible mode
  • [ ] Modernization Summary Report generated
  • [ ] Test coverage maintained at or above baseline

Reference Index

FileContent
detection-rules.mdComplete V1 pattern detection catalog (22 rules across 3 tiers)
transformation-guide.mdBefore/after code, safety checks, edge cases per rule
MOVE_V2_SYNTAX.mdFull V2 syntax reference
OBJECTS.mdModern object model patterns
ADVANCED_TYPES.mdEnums, signed integers, phantom types

Related skills: generate-tests, write-contracts, security-audit

平台分布

OpenClaw

88.79%
按下载量换算1,744

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills