Install any skill in seconds. Free to start, no credit card required.
Get Started Free →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.
.claude/skills/dicklesworthstone-nft-standards/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-06 | ✗→✓ | ▲ Improved | 74% | 0% |
| case-09 | ✗→✓ | ▲ Improved | 110% | 0% |
| case-10 | ✗→✓ | ▲ Improved | 233% | 0% |
| case-12 | ✗→✓ | ▲ Improved | 105% | 0% |
| case-15 | ✓→✓ | = Same ✓ | 47% | 0% |
Master ERC-721 and ERC-1155 NFT standards, metadata best practices, and advanced NFT features.
solidity// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; contract MyNFT is ERC721URIStorage, ERC721Enumerable, Ownable { using Counters for Counters.Counter; Counters.Counter private _tokenIds; uint256 public constant MAX_SUPPLY = 10000; uint256 public constant MINT_PRICE = 0.08 ether; uint256 public constant MAX_PER_MINT = 20; constructor() ERC721("MyNFT", "MNFT") {} function mint(uint256 quantity) external payable { require(quantity > 0 && quantity <= MAX_PER_MINT, "Invalid quantity"); require(_tokenIds.current() + quantity <= MAX_SUPPLY, "Exceeds max supply"); require(msg.value >= MINT_PRICE * quantity, "Insufficient payment"); for (uint256 i = 0; i < quantity; i++) { _tokenIds.increment(); uint256 newTokenId = _tokenIds.current(); _safeMint(msg.sender, newTokenId); _setTokenURI(newTokenId, generateTokenURI(newTokenId)); } } function generateTokenURI(uint256 tokenId) internal pure returns (string memory) { // Return IPFS URI or on-chain metadata return string(abi.encodePacked("ipfs://QmHash/", Strings.toString(tokenId), ".json")); } // Required overrides function _beforeTokenTransfer( address from, address to, uint256 tokenId, uint256 batchSize ) internal override(ERC721, ERC721Enumerable) { super._beforeTokenTransfer(from, to, tokenId, batchSize); } function _burn(uint256 tokenId) internal override(ERC721, ERC721URIStorage) { super._burn(tokenId); } function tokenURI(uint256 tokenId) public view override(ERC721, ERC721URIStorage) returns (string memory) { return super.tokenURI(tokenId); } function supportsInterface(bytes4 interfaceId) public view override(ERC721, ERC721Enumerable) returns (bool) { return super.supportsInterface(interfaceId); } function withdraw() external onlyOwner { payable(owner()).transfer(address(this).balance); } }
solidity// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; contract GameItems is ERC1155, Ownable { uint256 public constant SWORD = 1; uint256 public constant SHIELD = 2; uint256 public constant POTION = 3; mapping(uint256 => uint256) public tokenSupply; mapping(uint256 => uint256) public maxSupply; constructor() ERC1155("ipfs://QmBaseHash/{id}.json") { maxSupply[SWORD] = 1000; maxSupply[SHIELD] = 500; maxSupply[POTION] = 10000; } function mint( address to, uint256 id, uint256 amount ) external onlyOwner { require(tokenSupply[id] + amount <= maxSupply[id], "Exceeds max supply"); _mint(to, id, amount, ""); tokenSupply[id] += amount; } function mintBatch( address to, uint256[] memory ids, uint256[] memory amounts ) external onlyOwner { for (uint256 i = 0; i < ids.length; i++) { require(tokenSupply[ids[i]] + amounts[i] <= maxSupply[ids[i]], "Exceeds max supply"); tokenSupply[ids[i]] += amounts[i]; } _mintBatch(to, ids, amounts, ""); } function burn( address from, uint256 id, uint256 amount ) external { require(from == msg.sender || isApprovedForAll(from, msg.sender), "Not authorized"); _burn(from, id, amount); tokenSupply[id] -= amount; } }
json{ "name": "NFT #1", "description": "Description of the NFT", "image": "ipfs://QmImageHash", "attributes": [ { "trait_type": "Background", "value": "Blue" }, { "trait_type": "Rarity", "value": "Legendary" }, { "trait_type": "Power", "value": 95, "display_type": "number", "max_value": 100 } ] }
soliditycontract OnChainNFT is ERC721 { struct Traits { uint8 background; uint8 body; uint8 head; uint8 rarity; } mapping(uint256 => Traits) public tokenTraits; function tokenURI(uint256 tokenId) public view override returns (string memory) { Traits memory traits = tokenTraits[tokenId]; string memory json = Base64.encode( bytes( string( abi.encodePacked( '{"name": "NFT #', Strings.toString(tokenId), '",', '"description": "On-chain NFT",', '"image": "data:image/svg+xml;base64,', generateSVG(traits), '",', '"attributes": [', '{"trait_type": "Background", "value": "', Strings.toString(traits.background), '"},', '{"trait_type": "Rarity", "value": "', getRarityName(traits.rarity), '"}', ']}' ) ) ) ); return string(abi.encodePacked("data:application/json;base64,", json)); } function generateSVG(Traits memory traits) internal pure returns (string memory) { // Generate SVG based on traits return "..."; } }
solidityimport "@openzeppelin/contracts/interfaces/IERC2981.sol"; contract NFTWithRoyalties is ERC721, IERC2981 { address public royaltyRecipient; uint96 public royaltyFee = 500; // 5% constructor() ERC721("Royalty NFT", "RNFT") { royaltyRecipient = msg.sender; } function royaltyInfo(uint256 tokenId, uint256 salePrice) external view override returns (address receiver, uint256 royaltyAmount) { return (royaltyRecipient, (salePrice * royaltyFee) / 10000); } function setRoyalty(address recipient, uint96 fee) external onlyOwner { require(fee <= 1000, "Royalty fee too high"); // Max 10% royaltyRecipient = recipient; royaltyFee = fee; } function supportsInterface(bytes4 interfaceId) public view override(ERC721, IERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } }
soliditycontract SoulboundToken is ERC721 { constructor() ERC721("Soulbound", "SBT") {} function _beforeTokenTransfer( address from, address to, uint256 tokenId, uint256 batchSize ) internal virtual override { require(from == address(0) || to == address(0), "Token is soulbound"); super._beforeTokenTransfer(from, to, tokenId, batchSize); } function mint(address to) external { uint256 tokenId = totalSupply() + 1; _safeMint(to, tokenId); } // Burn is allowed (user can destroy their SBT) function burn(uint256 tokenId) external { require(ownerOf(tokenId) == msg.sender, "Not token owner"); _burn(tokenId); } }
soliditycontract DynamicNFT is ERC721 { struct TokenState { uint256 level; uint256 experience; uint256 lastUpdated; } mapping(uint256 => TokenState) public tokenStates; function gainExperience(uint256 tokenId, uint256 exp) external { require(ownerOf(tokenId) == msg.sender, "Not token owner"); TokenState storage state = tokenStates[tokenId]; state.experience += exp; // Level up logic if (state.experience >= state.level * 100) { state.level++; } state.lastUpdated = block.timestamp; } function tokenURI(uint256 tokenId) public view override returns (string memory) { TokenState memory state = tokenStates[tokenId]; // Generate metadata based on current state return generateMetadata(tokenId, state); } function generateMetadata(uint256 tokenId, TokenState memory state) internal pure returns (string memory) { // Dynamic metadata generation return ""; } }
solidityimport "erc721a/contracts/ERC721A.sol"; contract OptimizedNFT is ERC721A { uint256 public constant MAX_SUPPLY = 10000; uint256 public constant MINT_PRICE = 0.05 ether; constructor() ERC721A("Optimized NFT", "ONFT") {} function mint(uint256 quantity) external payable { require(_totalMinted() + quantity <= MAX_SUPPLY, "Exceeds max supply"); require(msg.value >= MINT_PRICE * quantity, "Insufficient payment"); _mint(msg.sender, quantity); } function _baseURI() internal pure override returns (string memory) { return "ipfs://QmBaseHash/"; } }
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-15 | pass→pass | 21,535 | 18,096 | -16% | 1 | 1 | 0% | 4,140 | 6,081 | +47% | 0 | 0 | — |
case-01 | fail→fail | 15,413 | 31,023 | +101% | 1 | 1 | 0% | 3,108 | 7,132 | +129% | 0 | 0 | — |
case-02 | fail→fail | 22,116 | 17,447 | -21% | 1 | 1 | 0% | 4,113 | 7,164 | +74% | 0 | 0 | — |
case-03 | pass→pass | 6,794 | 7,265 | +7% | 1 | 1 | 0% | 1,481 | 4,257 | +187% | 0 | 0 | — |
case-04 | pass→pass | 21,117 | 25,449 | +21% | 1 | 1 | 0% | 4,369 | 7,240 | +66% | 0 | 0 | — |
case-05 | fail→fail | 29,329 | 25,587 | -13% | 1 | 1 | 0% | 1,423 | 7,585 | +433% | 0 | 0 | — |
case-06 | fail→pass | 16,660 | 10,925 | -34% | 1 | 1 | 0% | 3,205 | 5,592 | +74% | 0 | 0 | — |
case-07 | pass→pass | 14,337 | 11,291 | -21% | 1 | 1 | 0% | 2,984 | 5,449 | +83% | 0 | 0 | — |
case-08 | fail→fail | 8,581 | 6,872 | -20% | 1 | 1 | 0% | 1,596 | 4,272 | +168% | 0 | 0 | — |
case-09 | fail→pass | 16,330 | 12,991 | -20% | 1 | 1 | 0% | 2,577 | 5,402 | +110% | 0 | 0 | — |
case-10 | fail→pass | 8,327 | 5,396 | -35% | 1 | 1 | 0% | 1,245 | 4,144 | +233% | 0 | 0 | — |
case-11 | pass→pass | 17,361 | 18,624 | +7% | 1 | 1 | 0% | 3,337 | 6,087 | +82% | 0 | 0 | — |
case-12 | fail→pass | 14,246 | 14,928 | +5% | 1 | 1 | 0% | 3,123 | 6,416 | +105% | 0 | 0 | — |
case-13 | pass→pass | 10,518 | 13,127 | +25% | 1 | 1 | 0% | 2,144 | 5,436 | +154% | 0 | 0 | — |
case-14 | fail→fail | 11,043 | 12,219 | +11% | 1 | 1 | 0% | 2,240 | 5,626 | +151% | 0 | 0 | — |
case-16 | pass→pass | 9,715 | 5,460 | -44% | 1 | 1 | 0% | 1,238 | 3,992 | +222% | 0 | 0 | — |
case-17 | pass→pass | 6,289 | 4,102 | -35% | 1 | 1 | 0% | 1,019 | 3,790 | +272% | 0 | 0 | — |
case-18 | fail→fail | 15,939 | 11,768 | -26% | 1 | 1 | 0% | 2,539 | 4,960 | +95% | 0 | 0 | — |
case-19 | pass→pass | 11,558 | 5,052 | -56% | 1 | 1 | 0% | 1,901 | 3,934 | +107% | 0 | 0 | — |
case-20 | pass→pass | 11,493 | 9,789 | -15% | 1 | 1 | 0% | 1,875 | 4,854 | +159% | 0 | 0 | — |
case-21 | fail→fail | 12,779 | 8,907 | -30% | 1 | 1 | 0% | 2,387 | 5,060 | +112% | 0 | 0 | — |
case-22 | pass→pass | 4,204 | 3,499 | -17% | 1 | 1 | 0% | 737 | 3,679 | +399% | 0 | 0 | — |
case-23 | pass→pass | 7,530 | 4,980 | -34% | 1 | 1 | 0% | 1,342 | 3,923 | +192% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 23 cases were attempted, and 22 counted toward the lift figure. The other 1 produced results that are not comparable between the two arms, so they are excluded from the headline rather than averaged into it. The headline lift of +17 percentage points is the difference between those two pass rates over the 22 comparable cases. 1 case got worse with the skill loaded, and it is included in that figure.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.