Metaplex Development Skill
Overview
Metaplex provides the standard infrastructure for NFTs and tokens on Solana:
- Agent Registry: On-chain agent identity, wallets, and execution delegation for MPL Core assets
- Genesis: Token launch protocol with fair distribution + liquidity graduation
- Core: Next-gen NFT standard (recommended for new NFT projects)
- Token Metadata: Fungible tokens + legacy NFTs/pNFTs
- Bubblegum: Compressed NFTs (cNFTs) using Merkle trees — massive scale at minimal cost
- Candy Machine: NFT drops with configurable minting rules
Tool Selection
Prefer CLI over SDK for direct execution. Use SDK only when user specifically needs code.
| Approach |
When to Use |
CLI (mplx) |
Default choice - direct execution, no code needed |
| Umi SDK |
User needs code — default SDK choice. Covers all programs (TM, Core, Bubblegum, Genesis) |
| Kit SDK |
User specifically uses @solana/kit, or asks for minimal dependencies. Token Metadata only — no Core/Bubblegum/Genesis support |
Task Router
IMPORTANT: You MUST read the detail file for your task BEFORE executing any command or writing any code. The command syntax, required flags, setup steps, and batching rules are ONLY in the detail files. Do NOT guess commands from memory.
| Task Type |
Read This File |
| Any CLI operation (agent guidelines, batching, explorer links) |
./references/cli.md |
| CLI: Agent Registry (identity, delegation, revocation, token linking) |
./references/cli.md + ./references/cli-agent.md |
| CLI: Core NFTs/Collections |
./references/cli.md + ./references/cli-core.md + ./references/metadata-json.md |
| CLI: Token Metadata NFTs |
./references/cli.md + ./references/cli-token-metadata.md + ./references/metadata-json.md |
| CLI: Compressed NFTs (Bubblegum) |
./references/cli.md + ./references/cli-bubblegum.md + ./references/metadata-json.md |
| CLI: Candy Machine (NFT drops) |
./references/cli.md + ./references/cli-candy-machine.md + ./references/metadata-json.md |
| CLI: Token launch / bonding curve (Genesis) |
./references/cli.md + ./references/cli-genesis.md |
| CLI: Execute / asset-signer wallets / agent vault |
./references/cli.md + ./references/cli-core.md (execute section) |
| SDK: Execute / asset-signer PDA / agent vault |
./references/sdk-umi.md + ./references/sdk-core.md (execute section) |
| CLI: Fungible tokens |
./references/cli.md + ./references/cli-toolbox.md |
| SDK setup (Umi) |
./references/sdk-umi.md |
| SDK: Core NFTs |
./references/sdk-umi.md + ./references/sdk-core.md + ./references/metadata-json.md |
| SDK: Token Metadata |
./references/sdk-umi.md + ./references/sdk-token-metadata.md + ./references/metadata-json.md |
| SDK: Compressed NFTs (Bubblegum) |
./references/sdk-umi.md + ./references/sdk-bubblegum.md + ./references/metadata-json.md |
| SDK: Token Metadata with Kit |
./references/sdk-token-metadata-kit.md + ./references/metadata-json.md |
| SDK: Agent Registry (identity, wallets, delegation) |
./references/sdk-umi.md + ./references/sdk-agent.md |
| SDK: Token launch + bonding curve swaps (Genesis) |
./references/sdk-umi.md + ./references/sdk-genesis.md |
| SDK: Low-level Genesis (custom buckets, presale, vesting) |
./references/sdk-umi.md + ./references/sdk-genesis-low-level.md |
| Off-chain metadata JSON format/schema (NFT or token) |
./references/metadata-json.md |
| Account structures, PDAs, concepts |
./references/concepts.md |
| CLI errors, localnet issues |
./references/cli-troubleshooting.md |
CLI Capabilities
The mplx CLI can handle most Metaplex operations directly. Read ./references/cli.md for agent guidelines (batching, JSON output, explorer links), then the program-specific file.
CLI v0.1.0 breaking changes (for agents/scripts migrating from older versions):
--json <file> (used to pass an offchain metadata file path) is now --offchain <file>. --json is now the standard OCLIF flag for machine-readable output.
- All commands now return structured JSON when
--json is passed — use this for programmatic/agent use.
| Task |
CLI Support |
| Register agent identity |
✅ |
| Fetch agent data |
✅ |
| Revoke execution delegation |
✅ |
| Set agent token (Genesis link) |
✅ (requires asset-signer mode) |
| Create fungible token |
✅ |
| Create Core NFT/Collection |
✅ |
| Create TM NFT/pNFT |
✅ |
| Transfer TM NFTs |
✅ |
| Transfer fungible tokens |
✅ |
| Transfer Core NFTs |
✅ |
| Upload to Irys |
✅ |
| Candy Machine drop |
✅ (setup/config/insert — minting requires SDK) |
| Compressed NFTs (cNFTs) |
✅ (batch limit ~100, use SDK for larger) |
| Execute (asset-signer wallets) |
✅ |
| Check SOL balance / Airdrop |
✅ |
| Query assets by owner/collection |
❌ SDK only (DAS API) |
| Token launch (Genesis) |
✅ |
| Bonding curve swap (Genesis) |
✅ |
Program IDs
Agent Identity: 1DREGFgysWYxLnRnKQnwrxnJQeSMk2HmGaC6whw2B2p
Agent Tools: TLREGni9ZEyGC3vnPZtqUh95xQ8oPqJSvNjvB7FGK8S
Genesis: GNS1S5J5AspKXgpjz6SvKL66kPaKWAhaGRhCqPRxii2B
Core: CoREENxT6tW1HoK8ypY1SxRMZTcVPm7R94rH4PZNhX7d
Token Metadata: metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s
Bubblegum V1: BGUMAp9SX3uS4efGcFjPjkAQZ4cUNZhtHaMq64nrGf9D
Bubblegum V2: BGUMAp9Gq7iTEuizy4pqaxsTyUCBK68MDfK752saRPUY
Core Candy: CMACYFENjoBMHzapRXyo1JZkVS6EtaDDzkjMrmQLvr4J
Quick Decision Guide
Autonomous Agents
Use Agent Registry to register on-chain identity and execution delegation for MPL Core assets. The Mint Agent API (mintAndSubmitAgent) is the recommended path — it creates the Core asset and registers identity in a single transaction. For existing assets, use registerIdentityV1 directly. Any Core asset already has a built-in wallet (Asset Signer PDA) via Core's Execute hook — the registry adds discoverable identity records and lets owners delegate an off-chain executive to operate the agent. Agents can optionally link a Genesis token via setAgentTokenV1. Read ./references/cli-agent.md (CLI) or ./references/sdk-umi.md + ./references/sdk-agent.md (SDK).
Token Launches (Token Generation Event / Fair Launch / Bonding Curve)
Use Genesis. The Launch API (genesis launch create / createAndRegisterLaunch) is recommended — it handles everything in one step. Two launch types:
launchpool (default): Configurable allocations, 48h deposit, team vesting support
bonding-curve: Instant bonding curve (constant product AMM) — no deposit window, trading starts immediately, auto-graduates to Raydium CPMM on sell-out. Supports creator fees, first buy, and agent mode.
Read ./references/cli.md + ./references/cli-genesis.md (CLI) or ./references/sdk-genesis.md (SDK launch flow). For custom buckets/presale/vesting, use ./references/sdk-genesis-low-level.md.
NFTs: Core vs Token Metadata
| Choose |
When |
| Core |
New NFT projects, lower cost (87% cheaper), plugins, royalty enforcement |
| Token Metadata |
Existing TM collections, need editions, pNFTs for legacy compatibility |
Compressed NFTs (Massive Scale)
Use Bubblegum when minting thousands+ of NFTs at minimal cost. See ./references/cli-bubblegum.md (CLI) or ./references/sdk-bubblegum.md (SDK).
Fungible Tokens
Always use Token Metadata. Read ./references/cli-toolbox.md for CLI commands.
NFT Drops
Use Core Candy Machine. Read ./references/cli.md + ./references/cli-candy-machine.md.
App Mints into a Core Collection WITHOUT Candy Machine
Creating an asset into a Core collection requires the collection's update authority (or an UpdateDelegate) to sign — a user's wallet can't, and the authority key must never be in a frontend. The app needs either a custom on-chain program (PDA granted UpdateDelegate, mint logic in the program) or a backend/API holding a delegate keypair that signs mints. Read the "Minting into a Collection from an App" section in ./references/sdk-core.md before designing the minting flow.
Asset as Agent / Vault / Wallet (Execute)
Use Core Execute when an asset (NFT, agent, vault) needs to hold SOL/tokens, transfer funds, sign transactions, or own other assets. Every Core asset has a signer PDA that can act as an autonomous wallet. Read ./references/cli-core.md (CLI) or ./references/sdk-core.md (SDK), execute section.
External Resources
1---
2name: metaplex
3description: Metaplex development on Solana — NFTs, tokens, compressed NFTs, candy machines, token launches, autonomous agents. Use when working with Token Metadata, Core, Bubblegum, Candy Machine, Genesis, Agent Registry, or the mplx CLI.
4license: Apache-2.0
5metadata:
6 source: https://skillmd.com/skills/solizardking/metaplex
7 author: metaplex-foundation
8 version: "0.3.0"
9 openclaw: {"emoji":"💎","os":["darwin","linux","win32"],"requires":{"bins":["node"]},"homepage":"https://metaplex.com/docs"}
10---
11
12# Metaplex Development Skill
13
14## Overview
15
16Metaplex provides the standard infrastructure for NFTs and tokens on Solana:
17- **Agent Registry**: On-chain agent identity, wallets, and execution delegation for MPL Core assets
18- **Genesis**: Token launch protocol with fair distribution + liquidity graduation
19- **Core**: Next-gen NFT standard (recommended for new NFT projects)
20- **Token Metadata**: Fungible tokens + legacy NFTs/pNFTs
21- **Bubblegum**: Compressed NFTs (cNFTs) using Merkle trees — massive scale at minimal cost
22- **Candy Machine**: NFT drops with configurable minting rules
23
24## Tool Selection
25
26> **Prefer CLI over SDK** for direct execution. Use SDK only when user specifically needs code.
27
28| Approach | When to Use |
29|----------|-------------|
30| **CLI (`mplx`)** | Default choice - direct execution, no code needed |
31| **Umi SDK** | User needs code — default SDK choice. Covers all programs (TM, Core, Bubblegum, Genesis) |
32| **Kit SDK** | User specifically uses @solana/kit, or asks for minimal dependencies. Token Metadata only — no Core/Bubblegum/Genesis support |
33
34## Task Router
35
36> **IMPORTANT**: You MUST read the detail file for your task BEFORE executing any command or writing any code. The command syntax, required flags, setup steps, and batching rules are ONLY in the detail files. Do NOT guess commands from memory.
37
38| Task Type | Read This File |
39|-----------|----------------|
40| Any CLI operation (agent guidelines, batching, explorer links) | `./references/cli.md` |
41| CLI: Agent Registry (identity, delegation, revocation, token linking) | `./references/cli.md` + `./references/cli-agent.md` |
42| CLI: Core NFTs/Collections | `./references/cli.md` + `./references/cli-core.md` + `./references/metadata-json.md` |
43| CLI: Token Metadata NFTs | `./references/cli.md` + `./references/cli-token-metadata.md` + `./references/metadata-json.md` |
44| CLI: Compressed NFTs (Bubblegum) | `./references/cli.md` + `./references/cli-bubblegum.md` + `./references/metadata-json.md` |
45| CLI: Candy Machine (NFT drops) | `./references/cli.md` + `./references/cli-candy-machine.md` + `./references/metadata-json.md` |
46| CLI: Token launch / bonding curve (Genesis) | `./references/cli.md` + `./references/cli-genesis.md` |
47| CLI: Execute / asset-signer wallets / agent vault | `./references/cli.md` + `./references/cli-core.md` (execute section) |
48| SDK: Execute / asset-signer PDA / agent vault | `./references/sdk-umi.md` + `./references/sdk-core.md` (execute section) |
49| CLI: Fungible tokens | `./references/cli.md` + `./references/cli-toolbox.md` |
50| SDK setup (Umi) | `./references/sdk-umi.md` |
51| SDK: Core NFTs | `./references/sdk-umi.md` + `./references/sdk-core.md` + `./references/metadata-json.md` |
52| SDK: Token Metadata | `./references/sdk-umi.md` + `./references/sdk-token-metadata.md` + `./references/metadata-json.md` |
53| SDK: Compressed NFTs (Bubblegum) | `./references/sdk-umi.md` + `./references/sdk-bubblegum.md` + `./references/metadata-json.md` |
54| SDK: Token Metadata with Kit | `./references/sdk-token-metadata-kit.md` + `./references/metadata-json.md` |
55| SDK: Agent Registry (identity, wallets, delegation) | `./references/sdk-umi.md` + `./references/sdk-agent.md` |
56| SDK: Token launch + bonding curve swaps (Genesis) | `./references/sdk-umi.md` + `./references/sdk-genesis.md` |
57| SDK: Low-level Genesis (custom buckets, presale, vesting) | `./references/sdk-umi.md` + `./references/sdk-genesis-low-level.md` |
58| Off-chain metadata JSON format/schema (NFT or token) | `./references/metadata-json.md` |
59| Account structures, PDAs, concepts | `./references/concepts.md` |
60| CLI errors, localnet issues | `./references/cli-troubleshooting.md` |
61
62## CLI Capabilities
63
64The `mplx` CLI can handle most Metaplex operations directly. **Read `./references/cli.md` for agent guidelines (batching, JSON output, explorer links), then the program-specific file.**
65
66> **CLI v0.1.0 breaking changes** (for agents/scripts migrating from older versions):
67> - `--json <file>` (used to pass an offchain metadata file path) is now `--offchain <file>`. `--json` is now the standard OCLIF flag for machine-readable output.
68> - All commands now return structured JSON when `--json` is passed — use this for programmatic/agent use.
69
70| Task | CLI Support |
71|------|-------------|
72| Register agent identity | ✅ |
73| Fetch agent data | ✅ |
74| Revoke execution delegation | ✅ |
75| Set agent token (Genesis link) | ✅ (requires asset-signer mode) |
76| Create fungible token | ✅ |
77| Create Core NFT/Collection | ✅ |
78| Create TM NFT/pNFT | ✅ |
79| Transfer TM NFTs | ✅ |
80| Transfer fungible tokens | ✅ |
81| Transfer Core NFTs | ✅ |
82| Upload to Irys | ✅ |
83| Candy Machine drop | ✅ (setup/config/insert — minting requires SDK) |
84| Compressed NFTs (cNFTs) | ✅ (batch limit ~100, use SDK for larger) |
85| Execute (asset-signer wallets) | ✅ |
86| Check SOL balance / Airdrop | ✅ |
87| Query assets by owner/collection | ❌ SDK only (DAS API) |
88| Token launch (Genesis) | ✅ |
89| Bonding curve swap (Genesis) | ✅ |
90
91## Program IDs
92
93```
94Agent Identity: 1DREGFgysWYxLnRnKQnwrxnJQeSMk2HmGaC6whw2B2p
95Agent Tools: TLREGni9ZEyGC3vnPZtqUh95xQ8oPqJSvNjvB7FGK8S
96Genesis: GNS1S5J5AspKXgpjz6SvKL66kPaKWAhaGRhCqPRxii2B
97Core: CoREENxT6tW1HoK8ypY1SxRMZTcVPm7R94rH4PZNhX7d
98Token Metadata: metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s
99Bubblegum V1: BGUMAp9SX3uS4efGcFjPjkAQZ4cUNZhtHaMq64nrGf9D
100Bubblegum V2: BGUMAp9Gq7iTEuizy4pqaxsTyUCBK68MDfK752saRPUY
101Core Candy: CMACYFENjoBMHzapRXyo1JZkVS6EtaDDzkjMrmQLvr4J
102```
103
104## Quick Decision Guide
105
106### Autonomous Agents
107
108Use **Agent Registry** to register on-chain identity and execution delegation for MPL Core assets. The **Mint Agent API** (`mintAndSubmitAgent`) is the recommended path — it creates the Core asset and registers identity in a single transaction. For existing assets, use `registerIdentityV1` directly. Any Core asset already has a built-in wallet (Asset Signer PDA) via Core's Execute hook — the registry adds discoverable identity records and lets owners delegate an off-chain executive to operate the agent. Agents can optionally link a Genesis token via `setAgentTokenV1`. Read `./references/cli-agent.md` (CLI) or `./references/sdk-umi.md` + `./references/sdk-agent.md` (SDK).
109
110### Token Launches (Token Generation Event / Fair Launch / Bonding Curve)
111
112Use **Genesis**. The **Launch API** (`genesis launch create` / `createAndRegisterLaunch`) is recommended — it handles everything in one step. Two launch types:
113- **`launchpool`** (default): Configurable allocations, 48h deposit, team vesting support
114- **`bonding-curve`**: Instant bonding curve (constant product AMM) — no deposit window, trading starts immediately, auto-graduates to Raydium CPMM on sell-out. Supports creator fees, first buy, and agent mode.
115
116Read `./references/cli.md` + `./references/cli-genesis.md` (CLI) or `./references/sdk-genesis.md` (SDK launch flow). For custom buckets/presale/vesting, use `./references/sdk-genesis-low-level.md`.
117
118### NFTs: Core vs Token Metadata
119
120| Choose | When |
121|--------|------|
122| **Core** | New NFT projects, lower cost (87% cheaper), plugins, royalty enforcement |
123| **Token Metadata** | Existing TM collections, need editions, pNFTs for legacy compatibility |
124
125### Compressed NFTs (Massive Scale)
126
127Use **Bubblegum** when minting thousands+ of NFTs at minimal cost. See `./references/cli-bubblegum.md` (CLI) or `./references/sdk-bubblegum.md` (SDK).
128
129### Fungible Tokens
130
131Always use **Token Metadata**. Read `./references/cli-toolbox.md` for CLI commands.
132
133### NFT Drops
134
135Use **Core Candy Machine**. Read `./references/cli.md` + `./references/cli-candy-machine.md`.
136
137### App Mints into a Core Collection WITHOUT Candy Machine
138
139Creating an asset into a Core collection requires the collection's update authority (or an `UpdateDelegate`) to sign — a user's wallet can't, and the authority key must never be in a frontend. The app needs either a custom on-chain program (PDA granted `UpdateDelegate`, mint logic in the program) or a backend/API holding a delegate keypair that signs mints. Read the "Minting into a Collection from an App" section in `./references/sdk-core.md` before designing the minting flow.
140
141### Asset as Agent / Vault / Wallet (Execute)
142
143Use **Core Execute** when an asset (NFT, agent, vault) needs to hold SOL/tokens, transfer funds, sign transactions, or own other assets. Every Core asset has a signer PDA that can act as an autonomous wallet. Read `./references/cli-core.md` (CLI) or `./references/sdk-core.md` (SDK), execute section.
144
145## External Resources
146
147- Documentation: https://metaplex.com/docs
148- Agent Registry: https://metaplex.com/docs/agents
149- Genesis: https://metaplex.com/docs/smart-contracts/genesis
150- Core: https://metaplex.com/docs/smart-contracts/core
151- Token Metadata: https://metaplex.com/docs/smart-contracts/token-metadata
152- Bubblegum: https://metaplex.com/docs/smart-contracts/bubblegum-v2
153- Candy Machine: https://metaplex.com/docs/smart-contracts/core-candy-machine