Skip to content
llama-analyst logo

Llama Analyst

llama-analyst

DeFi fundamentals and cross-chain analytics using DefiLlama-style data. Use when you want to find undervalued protocols, screen by TVL/revenue growth vs token price, compare sectors, or run data-driven crypto research beyond pure memes.

SKILL.md

Full skill instructions

Llama Analyst - Fundamentals & Data-Driven Crypto Research

Inspired by tools like LlamaAI (Dynamo DeFi walkthrough), this skill focuses on systematic, data-first crypto investing instead of pure narrative or meme trading.

Activation Triggers

Use this skill when:

  • You ask for undervalued protocols or tokens with:
    • Growing TVL or revenue
    • Flat or declining token price
  • You want sector or protocol screens, such as:
    • Top DEXs by revenue/​TVL
    • Perps with fastest revenue growth
    • Chains with rising DeFi inflows
  • You request macro DeFi analytics:
    • Flows of SOL/​BTC/​ETH into DeFi over time
    • Comparing ecosystems (Solana vs Ethereum vs L2s)
    • Yield pool scans by APR, risk, and stickiness
  • You need data-backed theses, not just narratives.

Core Capabilities

1. Protocol Screening & Ranking

  • Screen protocols by combinations of:
    • TVL level and TVL growth (absolute and %)
    • Revenue and revenue growth
    • Revenue efficiency (revenue / TVL)
    • Token price performance vs fundamentals
  • Identify:
    • Protocols with rising TVL/​revenue but lagging price
    • Protocols with strong fundamentals but low narrative attention
    • Overheated names (price up much more than fundamentals).

2. Sector & Ecosystem Analytics

  • Compare:
    • DEXs, perps, lending, LSDs, RWAs, restaking, etc.
    • Revenue and TVL distribution across sectors.
  • Analyze:
    • Which sectors are gaining or losing share
    • Which chains are capturing incremental DeFi TVL and fees
    • Rotations over time (e.g., from L1s to perps, from DeFi to memes).

3. Flow & Macro Views

  • Map flows of:
    • SOL/​BTC/​ETH and stablecoins into and out of DeFi.
    • Capital rotations between chains and sectors.
  • Use this to:
    • Gauge risk-on vs risk-off environment
    • Inform when to size up or down meme/​degen activity
    • Align trade direction with macro DeFi flows.

4. Output Formatting

  • Default outputs:
    • Ranked tables (Markdown) of protocols or sectors
    • Summary bullets explaining why certain names stand out
    • Checklists of conditions met (e.g., “TVL ↑, revenue ↑, price ↓”)
  • When asked, can:
    • Emulate simple charts via tables (TVL vs revenue, flows over time)
    • Produce prompt-ready descriptions for external tools (e.g., LlamaAI UI).

Example Queries This Skill Should Own

  • “Find me 10 protocols with growing revenue and TVL but flat token price.”
  • “Which Solana DeFi protocols have the best revenue/​TVL ratios right now?”
  • “Show top 20 DEXs by revenue and flag those whose tokens haven’t moved yet.”
  • “Compare perps revenue on Solana vs Ethereum vs Base over the last 90 days.”
  • “Where is SOL flowing in DeFi – which protocols/​chains are capturing deposits?”

Integration with Existing Agents

  • crypto-expert: uses this skill for:
    • Deep protocol due diligence and economic modeling
    • Cross-chain and cross-sector comparisons
    • Backing theses with TVL/​revenue/​flows data.
  • flow-tracker: complements wallet-level flow data with:
    • Protocol-level TVL and revenue trends
    • Sector rotation context.
  • degen-savant: balances narrative signals with:
    • Which narratives are supported by real fundamentals.
  • meme-trader / meme-executor:
    • Use outputs from this skill to size the “core/​fundamentals” book
    • Keep degen trades sized relative to fundamentals-backed allocations.

Safety & Quality Gates

  • Always:
    • State data sources (e.g., "Based on DefiLlama metrics as of [date]").
    • Note data lag or uncertainty when relevant.
    • Separate facts (TVL/​revenue numbers) from interpretation (thesis).
  • Never:
    • Present a thesis without showing the underlying metrics.
    • Call anything "risk-free" or "safe" – only relative risk.

Predictive Analytics Framework

<predictive_analytics> AI/​ML Capabilities for Fundamentals:

1. TVL Momentum Prediction

interface TVLPrediction {
  protocol: string;
  current_tvl: number;
  predicted_tvl_7d: number;
  predicted_tvl_30d: number;
  confidence: number;
  features_used: string[];
  model: 'lstm' | 'arima' | 'ensemble';
}

Signals Generated:

  • TVL inflection point detection (bottom/​top)
  • Acceleration/​deceleration of flows
  • Anomalous TVL movements (whale inflows)

2. Revenue-to-Price Divergence Detector

interface DivergenceSignal {
  protocol: string;
  revenue_growth_90d: number;
  price_change_90d: number;
  divergence_score: number;  // Positive = undervalued
  similar_historical_cases: HistoricalCase[];
  expected_catch_up: number;  // % price move to close gap
}

Detection Logic:

Divergence Score = (Revenue Growth % - Price Change %) * Correlation Factor
If Divergence > 50: Strong undervaluation signal
If Divergence < -50: Strong overvaluation signal

3. Sector Rotation Predictor

interface SectorRotation {
  from_sector: string;
  to_sector: string;
  flow_volume: number;
  rotation_strength: number;  // 0-1
  time_horizon: '1w' | '1m' | '3m';
  confidence: number;
}

Indicators Used:

  • Cross-sector TVL flows
  • Revenue share changes
  • New protocol launches by sector
  • Social/​narrative momentum by sector

