nft-skill

0
0
Source

Autonomous AI Artist Agent for generating, evolving, minting, listing, and promoting NFT art on the Base blockchain. Use when the user wants to create AI art, mint ERC-721 NFTs, list on marketplace, monitor on-chain sales, trigger artistic evolution, or announce drops on X/Twitter.

Install

mkdir -p .claude/skills/nft-skill && curl -L -o skill.zip "https://mcp.directory/api/skills/download/8297" && unzip -o skill.zip -d .claude/skills/nft-skill && rm skill.zip

Installs to .claude/skills/nft-skill

About this skill

NFT Skill for OpenClaw

Allows an OpenClaw agent to autonomously generate art, mint NFTs, list on marketplace, monitor sales, evolve based on milestones, and post social updates.

When to Use This Skill

  • User asks to generate AI art or procedural digital art
  • User wants to mint an NFT on Base
  • User wants to list an NFT for sale on the marketplace
  • User wants to monitor on-chain NFT sales
  • User wants to evolve art style after a sales milestone
  • User wants to tweet or announce a new NFT drop on X (Twitter)
  • User mentions "NFT", "mint", "Base blockchain", "AI art", "digital art", or "marketplace listing"

Setup (First Run)

Before first use, ensure the project is built:

cd {baseDir} && npm install && npm run build

The user must populate a .env file with their keys:

cp {baseDir}/.env.example {baseDir}/.env

Required variables: BASE_RPC_URL, BASE_PRIVATE_KEY, NFT_CONTRACT_ADDRESS, MARKETPLACE_ADDRESS, PINATA_API_KEY, PINATA_SECRET, LLM_PROVIDER.

To deploy contracts (one-time setup):

cd {baseDir} && npm run deploy:testnet   # Base Sepolia testnet
cd {baseDir} && npm run deploy:mainnet   # Base mainnet

Contract addresses are automatically written to .env after deployment.

Tools

All tools output JSON. The agent should look for the final line matching {"status":"success",...} or {"status":"error",...}.


1. generate — Generate Art

Generate new art and upload to IPFS.

cd {baseDir} && npm run cli -- generate --generation <number> --theme "<description>"

Parameters:

FlagTypeRequiredDescription
-g, --generationnumberyesGeneration number (determines evolution state)
-t, --themestringyesArt theme description sent to LLM

Output:

{"status": "success", "result": {"imagePath": "...", "metadata": {...}, "metadataUri": "Qm..."}}

Example:

cd {baseDir} && npm run cli -- generate --generation 1 --theme "neon cyberpunk city"

2. mint — Mint NFT

Mint a new ERC721 token on Base with an IPFS metadata URI.

cd {baseDir} && npm run cli -- mint --metadata-uri <uri>

Parameters:

