Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsBlogPro
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges
  • Chrome Extension
  • Skill Manager

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Move Pro

ASecurity

Write Move modules for Aptos and Sui: resources, abilities, object model, entry functions, unit testing, and package publishing. Use when building on Move-based chains.

2 stars
0 votes
0 copies
0 views
Added 9/29/2026
ai-agentsgobashtestinggit

Works with

cli

Security Analysis

A100/100

Scanned 9/29/2026

$npx -y skills add aicodedecode/awesome-muse-skills --skill move-pro --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Move Pro?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Move Pro
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/aicodedecode-move-pro/badge)](https://www.skillsdirectory.com/skills/aicodedecode-move-pro)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
Files
SKILL.md
---
name: move-pro
description: Write Move modules for Aptos and Sui: resources, abilities, object model, entry functions, unit testing, and package publishing. Use when building on Move-based chains.
category: development
---

# Move Pro

A practical guide to the Move language as used on Aptos and Sui: resource-oriented programming, the abilities system, Sui's object model, testing, and publishing packages safely.

## Overview

Move treats digital assets as **resources** — values governed by linear types that cannot be implicitly copied or dropped. A coin or NFT is a struct with carefully chosen *abilities*; the type system itself prevents duplication and accidental destruction of assets. This eliminates entire bug classes (double-spend by copy, lost funds by drop) at compile time — but it means you must be explicit about every asset's lifecycle: where it is created, stored, transferred, and destroyed.

Aptos and Sui share the language core but differ in storage: Aptos uses accounts with resources stored under addresses; Sui uses an object-centric model where objects have owners.

## When to use

- Writing Move modules/packages on Aptos (account-based resources).
- Writing Move packages on Sui (object model, `sui::transfer`, PTBs).
- Designing fungible tokens or NFTs with Move's type system.
- Adding `#[test]` unit tests and publishing to devnet/testnet/mainnet.
- Reviewing Move code for ability misuse or stuck assets.

## Core concepts

- **Structs + abilities.** `struct Coin has store { value: u64 }`. The four abilities: `copy` (duplicable), `drop` (discardable), `store` (storable in global storage / other structs), `key` (top-level storage / object). Assets should have *neither* `copy` nor `drop`.
- **Resources must move.** Without `copy`/`drop`, the compiler forces you to explicitly `move_to`, transfer, or destroy every value. A function that takes a `Coin` and doesn't return or store it fails to compile — that's the safety net.
- **Modules vs scripts.** Modules hold persistent code and (on Aptos) resources; scripts are one-off transactions. Production logic lives in modules with `public entry fun` functions callable from transactions.
- **Aptos storage.** `move_to<T>(account, resource)` stores under an address; `borrow_global<T>(addr)` reads. `signer` proves authorization — never fabricate signers.
- **Sui objects.** Everything is an object with an owner: address-owned, object-owned, shared, or immutable. `transfer::public_transfer`, `transfer::share_object`, `transfer::freeze_object` set ownership. Entry functions take objects by value/reference.
- **Generics + phantom types.** `struct Coin<phantom CoinType> has store` — one generic coin module serves all currencies, distinguished by uninhabited witness types.
- **Events.** Emit events for mints, transfers, and state changes; indexers and UIs depend on them.

## Practical workflow

**1. Scaffold**
```bash
aptos move init --name my_module     # Aptos
sui move new my_package              # Sui
```

**2. Write the module (Aptos-flavored example)**
```move
module deployer::basic_coin {
    use std::signer;
    struct CoinStore has key { coin: u64 }

    public entry fun mint(account: &signer, amount: u64) acquires CoinStore {
        let addr = signer::address_of(account);
        if (!exists<CoinStore>(addr)) {
            move_to(account, CoinStore { coin: 0 });
        };
        let store = borrow_global_mut<CoinStore>(addr);
        store.coin = store.coin + amount;
    }
}
```
Note `acquires` annotations — the compiler tracks which globals a function touches.

**3. Unit test in-language**
```move
#[test(account = @0xCAFE)]
public entry fun test_mint(account: signer) acquires CoinStore {
    mint(&account, 100);
    assert!(borrow_global<CoinStore>(@0xCAFE).coin == 100, 0);
}
```
```bash
aptos move test   # or: sui move test
```
Move's built-in test framework with `#[test]`, `#[expected_failure]` is fast — use it heavily before any on-chain deploy.

**4. Publish**
```bash
aptos move publish --named-addresses deployer=<ADDR>   # devnet first
sui client publish --gas-budget 100000000
```
On Sui, choose the upgrade policy deliberately: `Immutable` for final code, `Compatible` only with a multisig-controlled upgrade cap.

**5. Interact.** Aptos: transactions call `entry` functions with typed args. Sui: build Programmable Transaction Blocks (PTBs) combining object inputs and Move calls — batch reads/writes atomically.

## Common pitfalls

- **Stuck assets.** Forgetting a withdraw/destroy path leaves resources permanently locked. Every resource type needs a complete lifecycle: create → store → transfer/withdraw → destroy.
- **Ability creep.** Adding `copy` or `drop` "to make it compile" defeats the type system. Fix the lifecycle instead.
- **Missing `acquires`.** The compiler rejects undeclared global access — annotate honestly; don't restructure code just to dodge it.
- **Signer confusion (Aptos).** `&signer` is a capability proving the holder authorized the transaction. Never store signers or pass them where an address suffices.
- **Object ownership mistakes (Sui).** Sending an object to the wrong owner, or forgetting to make a shared object when multiple users interact with it, bricks the flow. Decide ownership at design time.
- **Overly permissive upgrades.** A `Compatible` upgrade policy controlled by a single key is a backdoor. Use multisig + timelock for upgrade authority on mainnet.
- **Unbounded vectors.** Storing user-pushed items in a `vector` inside global storage grows gas costs linearly; paginate or cap.
- **Test-only code in production.** `#[test_only]` functions are stripped from published bytecode — keep them there, and never gate production logic on test helpers.
- **Ignoring events.** If indexers can't see it, your UI can't show it. Emit events for every meaningful mutation.

Attribution

aicodedecodeaicodedecode
View sourceSee grades on GitHubMore from aicodedecode →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Caveman

Terse caveman voice: answer first, fluff gone, every technical fact kept. Use for /caveman, "caveman mode", "talk like caveman", "be brief", "less tokens". Stays on until "stop caveman" or "normal mode".

1100021 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

698621 votes

Writing Skills

Create and manage Claude Code skills in HASH repository following Anthropic best practices. Use when creating new skills, modifying skill-rules.json, understanding trigger patterns, working with hooks, debugging skill activation, or implementing progressive disclosure. Covers skill structure, YAML frontmatter, trigger types (keywords, intent patterns), UserPromptSubmit hook, and the 500-line rule. Includes validation and debugging with SKILL_DEBUG. Examples include rust-error-stack, cargo-dep...

3931 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3421 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Amp, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Grok Build, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

741 votes
View all in ai-agents →