aptos-framework

Provide Move examples and usage patterns for Aptos Framework core modules.

Updated Nov 25, 2025
One-click install
npx skills add https://github.com/gounthar/bazel-riscv --skill aptos-framework
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: aptos-framework
Source: https://github.com/gounthar/bazel-riscv/tree/main/.claude/skills/aptos/framework
Command: npx skills add https://github.com/gounthar/bazel-riscv --skill aptos-framework

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Delivers deep guidance on Aptos Framework core modules (account, coin, stdlib, etc.) essential for building reliable Move-based apps.

Core Features & Use Cases

  • Core Modules: account, coin, stdlib, table, event, and more.
  • Resource Safety: understanding abilities and resource semantics.
  • Patterns & Best Practices: signer, references, and visibility.
  • Use Case: Architect reliable on-chain data models with proper ownership.

Quick Start

Ask: "Show an example of a Move module using the account and Coin modules."

Frequently Asked Questions about aptos-framework

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

FAQPage Schema
How do I use the Aptos Framework account module to manage on-chain accounts?

The account module provides signer-based account management and resource ownership patterns. Use it to control account initialization, permission validation, and secure resource storage through Move's ability system and signer references.

What's the best way to implement data storage with Tables in Aptos Move code?

Tables enable key-value storage for on-chain data. Design your data model with proper ownership semantics, use Table operations for insertion and retrieval, and leverage SmartTable for optimized aggregation queries on stored resources.

How do I integrate the Coin module with custom Move modules on Aptos?

The Coin module standardizes token creation and transfers. Import it into your module, define coin types with proper abilities, and use Coin::withdraw and Coin::deposit to manage value transfers while maintaining resource safety.

Can I emit events and access time from Aptos standard library modules?

Yes. The event module enables emitting structured events for indexing, and the time module provides timestamp access. Both integrate directly into Move modules via 0x1 standard library imports for event-driven architecture.

What are resource accounts and how do I use them in Aptos?

Resource accounts are autonomous accounts derived from a creator address, used for module ownership and autonomous operations. They enable decoupled contract logic and persistent storage without direct user signing.

How do I structure Move code to follow Aptos Framework best practices?

Apply signer-based authorization, enforce resource abilities (copy, drop, store), use visibility modifiers correctly, and model data ownership through the account and resource modules to build reliable on-chain systems.