jeremylongshore/tons-of-skills-marketplace / plugins/crypto/nft-rarity-analyzer/skills/analyzing-nft-rarity
analyzing-nft-rarity
VerifiedCalculate 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".
| File | Kind | Size |
|---|---|---|
| ARD.md | markdown | 5.3 KB |
| PRD.md | markdown | 2.7 KB |
| SKILL.md | skill md | 3.5 KB |
| config/settings.yaml | config | 1.9 KB |
| references/errors.md | markdown | 3.2 KB |
| references/examples.md | markdown | 6.2 KB |
| references/implementation.md | markdown | 1.5 KB |
| scripts/formatters.py | script | 8.5 KB |
| scripts/metadata_fetcher.py | script | 11.8 KB |
| scripts/rarity_analyzer.py | script | 11.6 KB |
| scripts/rarity_calculator.py | script | 11.6 KB |
| scripts/trait_parser.py | script | 9.9 KB |
config/settings.yaml
View on GitHub# NFT Rarity Analyzer Configuration
# Author: Jeremy Longshore <jeremy@intentsolutions.io>
# Version: 1.0.0
# Default settings
defaults:
algorithm: rarity_score # statistical, rarity_score, average, information
limit: 200 # Max tokens to fetch
top: 20 # Top N tokens to display
normalize: false # Normalize scores to 0-100
# API Configuration
api:
# OpenSea API (from environment: OPENSEA_API_KEY)
opensea:
base_url: https://api.opensea.io/api/v2
rate_limit: 4 # requests per second
timeout: 30
# Alchemy API (from environment: ALCHEMY_API_KEY)
alchemy:
base_url: https://eth-mainnet.g.alchemy.com/nft/v2
rate_limit: 20
timeout: 30
# IPFS Gateways (in order of preference)
ipfs_gateways:
- https://ipfs.io/ipfs/
- https://gateway.pinata.cloud/ipfs/
- https://cloudflare-ipfs.com/ipfs/
- https://dweb.link/ipfs/
# Cache settings
cache:
directory: ~/.nft_cache
collection_ttl: 3600 # 1 hour
token_ttl: 86400 # 24 hours
max_size_mb: 100 # Max cache size
# Rarity Algorithms
algorithms:
statistical:
name: "Statistical Rarity"
description: "Sum of 1/frequency for each trait"
rarity_score:
name: "Rarity Score"
description: "Classic rarity.tools style scoring"
average:
name: "Average Rarity"
description: "Mean of trait rarities"
information:
name: "Information Content"
description: "Entropy-based (-log2 frequency)"
# Output formatting
output:
table_width: 80
percentage_decimals: 2
score_decimals: 4
# Trait handling
traits:
# Treat missing traits as "None"
missing_as_none: true
# Display types to skip (numeric/boost traits)
skip_display_types:
- number
- boost_number
- boost_percentage
# Normalize trait values
normalize_values: true
# Logging
logging:
level: INFO
format: "%(asctime)s - %(levelname)s - %(message)s"
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |