Output format·Finance & Commerce

NFT Standards

Implement NFT standards (ERC-721, ERC-1155) with proper metadata handling, minting strategies, and marketplace integration.

You say
Buy it · $39 Read it before you buy $39 Written by wshobson · unverified publisher
Context cost
2.5k tokensestimated from the bundle, loaded when it triggers
Bundle
2 files · 10.2 kBtext throughout, nothing executable
Licence
MITpaid listing
Last change
no release on file
Servers it uses
Noneruns standalone

What it does

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.

Installed, it changes the agent in these ways.

What this skill changes about the agent is not written down here yet. The listing was collected from its source, and the description is in its own SKILL.md.

Output format

Produces one artefact, exactly shaped.

e-commerce

The skill itself

This is the whole product. A skill is instructions the model reads, so there is nothing behind the listing you cannot see first — the front matter loads with every session, and the body below it loads when the skill triggers.

SKILL.md7.6 kB · 264 lines
--- name: nft-standards description: 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. ---
6# NFT Standards
7
8Master ERC-721 and ERC-1155 NFT standards, metadata best practices, and advanced NFT features.
9
10## When to Use This Skill
11
12- Creating NFT collections (art, gaming, collectibles)
13- Implementing marketplace functionality
14- Building on-chain or off-chain metadata
15- Creating soulbound tokens (non-transferable)
16- Implementing royalties and revenue sharing
17- Developing dynamic/evolving NFTs
18
19## ERC-721 (Non-Fungible Token Standard)
20
21```solidity
22// SPDX-License-Identifier: MIT
23pragma solidity ^0.8.0;
24
25import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
26import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
27import "@openzeppelin/contracts/access/Ownable.sol";
28import "@openzeppelin/contracts/utils/Counters.sol";
29
30contract MyNFT is ERC721URIStorage, ERC721Enumerable, Ownable {
31 using Counters for Counters.Counter;
32 Counters.Counter private _tokenIds;
33
34 uint256 public constant MAX_SUPPLY = 10000;
35 uint256 public constant MINT_PRICE = 0.08 ether;
36 uint256 public constant MAX_PER_MINT = 20;
37
38 constructor() ERC721("MyNFT", "MNFT") {}
39
40 function mint(uint256 quantity) external payable {
41 require(quantity > 0 && quantity <= MAX_PER_MINT, "Invalid quantity");
42 require(_tokenIds.current() + quantity <= MAX_SUPPLY, "Exceeds max supply");
43 require(msg.value >= MINT_PRICE * quantity, "Insufficient payment");
44
45 for (uint256 i = 0; i < quantity; i++) {
46 _tokenIds.increment();
47 uint256 newTokenId = _tokenIds.current();
48 _safeMint(msg.sender, newTokenId);
49 _setTokenURI(newTokenId, generateTokenURI(newTokenId));
50 }
51 }
52
53 function generateTokenURI(uint256 tokenId) internal pure returns (string memory) {
54 // Return IPFS URI or on-chain metadata
55 return string(abi.encodePacked("ipfs://QmHash/", Strings.toString(tokenId), ".json"));
56 }
57
58 // Required overrides
59 function _beforeTokenTransfer(
60 address from,
61 address to,
62 uint256 tokenId,
63 uint256 batchSize
64 ) internal override(ERC721, ERC721Enumerable) {
65 super._beforeTokenTransfer(from, to, tokenId, batchSize);
66 }
67
68 function _burn(uint256 tokenId) internal override(ERC721, ERC721URIStorage) {
69 super._burn(tokenId);
70 }
71
72 function tokenURI(uint256 tokenId) public view override(ERC721, ERC721URIStorage) returns (string memory) {
73 return super.tokenURI(tokenId);
74 }
75
76 function supportsInterface(bytes4 interfaceId)
77 public
78 view
79 override(ERC721, ERC721Enumerable)
80 returns (bool)
81 {
82 return super.supportsInterface(interfaceId);
83 }
84
85 function withdraw() external onlyOwner {
86 payable(owner()).transfer(address(this).balance);
87 }
88}
89```
90
91## ERC-1155 (Multi-Token Standard)
92
93```solidity
94// SPDX-License-Identifier: MIT
95pragma solidity ^0.8.0;
96
97import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
98import "@openzeppelin/contracts/access/Ownable.sol";
99
100contract GameItems is ERC1155, Ownable {
101 uint256 public constant SWORD = 1;
102 uint256 public constant SHIELD = 2;
103 uint256 public constant POTION = 3;
104
105 mapping(uint256 => uint256) public tokenSupply;
106 mapping(uint256 => uint256) public maxSupply;
107
108 constructor() ERC1155("ipfs://QmBaseHash/{id}.json") {
109 maxSupply[SWORD] = 1000;
110 maxSupply[SHIELD] = 500;
111 maxSupply[POTION] = 10000;
112 }
113
114 function mint(
115 address to,
116 uint256 id,
117 uint256 amount
118 ) external onlyOwner {
119 require(tokenSupply[id] + amount <= maxSupply[id], "Exceeds max supply");
120
121 _mint(to, id, amount, "");
122 tokenSupply[id] += amount;
123 }
124
125 function mintBatch(
126 address to,
127 uint256[] memory ids,
128 uint256[] memory amounts
129 ) external onlyOwner {
130 for (uint256 i = 0; i < ids.length; i++) {
131 require(tokenSupply[ids[i]] + amounts[i] <= maxSupply[ids[i]], "Exceeds max supply");
132 tokenSupply[ids[i]] += amounts[i];
133 }
134
135 _mintBatch(to, ids, amounts, "");
136 }
137
138 function burn(
139 address from,
140 uint256 id,
141 uint256 amount
142 ) external {
143 require(from == msg.sender || isApprovedForAll(from, msg.sender), "Not authorized");
144 _burn(from, id, amount);
145 tokenSupply[id] -= amount;
146 }
147}
148```
149
150## Metadata Standards
151
152### Off-Chain Metadata (IPFS)
153
154```json
155{
156 "name": "NFT #1",
157 "description": "Description of the NFT",
158 "image": "ipfs://QmImageHash",
159 "attributes": [
160 {
161 "trait_type": "Background",
162 "value": "Blue"
163 },
164 {
165 "trait_type": "Rarity",
166 "value": "Legendary"
167 },
168 {
169 "trait_type": "Power",
170 "value": 95,
171 "display_type": "number",
172 "max_value": 100
173 }
174 ]
175}
176```
177
178### On-Chain Metadata
179
180```solidity
181contract OnChainNFT is ERC721 {
182 struct Traits {
183 uint8 background;
184 uint8 body;
185 uint8 head;
186 uint8 rarity;
187 }
188
189 mapping(uint256 => Traits) public tokenTraits;
190
191 function tokenURI(uint256 tokenId) public view override returns (string memory) {
192 Traits memory traits = tokenTraits[tokenId];
193
194 string memory json = Base64.encode(
195 bytes(
196 string(
197 abi.encodePacked(
198 '{"name": "NFT #', Strings.toString(tokenId), '",',
199 '"description": "On-chain NFT",',
200 '"image": "data:image/svg+xml;base64,', generateSVG(traits), '",',
201 '"attributes": [',
202 '{"trait_type": "Background", "value": "', Strings.toString(traits.background), '"},',
203 '{"trait_type": "Rarity", "value": "', getRarityName(traits.rarity), '"}',
204 ']}'
205 )
206 )
207 )
208 );
209
210 return string(abi.encodePacked("data:application/json;base64,", json));
211 }
212
213 function generateSVG(Traits memory traits) internal pure returns (string memory) {
214 // Generate SVG based on traits
215 return "...";
216 }
217}
218```
219
220## Royalties (EIP-2981)
221
222```solidity
223import "@openzeppelin/contracts/interfaces/IERC2981.sol";
224
225contract NFTWithRoyalties is ERC721, IERC2981 {
226 address public royaltyRecipient;
227 uint96 public royaltyFee = 500; // 5%
228
229 constructor() ERC721("Royalty NFT", "RNFT") {
230 royaltyRecipient = msg.sender;
231 }
232
233 function royaltyInfo(uint256 tokenId, uint256 salePrice)
234 external
235 view
236 override
237 returns (address receiver, uint256 royaltyAmount)
238 {
239 return (royaltyRecipient, (salePrice * royaltyFee) / 10000);
240 }
241
242 function setRoyalty(address recipient, uint96 fee) external onlyOwner {
243 require(fee <= 1000, "Royalty fee too high"); // Max 10%
244 royaltyRecipient = recipient;
245 royaltyFee = fee;
246 }
247
248 function supportsInterface(bytes4 interfaceId)
249 public
250 view
251 override(ERC721, IERC165)
252 returns (bool)
253 {
254 return interfaceId == type(IERC2981).interfaceId ||
255 super.supportsInterface(interfaceId);
256 }
257}
258```
259
260## Additional patterns and templates
261
262More detailed templates and worked examples live in references/details.md. Read that file for the full pattern library.
263
264
In the file
SKILL.md712 words
Files2
LicenceMIT
Why you can read it