4. Protocol Health Score (ML-Generated)

interface ProtocolHealthScore {
  protocol: string;
  overall_score: number;  // 0-100
  components: {
    growth_score: number;      // TVL + revenue growth
    efficiency_score: number;  // Revenue/​TVL ratio
    stability_score: number;   // Volatility, consistency
    adoption_score: number;    // User growth, retention
    risk_score: number;        // Concentration, dependencies
  };
  trend: 'improving' | 'stable' | 'declining';
  alerts: string[];
}

Output Format:

PROTOCOL HEALTH: Raydium
══════════════════════════════

OVERALL SCORE: 78/​100 (↑ +5 from 30d ago)

COMPONENTS:
├─ Growth: 82/​100 (TVL +15%, revenue +22%)
├─ Efficiency: 75/​100 (0.8% rev/​TVL, above median)
├─ Stability: 71/​100 (moderate volatility)
├─ Adoption: 85/​100 (users +18%, retention 65%)
└─ Risk: 79/​100 (diversified, no concentration)

TREND: IMPROVING
├─ Revenue outpacing TVL growth
├─ User retention above sector average
├─ No concerning dependencies detected

ML PREDICTION:
├─ 30d TVL: +8-12% (confidence: 72%)
├─ 30d Revenue: +15-20% (confidence: 68%)
└─ Divergence Status: UNDERVALUED (price lagging fundamentals)

SIMILAR PROTOCOLS HISTORICALLY:
When protocols showed this pattern, 70% saw
price appreciation of 40-80% within 60 days.

</​predictive_analytics>

Continuous Learning & Adaptation

<adaptive_learning> Model Performance Tracking:

interface ModelPerformance {
  model_id: string;
  predictions_made: number;
  accuracy_30d: number;
  accuracy_90d: number;
  last_retrained: Date;
  data_quality_score: number;
}

Adaptation Triggers:

  1. Accuracy Drift: Retrain if 30d accuracy < 60%
  2. Regime Change: Detect market regime shift, adjust weights
  3. New Data Source: Incorporate and validate new inputs
  4. Outlier Events: Flag black swans, exclude from training

Feedback Loop:

Prediction → Outcome Tracked → Error Analysis
     ↑                              ↓
Model Weights Updated ← Feature Importance Review

Weekly Model Review:

  • Compare predicted vs actual TVL/​revenue
  • Identify systematic biases
  • Update feature weights
  • Add/​remove features based on importance </​adaptive_learning>

Data Pipeline Integration

<data_pipeline> Data Sources (via data-orchestrator):

SourceData TypeUpdate FrequencyQuality
DefiLlama APITVL, revenue, yields15 min92/​100
Dune AnalyticsCustom queriesHourly90/​100
Token TerminalRevenue, P/​EDaily95/​100
Chain-specific RPCsReal-time metricsReal-time98/​100

Data Quality Requirements:

  • TVL data: 15-min freshness, 95% completeness
  • Revenue data: Daily freshness, 90% completeness
  • Historical data: 99% completeness for ML training
  • Cross-source verification required for alerts

Pipeline Architecture:

DefiLlama → Validation → Enrichment → Feature Store → ML Models
     ↓                                      ↓
   Cache ←───────── API Response ←──── Predictions

</​data_pipeline>

Advanced Screening Queries

<screening_queries> Pre-built ML-Enhanced Screens:

# Find undervalued protocols (ML divergence detector)
npx tsx .claude/​skills/​llama-analyst/​scripts/​screener.ts \
  --screen divergence_undervalued \
  --min-tvl 10000000 \
  --sector defi

# Predict sector rotation
npx tsx .claude/​skills/​llama-analyst/​scripts/​screener.ts \
  --screen sector_rotation \
  --lookback 30d \
  --prediction-horizon 7d

# Protocol health ranking
npx tsx .claude/​skills/​llama-analyst/​scripts/​screener.ts \
  --screen health_score \
  --top 20 \
  --sort-by overall_score

# TVL momentum detection
npx tsx .claude/​skills/​llama-analyst/​scripts/​screener.ts \
  --screen tvl_momentum \
  --threshold inflection \
  --chain solana

Custom Query Builder:

interface ScreenerQuery {
  filters: {
    min_tvl?: number;
    max_tvl?: number;
    min_revenue_growth?: number;
    sectors?: string[];
    chains?: string[];
  };
  sort_by: 'health_score' | 'divergence' | 'tvl_growth' | 'revenue_efficiency';
  ml_enhancements: {
    include_predictions: boolean;
    include_health_score: boolean;
    include_similar_cases: boolean;
  };
  limit: number;
}

</​screening_queries>

CLI Usage

# Get protocol health score
npx tsx .claude/​skills/​llama-analyst/​scripts/​health-score.ts \
  --protocol raydium \
  --include-prediction

# Run divergence analysis
npx tsx .claude/​skills/​llama-analyst/​scripts/​divergence.ts \
  --lookback 90d \
  --min-divergence 30

# Sector rotation analysis
npx tsx .claude/​skills/​llama-analyst/​scripts/​sector-rotation.ts \
  --timeframe 30d \
  --predict-horizon 7d

# Full fundamentals report
npx tsx .claude/​skills/​llama-analyst/​scripts/​full-report.ts \
  --protocol jupiter \
  --include-ml \
  --format detailed

<see_also>

  • references/​ml-models.md - Model specifications
  • references/​feature-catalog.md - Available features
  • scripts/​health-score.ts - Health score calculator
  • scripts/​divergence.ts - Price/​fundamentals divergence
  • scripts/​sector-rotation.ts - Rotation predictor </​see_also>

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View