write-contracts

Generate secure Aptos Move V2 smart contracts with object model patterns.

19|8|Updated Jan 23, 2026
One-click install
npx skills add https://github.com/aptos-labs/aptos-agent-skills --skill write-contracts
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: write-contracts
Source: https://github.com/aptos-labs/aptos-agent-skills/tree/main/skills/move/write-contracts
Command: npx skills add https://github.com/aptos-labs/aptos-agent-skills --skill write-contracts

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers write secure, efficient, and modern Aptos Move V2 smart contracts, adhering to best practices for object models, digital assets, and security.

Core Features & Use Cases

  • Secure Contract Generation: Creates Move V2 contracts with built-in security patterns and object model best practices.
  • Digital Asset Integration: Guides the use of the Digital Asset standard for NFTs.
  • Storage Guidance: Provides recommendations on optimal storage types based on access patterns and data size.
  • Use Case: When you need to create a new NFT collection contract, this skill will guide you through the process, ensuring you use the correct object patterns, security checks, and digital asset standards.

Quick Start

Use the write-contracts skill to generate a new Move V2 smart contract for an NFT marketplace.

Frequently Asked Questions about write-contracts

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write secure Aptos Move V2 smart contracts?

You create an NFT collection on Aptos by generating a Move V2 contract that incorporates the Digital Asset standard, utilizing specific object patterns and built-in security checks to ensure correct minting and ownership.

What is the best way to manage storage types for gas efficiency in Move?

Managing storage types for gas efficiency in Move requires selecting optimal storage structures based on your specific access patterns and data size, ensuring resources are stored and referenced efficiently on-chain.

Can I use this approach to build DeFi primitives and fungible assets?

Yes, you can build DeFi primitives and fungible assets using Move V2 contracts by applying the object model patterns and digital asset standards designed for secure and efficient on-chain financial logic.

Does Aptos Move V2 support built-in security patterns for smart contracts?

Aptos Move V2 supports built-in security patterns by allowing developers to generate contracts that incorporate robust security checks and object model best practices directly into the smart contract architecture.