Nothing in a skill executes. The client loads the text and the model follows it, so a skill can be audited the way a runbook is — by reading it.

What it costs in context

Skills are not billed by the call. They are paid for in context: every token the instructions occupy is a token your code, your diff and your conversation cannot use. Here is what this one takes and when it takes it.

≈70
always loaded
The name and description, so the model knows the skill exists and when to reach for it.
2,480
on trigger
The instruction body and 1 supporting file, read only when the skill fires.
1.3%
of a 200k window
Ten skills this size would take about 13% of the window before you open a file.
050k100k150k200k context window

2.5k tokens, estimated from the bundle at four bytes to the token, held for the rest of the session once it triggers. Middling. Fine to keep on in a project where you use it weekly, worth unloading in one where you never do.

Servers bill, skills cost

A server charges by the month. A skill charges once per session, in context, and then keeps charging it for as long as the session lives.

Before and after

The same question, put to the same model twice: once as it comes, and once with these instructions loaded.

No worked example has been published for this skill yet.

Adoption
Installsnone yet
Ratingno reviews yet

The procedure it runs

The procedure has not been published here. It is in the skill’s own SKILL.md, which its author has not sent to the marketplace yet.

Prose, not code

These steps are written for a model to follow, not executed by a runtime. It can still be told to skip one, and it will say so when it does.

