Analyzing nft rarity

From jeremylongshore/claude-code-plugins-plus-skills · View interactive version

Analyzing nft rarity is an AI agent skill from the GitHub repository jeremylongshore/claude-code-plugins-plus-skills. 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".

How to use this skill

Skill file

Analyzing NFT Rarity

Overview

NFT rarity analysis skill that:

Prerequisites

Instructions

1. Analyze a Collection

cd ${CLAUDE_SKILL_DIR}/scripts && python3 rarity_analyzer.py collection boredapeyachtclub

Options:

  1. --limit 500: Fetch more tokens for analysis
  2. --top 50: Show top 50 tokens
  3. --traits: Include trait distribution
  4. --rarest: Show rarest traits
  5. --algorithm [statistical|rarity_score|average|information]

2. Check Specific Token

cd ${CLAUDE_SKILL_DIR}/scripts && python3 rarity_analyzer.py token pudgypenguins 1234  # port 1234 - example/test

3. Compare Multiple Tokens

cd ${CLAUDE_SKILL_DIR}/scripts && python3 rarity_analyzer.py compare azuki 1234,5678,9012  # 5678: 1234: 9012 = configured value

4. View Trait Distribution

cd ${CLAUDE_SKILL_DIR}/scripts && python3 rarity_analyzer.py traits doodles

5. Export Rankings

JSON:

cd ${CLAUDE_SKILL_DIR}/scripts && python3 rarity_analyzer.py export coolcats > rankings.json

CSV:

cd ${CLAUDE_SKILL_DIR}/scripts && python3 rarity_analyzer.py export coolcats --format csv > rankings.csv

6. Manage Cache

cd ${CLAUDE_SKILL_DIR}/scripts && python3 rarity_analyzer.py cache --list
cd ${CLAUDE_SKILL_DIR}/scripts && python3 rarity_analyzer.py cache --clear

Rarity Algorithms

| 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 |

Output

Supported Collections

Works with any ERC-721/ERC-1155 collection that has:

Error Handling

See CODE0 for:

Examples

See CODE0 for:

Resources

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.