FlagTypeRequiredDescription
-m, --metadata-uristringyesIPFS metadata URI (e.g. Qm... or ipfs://Qm...)

Output:

{"status": "success", "result": {"tokenId": "1", "txHash": "0x...", "blockNumber": 12345, "gasUsed": "80000"}}

Example:

cd {baseDir} && npm run cli -- mint --metadata-uri QmXyz123abc

3. list — List NFT on Marketplace

List a minted NFT for sale on the marketplace.

cd {baseDir} && npm run cli -- list --token-id <id> --price <eth>

Parameters:

FlagTypeRequiredDescription
-i, --token-idstringyesToken ID to list
-p, --pricestringyesListing price in ETH (e.g. "0.05")

Output:

{"status": "success", "result": {"success": true, "price": "0.05", "txHash": "0x..."}}

Example:

cd {baseDir} && npm run cli -- list --token-id 1 --price 0.05

4. monitor — Monitor Sales

Watch for sales events in real-time. Streams JSON to stdout until interrupted (Ctrl+C).

cd {baseDir} && npm run cli -- monitor [--from-block <number>]

Parameters:

FlagTypeRequiredDescription
-f, --from-blocknumbernoReplay missed sales from this block before live monitoring

Output (per sale):

{"status": "sale", "result": {"buyer": "0x...", "tokenId": "1", "price": "0.05", "txHash": "0x...", "blockNumber": 12345}}

Example:

cd {baseDir} && npm run cli -- monitor --from-block 12000000

5. evolve — Evolve Agent

Trigger the evolution logic when sales milestones are met.

cd {baseDir} && npm run cli -- evolve --proceeds <eth> --generation <number> --trigger "<reason>"

Parameters:

FlagTypeRequiredDescription
-p, --proceedsstringyesTotal ETH proceeds earned so far
-g, --generationnumberyesCurrent generation number
--triggerstringyesHuman-readable reason for evolution

Output:

{"status": "success", "result": {"previousGeneration": 1, "newGeneration": 2, "improvements": [...], "newAbilities": [...]}}

Example:

cd {baseDir} && npm run cli -- evolve --proceeds "0.5" --generation 1 --trigger "Sold 3 NFTs"

6. tweet — Post to X

Post an update to X (Twitter).

cd {baseDir} && npm run cli -- tweet --content "<text>"

Parameters:

FlagTypeRequiredDescription
-c, --contentstringyesTweet text (auto-truncated to 280 chars)

Output:

{"status": "success", "result": "tweet_id_string"}

Example:

cd {baseDir} && npm run cli -- tweet --content "New AI art drop incoming! #AIArt #Base"

Typical Workflow

A full autonomous cycle the agent should follow:

  1. Generate art with a theme → receive metadata URI
  2. Mint the NFT with that URI → receive token ID
  3. List the NFT on the marketplace at a price
  4. Tweet about the new listing
  5. Monitor sales for purchase events
  6. Evolve when a sales milestone is reached
  7. Repeat from step 1 with the new generation number

Error Handling

  • If a command returns {"status":"error",...}, read the message field and report it to the user.
  • Common issues: missing .env variables, insufficient wallet balance, network RPC errors.
  • For wallet balance issues, suggest the user funds their Base wallet.
  • For missing env vars, remind the user to populate {baseDir}/.env.

Environment Variables

VariableRequiredDescription
BASE_RPC_URLyesBase network RPC endpoint
BASE_PRIVATE_KEYyes*Wallet private key (or use PRIVATE_KEY_FILE)
PRIVATE_KEY_FILEnoPath to file containing the private key (safer alternative to env var)
NFT_CONTRACT_ADDRESSyesDeployed NFTArt contract address
MARKETPLACE_ADDRESSyesDeployed NFTMarketplace contract address
PINATA_API_KEYyesPinata IPFS API key
PINATA_SECRETyesPinata IPFS secret
LLM_PROVIDERyesopenrouter, groq, or ollama
LLM_MODELnoModel ID override
OPENROUTER_API_KEYif LLM_PROVIDER=openrouterOpenRouter API key
GROQ_API_KEYif LLM_PROVIDER=groqGroq API key
OLLAMA_BASE_URLif LLM_PROVIDER=ollamaOllama base URL
IMAGE_PROVIDERnostability, dalle, or procedural (default)
IMAGE_MODELnoImage model override
STABILITY_API_KEYif IMAGE_PROVIDER=stabilityStability AI key
OPENAI_API_KEYif IMAGE_PROVIDER=dalleOpenAI key for DALL-E
X_CONSUMER_KEYfor tweetX API consumer key
X_CONSUMER_SECRETfor tweetX API consumer secret
X_ACCESS_TOKENfor tweetX access token
X_ACCESS_SECRETfor tweetX access token secret
BASESCAN_API_KEYnoFor contract verification on Basescan

You might also like

flutter-development

aj-geddes

Build beautiful cross-platform mobile apps with Flutter and Dart. Covers widgets, state management with Provider/BLoC, navigation, API integration, and material design.

9521,094

drawio-diagrams-enhanced

jgtolentino

Create professional draw.io (diagrams.net) diagrams in XML format (.drawio files) with integrated PMP/PMBOK methodologies, extensive visual asset libraries, and industry-standard professional templates. Use this skill when users ask to create flowcharts, swimlane diagrams, cross-functional flowcharts, org charts, network diagrams, UML diagrams, BPMN, project management diagrams (WBS, Gantt, PERT, RACI), risk matrices, stakeholder maps, or any other visual diagram in draw.io format. This skill includes access to custom shape libraries for icons, clipart, and professional symbols.

846846

ui-ux-pro-max

nextlevelbuilder

"UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient."

571699

godot

bfollington

This skill should be used when working on Godot Engine projects. It provides specialized knowledge of Godot's file formats (.gd, .tscn, .tres), architecture patterns (component-based, signal-driven, resource-based), common pitfalls, validation tools, code templates, and CLI workflows. The `godot` command is available for running the game, validating scripts, importing resources, and exporting builds. Use this skill for tasks involving Godot game development, debugging scene/resource files, implementing game systems, or creating new Godot components.

548492

nano-banana-pro

garg-aayush

Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API. Use when the user asks to generate, create, edit, modify, change, alter, or update images. Also use when user references an existing image file and asks to modify it in any way (e.g., "modify this image", "change the background", "replace X with Y"). Supports both text-to-image generation and image-to-image editing with configurable resolution (1K default, 2K, or 4K for high resolution). DO NOT read the image file first - use this skill directly with the --input-image parameter.

673466

fastapi-templates

wshobson

Create production-ready FastAPI projects with async patterns, dependency injection, and comprehensive error handling. Use when building new FastAPI applications or setting up backend API projects.

514280

Stay ahead of the MCP ecosystem

Get weekly updates on new skills and servers.