tokens-xyz-skill
v1.0.4
Published
Tokens.xyz Asset Intelligence skill for Claude Code
Maintainers
Readme
tokens-xyz-skill
Token intelligence for the Solana AI Kit — powered by the Tokens.xyz API v1.
Gives any coding agent canonical token data, risk scores, OHLCV charts, trending mints, and curated asset lists (LSTs, RWAs, tokenized stocks, ETFs) — all resolved through a single, well-maintained API.
The Problem This Solves
Every Solana app needs to answer the same questions:
- What is this mint? → resolve to a canonical identity, not just a raw address
- Is this token safe? → risk score, honeypot flags, trust tier, mint/freeze authority checks
- What's it worth? → price, 24h volume, 30d volume, order book depth
- What's trending? → real momentum signals, not just volume rank
- Give me all the LSTs / RWAs / tokenized stocks → curated, maintained lists with liquidity tiers
No existing skill in the Solana AI Kit solves this. Helius covers infrastructure. Jupiter covers routing. Neither gives you canonical asset intelligence with risk scoring, curated categories, and canonical price data for real-world assets.
What's Included
tokens-xyz-skill/
├── CLAUDE.md # Root config — tells Claude to load skill/SKILL.md
├── README.md # This file
├── LICENSE # MIT
├── package.json
│
├── skill/
│ ├── SKILL.md # Entry point — routing table + setup guide
│ ├── token-research.md # Search, resolve, asset detail, variants
│ ├── risk-scoring.md # Risk summary, risk details, batch risk check
│ ├── market-data.md # OHLCV, price chart, trending, markets
│ ├── curated-lists.md # Majors, LSTs, RWAs, stocks, ETFs, metals
│ ├── batch-ops.md # Batch market snapshots, variant markets
│ └── error-handling.md # Status codes, retry patterns, request IDs
│
├── commands/
│ ├── token-check.md # /token-check <mint-or-ticker>
│ └── portfolio-risk-scan.md # /portfolio-risk-scan <walletAddress>
│
├── agents/
│ └── token-intelligence.md # Specialized agent for token Q&A
│
└── rules/
└── api-key-safety.md # Never hardcode, always env, gitignore rulesPrerequisite: Tokens.xyz API Key
You need an API key before anything works.
- Go to tokens.xyz and request API access
- Once approved, copy your key from the API Manager dashboard
- Add it to your project's
.envfile:
# .env ← never commit this file
TOKENS_XYZ_API_KEY=your_key_here- Load it in your app:
// Node.js (with dotenv)
import "dotenv/config";
const key = process.env.TOKENS_XYZ_API_KEY;# Python (with python-dotenv)
from dotenv import load_dotenv
import os
load_dotenv()
key = os.environ["TOKENS_XYZ_API_KEY"]Never hardcode the key, include it in frontend bundles, or commit it to git. Always call the Tokens API from the server and proxy responses to the browser.
Installation
Option 1 — npx (recommended)
Run the interactive installer without adding a dependency to your project:
npx tokens-xyz-skillThe installer will ask which agent you are using:
Which agent are you installing for?
1) Claude Code
2) Codex
3) Cursor
4) Other / CustomBased on your choice it will:
- Install skill files to the right directory for your agent
- Register the skill in the correct config file (
CLAUDE.md,AGENTS.md, or.cursor/rules/) - Create a
.envstub withTOKENS_XYZ_API_KEY=your_key_here - Add
.enventries to.gitignoreto protect your key
Agent config locations:
| Agent | Skill files | Config file |
| ----------- | ------------------------------------ | ----------------------------------- |
| Claude Code | ~/.claude/skills/tokens-xyz-skill/ | ~/.claude/CLAUDE.md |
| Codex | ~/.agents/skills/tokens-xyz-skill/ | ~/.agents/AGENTS.md |
| Cursor | .cursor/skills/tokens-xyz-skill/ | .cursor/rules/tokens-xyz-skill.md |
| Other | custom path | custom filename |
Option 2 — Install globally via npm
npm install -g tokens-xyz-skill
tokens-xyz-skillRun tokens-xyz-skill once after installing to trigger the setup wizard.
Option 3 — Non-interactive (CI / scripts)
Defaults to Claude Code and uses the default install path:
npx tokens-xyz-skill --yesOption 4 — Into the Solana AI Kit (git submodule)
cd your-solana-ai-kit
git submodule add https://github.com/ahmadou5/tokens-xyz-skill .claude/skills/tokens-xyzThen reference it in your root CLAUDE.md:
## Skills
- `.claude/skills/tokens-xyz/skill/SKILL.md` — Tokens.xyz asset intelligenceManual Registration
If you skipped the installer or are managing your agent config yourself, add the entry point manually.
Claude Code — append to ~/.claude/CLAUDE.md:
## Tokens.xyz Skill
Skill for Tokens.xyz asset intelligence.
Entry point: `~/.claude/skills/tokens-xyz-skill/skill/SKILL.md`Codex — append to ~/.agents/AGENTS.md:
## Tokens.xyz Skill
Skill for Tokens.xyz asset intelligence.
Entry point: `~/.agents/skills/tokens-xyz-skill/skill/SKILL.md`Cursor — create .cursor/rules/tokens-xyz-skill.md:
# Tokens.xyz Skill
Skill for Tokens.xyz asset intelligence.
Entry point: `.cursor/skills/tokens-xyz-skill/skill/SKILL.md`Adjust paths to match where the skill was installed.
Usage Examples
Once installed, your agent understands these requests:
"What is this mint: EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v?"
→ Resolves → USDC → canonical assetId "usd" → full profile + risk
"Is this token safe to list in our DEX UI?"
→ Risk score, trust tier, freeze/mint authority flags
"Show me all tokenized stocks on Solana"
→ Curated list=stocks, sorted by redeemability
"What's trending right now?"
→ Top 20 trending mints by momentum
"Scan this wallet for risky tokens"
→ Batch snapshot → risk-tier all tokens → flag honeypotsSlash commands:
/token-check solana
/token-check EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
/portfolio-risk-scan 7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsUSkill Design: Progressive Loading
The skill is structured so your agent only loads what it needs. The entry point (skill/SKILL.md) contains a routing table — the agent reads one sub-skill file per task, not all of them. This keeps token usage low and context focused.
Cross-Skill Integrations
| Pair with | Why |
| ------------------------ | ---------------------------------------------------------- |
| position-manager-skill | Canonical price-chart data for CLMM position tracking |
| solana-auditor-skill | Risk flags to feed into security reports |
| helius-labs/core-ai | Token account fetching + Tokens.xyz for asset intelligence |
| jup-ag/agent-skills | Route swaps to the deepest market from Tokens.xyz |
API Reference
Full docs: docs.tokens.xyz/v1/quickstart
Base URL: https://api.tokens.xyz/v1
Auth: x-api-key: ${TOKENS_XYZ_API_KEY}
Core endpoints used by this skill:
| Endpoint | Purpose |
| -------------------------------- | --------------------------------- |
| GET /assets/search | Token search / autocomplete |
| GET /assets/resolve | Mint or alias → canonical assetId |
| GET /assets/{id} | Full asset detail with includes |
| GET /assets/{id}/variants | All token variants |
| GET /assets/{id}/risk-summary | Risk score + flags |
| GET /assets/{id}/risk-details | Full risk breakdown |
| GET /assets/{id}/ohlcv | Price candles |
| GET /assets/{id}/price-chart | Canonical price chart |
| GET /assets/{id}/markets | Order book venues / pools |
| GET /assets/trending | Trending mints by momentum |
| GET /assets/curated | Curated lists by category |
| POST /assets/market-snapshots | Batch prices for up to 250 mints |
| GET /assets/variant-markets | Batch markets for up to 50 mints |
| GET /assets/risk-summary?mint= | Quick mint-scoped risk check |
License
MIT — see LICENSE
Submission for the Solana AI Kit skill bounty.