Servers it uses

None. This skill calls no MCP servers at all.

Everything it needs is in the instructions, so it works in a project with nothing connected — the model reads the file and changes how it works with what it can already reach.

It writes no files and reaches no network. All it changes is how the model reasons and writes.

What it asks for
Writes filesno
Network accessno

Read from the allowed-tools line of this skill’s own SKILL.md. A skill grants no permissions of its own — it can only ask for tools your client already has.

What it will not do

Every skill is narrow, and the useful ones say where they stop. These are the jobs this one is the wrong tool for.

What this skill is not for has not been published here. Nothing is implied by that: it is a section the author has not filled in.

What is in the bundle

2 files, 10.2 kB on disk. A bundle is text throughout: the instructions the model reads, plus the templates it fills in.

  • SKILL.md7.6 kB
  • references/details.md2.6 kB
What is not in it

No dependencies and nothing executable: a skill is text the agent reads, so the bundle is 2 files you can review in full before installing. The MIT licence covers the templates and examples as well as the instructions.

Install

Installing copies the bundle into your project. Nothing runs at install time — the files sit on disk until the model reads them.

$39 once
NFT Standards · MIT · wshobson
one-time
Price$39 once
LicenceMIT — the author’s, unchanged by this purchase
Paid throughStripe, once, on the card you add at the checkout
Keeps workingfor good — the files are yours once they are on disk
Updatesevery update its author ships, delivered through this account

You can read the whole bundle before paying — the SKILL.md above is the product, not a preview of it. What the money buys is the delivery: the folder packaged and handed to your machine by key, every update its author ships, and our support if it does not do what this listing says. The terms of use are MIT, set by the author and unchanged by buying it here.

Payment runs through Stripe, on a page like this one rather than a redirect. Once there is an account it joins the same mcprush invoice as everything else you run, so there is never a second card to enter.

Which clients pick it up on their own

A skill is a folder of text. A client with a skills folder reads it without being told; everywhere else the same text works, it is just handed to the model rather than found.

Claude Code.claude/skills/
Claude Desktop
ChatGPT
Cursor.cursor/skills/
VS Code.github/skills/
Codex CLI.agents/skills/
Gemini CLI.gemini/skills/
Grok.grok/skills/
Zed.agents/skills/
Windsurf.windsurf/skills/
Agent SDK.claude/skills/
HTTP / API
This release
Versionnot versioned
Publishedno release date on file
Price$39
Referencewshobson/nft-standards

Versions

Its author publishes no version number, so there is nothing here to pin to: what you install is the folder as it stands today. Instructions change more often than APIs do — a skill can be rewritten entirely without anything it depends on moving.

v
  • No earlier releases have been published to the marketplace.
Pinning

Nothing to pin to: this skill carries no version number of its own. What you install is what the folder holds on the day you install it.

Reviews

no reviews yet · no installs yet

Nobody has reviewed this skill yet. The rating is the mean of the reviews written here, so there is none until somebody writes the first.

Who can post

Only accounts that have had the skill installed for fourteen days, so a review is written after living with it rather than after reading it. Publishers may reply once.

Publisher
Servers0