Calculate NFT rarity scores and rank tokens by trait uniqueness. Use when analyzing NFT collections, checking token rarity, or comparing NFTs. Trigger with phrases like "check NFT rarity", "analyze collection", "rank tokens", "compare NFTs".
Install with Tessl CLI
npx tessl i github:jeremylongshore/claude-code-plugins-plus-skills --skill analyzing-nft-rarity88
Does it follow best practices?
If you maintain this skill, you can automatically optimize it using the tessl CLI to improve its score:
npx tessl skill review --optimize ./path/to/skillValidation for skill structure
NFT rarity analysis skill that:
OPENSEA_API_KEY for higher rate limitsALCHEMY_API_KEY for direct metadata fetchingcd {baseDir}/scripts && python3 rarity_analyzer.py collection boredapeyachtclubOptions:
--limit 500: Fetch more tokens for analysis--top 50: Show top 50 tokens--traits: Include trait distribution--rarest: Show rarest traits--algorithm [statistical|rarity_score|average|information]cd {baseDir}/scripts && python3 rarity_analyzer.py token pudgypenguins 1234cd {baseDir}/scripts && python3 rarity_analyzer.py compare azuki 1234,5678,9012cd {baseDir}/scripts && python3 rarity_analyzer.py traits doodlesJSON:
cd {baseDir}/scripts && python3 rarity_analyzer.py export coolcats > rankings.jsonCSV:
cd {baseDir}/scripts && python3 rarity_analyzer.py export coolcats --format csv > rankings.csvcd {baseDir}/scripts && python3 rarity_analyzer.py cache --list
cd {baseDir}/scripts && python3 rarity_analyzer.py cache --clear| Algorithm | Description | Best For |
|---|---|---|
rarity_score | Sum of 1/frequency (default) | General use, matches rarity.tools |
statistical | Same as rarity_score | Backward compatibility |
average | Mean of trait rarities | Balanced scoring |
information | Entropy-based (-log2) | Information theory approach |
Works with any ERC-721/ERC-1155 collection that has:
See {baseDir}/references/errors.md for:
See {baseDir}/references/examples.md for:
22fc789
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.