nft-standards
Agent skill fromwshobson/agents
Implement NFT standards (ERC-721, ERC-1155) with proper metadata handling, minting strategies, and marketplace integration. Use when creating NFT contracts, building NFT marketplaces, or implementing digital asset systems.
How to install nft-standards
install nft-standards
# install the agents pack with the skills CLI
npx skills add wshobson/agents# or add only this skill to Claude Code: copy the folder
plugins/blockchain-web3/skills/nft-standards/
# into
~/.claude/skills/nft-standards/ (all projects)
.claude/skills/nft-standards/ (one project)
1# NFT Standards23Master ERC-721 and ERC-1155 NFT standards, metadata best practices, and advanced NFT features.45## When to Use This Skill67- Creating NFT collections (art, gaming, collectibles)8- Implementing marketplace functionality9- Building on-chain or off-chain metadata10- Creating soulbound tokens (non-transferable)11- Implementing royalties and revenue sharing12- Developing dynamic/evolving NFTs1314## ERC-721 (Non-Fungible Token Standard)1516```solidity17// SPDX-License-Identifier: MIT18pragma solidity ^0.8.0;1920import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";21import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";22import "@openzeppelin/contracts/access/Ownable.sol";23import "@openzeppelin/contracts/utils/Counters.sol";2425contract MyNFT is ERC721URIStorage, ERC721Enumerable, Ownable {26 using Counters for Counters.Counter;27 Counters.Counter private _tokenIds;2829 uint256 public constant MAX_SUPPLY = 10000;30 uint256 public constant MINT_PRICE = 0.08 ether;31 uint256 public constant MAX_PER_MINT = 20;3233 constructor() ERC721("MyNFT", "MNFT") {}3435 function mint(uint256 quantity) external payable {36 require(quantity > 0 && quantity <= MAX_PER_MINT, "Invalid quantity");37 require(_tokenIds.current() + quantity <= MAX_SUPPLY, "Exceeds max supply");38 require(msg.value >= MINT_PRICE * quantity, "Insufficient payment");3940 for (uint256 i = 0; i < quantity; i++) {41…
Excerpt shown under the repository's MIT license.
