Index of every page on this site: llms.txt
All skills
jeremylongshore avatar

/analyzing-nft-rarity

@820dfc8
Run it yourself

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

Use this Skill: https://skilld.dev/gh/jeremylongshore/tons-of-skills-marketplace/analyzing-nft-rarity

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

PRD.md

≈691 tokens on demand. Your agent reads this file only when SKILL.md points to it.

PRD: NFT Rarity Analyzer

Summary

One-liner: Analyze NFT collections to calculate trait rarity scores and rank tokens by uniqueness.

Domain: Cryptocurrency / NFT / Digital Collectibles

Users: NFT Collectors, Traders, Analysts, Developers

Problem Statement

NFT collectors need to quickly assess rarity to make informed buying decisions. Manual trait analysis is time-consuming and error-prone. Existing tools are often expensive, require accounts, or lack transparency in their scoring methods.

User Stories

  1. As an NFT collector, I want to check rarity scores for tokens in a collection, so that I can identify undervalued pieces.

  2. As an NFT trader, I want to compare multiple tokens by rarity rank, so that I can make data-driven purchase decisions.

  3. As a collection creator, I want to analyze my collection's trait distribution, so that I can ensure balanced rarity across items.

  4. As an analyst, I want to export rarity data for further analysis, so that I can create custom rarity models.

Functional Requirements

  • REQ-1: Fetch NFT collection metadata from OpenSea, Alchemy, or direct contract
  • REQ-2: Parse and normalize trait attributes across collection
  • REQ-3: Calculate trait rarity using statistical frequency analysis
  • REQ-4: Compute composite rarity scores using multiple algorithms
  • REQ-5: Rank tokens within collection by rarity
  • REQ-6: Display trait breakdown with rarity percentages
  • REQ-7: Support ERC-721 and ERC-1155 token standards
  • REQ-8: Cache collection data for performance
  • REQ-9: Export rarity data in JSON and CSV formats

Rarity Algorithms

Rarity Score / Statistical Rarity

Score = sum(1 / trait_frequency) for each trait

Both statistical and rarity_score use this formula - they are equivalent in the implementation.

Average Rarity

Score = sum(trait_rarities) / trait_count

Information Content

Score = sum(-log2(trait_frequency)) (higher = rarer)

Score Normalization (Post-processing)

After calculating scores, they can be normalized to 0-100 scale: normalized = (score - min_score) / (max_score - min_score) * 100

API Integrations

  • OpenSea API: Collection metadata, token traits
  • Alchemy NFT API: Fast metadata fetching
  • Ethereum RPC: Direct tokenURI reads
  • IPFS Gateway: Metadata from decentralized storage

Success Metrics

  • Activation triggers on NFT rarity queries
  • Accurate rarity rankings match established tools
  • Fast analysis (<5s for cached collections)
  • Support for collections up to 20,000 items

Non-Goals

  • Price predictions based on rarity
  • Automated trading or sniping
  • Collection indexing from scratch
  • Real-time floor price tracking

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning2mo3 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    The skill is a functional tool for NFT rarity analysis that fetches metadata from well-known services. It has a low-severity risk surface for indirect prompt injection due to external data ingestion, and its documentation contains minor inconsistencies regarding tool requirements and configuration.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: MEDIUM · 1 issue

Signed by skilld at 820dfc8. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated last month
What it can do
Reads files Runs commands
version
1.26.0
author
Jeremy Longshore <jeremy@intentsolutions.io>
tags
[
  "crypto",
  "analyzing-nft"
]
All 2 allowed tools
ReadBash(python3:*)
Other metadata
compatibility
Designed for Claude Code

README badge

README badge for jeremylongshore/tons-of-skills-marketplace/analyzing-nft-rarity