modernize-move

Official

Upgrade Move V1 to V2+ syntax and APIs.

Authoraptos-labs
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill automatically detects and modernizes outdated Move V1 syntax, patterns, and APIs to the latest Move V2+ standards, ensuring your smart contracts are up-to-date and follow best practices.

Core Features & Use Cases

  • Syntax Modernization: Converts legacy syntax like vector::borrow to index notation (v[i]) and while loops with counters to for range loops.
  • API Migration: Guides migration from older APIs like coin to fungible_asset and EventHandle to #[event] patterns.
  • Use Case: You have a legacy Move V1 NFT contract that uses public(friend) visibility and magic numbers for abort codes. This Skill will refactor it to use friend fun and named error constants, making it cleaner and more maintainable.

Quick Start

Use the modernize-move skill to refactor the attached contract 'legacy_nft.move' to use Move V2 syntax and best practices.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: modernize-move
Download link: https://github.com/aptos-labs/aptos-agent-skills/archive/main.zip#modernize-move

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.