Back to Skills

analyzing-nft-rarity

verified

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

View on GitHub

Marketplace

claude-code-plugins-plus

jeremylongshore/claude-code-plugins-plus-skills

Plugin

nft-rarity-analyzer

crypto

Repository

jeremylongshore/claude-code-plugins-plus-skills
1.1kstars

plugins/crypto/nft-rarity-analyzer/skills/analyzing-nft-rarity/SKILL.md

Last Verified

January 22, 2026

Install Skill

Select agents to install to:

Scope:
npx add-skill https://github.com/jeremylongshore/claude-code-plugins-plus-skills/blob/main/plugins/crypto/nft-rarity-analyzer/skills/analyzing-nft-rarity/SKILL.md -a claude-code --skill analyzing-nft-rarity

Installation paths:

Claude
.claude/skills/analyzing-nft-rarity/
Powered by add-skill CLI

Instructions

# Analyzing NFT Rarity

## Overview

NFT rarity analysis skill that:
- Fetches collection metadata from OpenSea API
- Parses and normalizes trait attributes
- Calculates rarity using multiple algorithms
- Ranks tokens by composite rarity score
- Exports data in JSON and CSV formats

## Prerequisites

- Python 3.8+ with requests library
- Optional: `OPENSEA_API_KEY` for higher rate limits
- Optional: `ALCHEMY_API_KEY` for direct metadata fetching

## Instructions

### 1. Analyze a Collection

```bash
cd {baseDir}/scripts && python3 rarity_analyzer.py collection boredapeyachtclub
```

Options:
- `--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]`

### 2. Check Specific Token

```bash
cd {baseDir}/scripts && python3 rarity_analyzer.py token pudgypenguins 1234
```

### 3. Compare Multiple Tokens

```bash
cd {baseDir}/scripts && python3 rarity_analyzer.py compare azuki 1234,5678,9012
```

### 4. View Trait Distribution

```bash
cd {baseDir}/scripts && python3 rarity_analyzer.py traits doodles
```

### 5. Export Rankings

JSON:
```bash
cd {baseDir}/scripts && python3 rarity_analyzer.py export coolcats > rankings.json
```

CSV:
```bash
cd {baseDir}/scripts && python3 rarity_analyzer.py export coolcats --format csv > rankings.csv
```

### 6. Manage Cache

```bash
cd {baseDir}/scripts && python3 rarity_analyzer.py cache --list
cd {baseDir}/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

- **Collection Summary**: Name, 

Validation Details

Front Matter
Required Fields
Valid Name Format
Valid Description
Has Sections
Allowed Tools
Instruction Length:
2823 chars