flows-and-events
Guide for querying DeFi flow data and events using DefiLlama MCP tools. Covers bridge flows, ETF inflows/outflows, stablecoin supply, institutional/DAT holdings with mNAV ratios, hacks and exploits, fundraising rounds, CEX volumes, open interest, and protocol treasuries. Use when users ask about bridge volume, ETF flows, stablecoin supply, MicroStrategy holdings, DeFi hacks, funding rounds, exchange volume, or treasury data.
What this skill does
# DeFi Flows and Events ## Bridge Flows Tool: `defillama:get_bridge_flows` - Two-way bridge deduplication is applied automatically when aggregating - Grain: bridge x chain (one row per bridge per chain) - `inflows = deposit_amount - withdraw_amount` (pre-computed, positive = net inflow) - Params: `bridge`, `chain`, `period`, `start_date`, `end_date`, `sort_by`, `limit` ## ETF Flows Tool: `defillama:get_etf_flows` - `flow_usd` is **signed**: positive = inflow, negative = outflow - Filter by underlying: `token: "bitcoin"` for all BTC ETFs, `token: "ethereum"` for ETH ETFs - Use `etf` param to filter specific ETF (e.g., `"ibit"`, `"fbtc"`) - Current view shows latest day only. Use `period: "30d"` for historical. ## Stablecoin Supply Tool: `defillama:get_stablecoin_supply` - Supply = **issuance** on each chain, NOT DeFi deposits - Grain: stablecoin x chain (one row per stablecoin per chain) - Use `circulating_supply` (not `total_supply`) for supply queries - Filter by `peg_type` (usd, eur) - Params: `stablecoin`, `chain`, `peg_type`, `period`, `sort_by`, `limit` ## Institutional Holdings (DAT) Tool: `defillama:get_dat_holdings` - Tokens are automatically prefixed with `coingecko:` if not already (e.g., `token: "bitcoin"` works) - Base response: institution overview (total value, cost, mNAV ratios) - `include_history: true` adds historical holding snapshots - `include_mnav: true` adds mNAV time series - `transaction_type` filters history by transaction type (e.g., `"purchase"`, `"sale"`) **mNAV** (multiple of Net Asset Value) -- measures crypto exposure relative to market cap: - `realized_mnav`: conservative estimate - `realistic_mnav`: expected dilution - `max_mnav`: maximum dilution - mNAV > 1 means crypto holdings exceed the company's market cap attribution ## Hacks and Exploits Tool: `defillama:get_events` with `event_type: "hacks"` - Filter by `protocol` (victim slug), `chain` (uses `= ANY(chains)` for array column), `min_amount` - `returned_funds` shows how much was recovered after the hack - Use `sort_by: "amount desc"` for biggest hacks ## Fundraising Rounds Tool: `defillama:get_events` with `event_type: "raises"` - Filter by `protocol`, `chain` (uses `= ANY(chains)` for array column), `min_amount` - Use `sort_by: "amount desc"` for largest rounds ## Protocol Events Tool: `defillama:get_events` with `event_type: "protocol_events"` - Governance votes, upgrades, launches, and other protocol milestones - Additional filters: `target_type` (filter by target type), `sub_protocol` (filter by sub-protocol slug) ## CEX Volumes Tool: `defillama:get_cex_volumes` - CEX slugs differ from common names: binance -> `binance-cex`, huobi -> `htx`, gate.io -> `gate-io` - Params: `cex`, `period`, `sort_by`, `limit` ## Open Interest Tool: `defillama:get_open_interest` - Aggregates with SUM/GROUP BY for proper protocol-level totals - Params: `protocol`, `chain`, `period`, `start_date`, `end_date`, `sort_by`, `limit` ## Treasury Tool: `defillama:get_treasury` - Aggregates with SUM/GROUP BY for proper protocol-level totals - `treasury_excl_own_token` is the realistic value (excludes inflation of protocol's own token) - `treasury_total` includes own token (inflated value) - Params: `treasury`, `chain` (for per-chain breakdown), `period`, `start_date`, `end_date`, `sort_by`, `limit` ## Examples **Example 1:** User: "Bitcoin ETF flows this month" Tool call: `defillama:get_etf_flows(token: "bitcoin", period: "30d")` **Example 2:** User: "MicroStrategy bitcoin holdings" Tool call: `defillama:get_dat_holdings(institution: "microstrategy", token: "coingecko:bitcoin", include_history: true)` **Example 3:** User: "Biggest DeFi hacks in 2024" Tool call: `defillama:get_events(event_type: "hacks", sort_by: "amount desc", limit: 10, start_date: "2024-01-01", end_date: "2024-12-31")` **Example 4:** User: "USDT supply across chains" Tool call: `defillama:get_stablecoin_supply(stablecoin: "coingecko:tether", sort_by: "circulating_supply desc")` **Example 5:** User: "Top bridge volume this week" Tool call: `defillama:get_bridge_flows(period: "7d", sort_by: "volume desc", limit: 10)` **Example 6:** User: "Largest crypto fundraises this year" Tool call: `defillama:get_events(event_type: "raises", period: "365d", sort_by: "amount desc", limit: 20)` **Example 7:** User: "Binance trading volume" Tool call: `defillama:get_cex_volumes(cex: "binance-cex")` **Example 8:** User: "Uniswap treasury breakdown" Tool call: `defillama:get_treasury(treasury: "uniswap")` **Example 9:** User: "ETF flows in February 2025" Tool call: `defillama:get_etf_flows(token: "bitcoin", start_date: "2025-02-01", end_date: "2025-02-28")`
Related in AI Agents
skill-development
IncludedComprehensive meta-skill for creating, managing, validating, auditing, and distributing Claude Code skills and slash commands (unified in v2.1.3+). Provides skill templates, creation workflows, validation patterns, audit checklists, naming conventions, YAML frontmatter guidance, progressive disclosure examples, and best practices lookup. Use when creating new skills, validating existing skills, auditing skill quality, understanding skill architecture, needing skill templates, learning about YAML frontmatter requirements, progressive disclosure patterns, tool restrictions (allowed-tools), skill composition, skill naming conventions, troubleshooting skill activation issues, creating custom slash commands, configuring command frontmatter, using command arguments ($ARGUMENTS, $1, $2), bash execution in commands, file references in commands, command namespacing, plugin commands, MCP slash commands, Skill tool configuration, or deciding between skills vs slash commands. Delegates to docs-management skill for official documentation.
reprompter
IncludedTransform messy prompts into well-structured, effective prompts — single or multi-agent. Use when: "reprompt", "reprompt this", "clean up this prompt", "structure my prompt", rough text needing XML tags and best practices, "reprompter teams", "repromptception", "run with quality", "smart run", "smart agents", multi-agent tasks, audits, parallel work, anything going to agent teams. Don't use when: simple Q&A, pure chat, immediate execution-only tasks. See "Don't Use When" section for details. Outputs: Structured XML/Markdown prompt, quality score (before/after), optional team brief + per-agent sub-prompts, agent team output files. Success criteria: Single mode quality score ≥ 7/10; Repromptception per-agent prompt quality score 8+/10; all required sections present, actionable and specific.
adaptive-compaction
IncludedAdaptive add-on policy and recovery layer that decides WHEN to compact, prune, snapshot, or fork -- replacing fixed-percent auto-compaction across Claude Code, Codex, and MCP-capable hosts. Trigger on auto-compact timing or damage: "when should I compact", "is it safe to compact now or start a fresh session", "auto-compact fires too early/mid-task", "switching to an unrelated task but the window still has space", "context rot", "answers get worse the longer the session runs", "the agent forgot the plan or my decisions after it summarized", "add a layer on top that manages context without changing the agent", raising autoCompactWindow to give the policy room, or installing/tuning a cross-tool compaction policy or PreCompact hook -- even when "compaction" is never said but the problem is context-window pressure or post-summarization memory loss. Do NOT use to summarize a conversation, build RAG, write a summarization prompt (decides WHEN not HOW), or answer max-context-length trivia.
agent-skill-creator
IncludedCreate cross-platform agent skills from workflow descriptions. Activates when users ask to create an agent, automate a repetitive workflow, create a custom skill, or need advanced agent creation. Triggers on phrases like create agent for, automate workflow, create skill for, every day I have to, daily I need to, turn process into agent, need to automate, create a cross-platform skill, validate this skill, export this skill, migrate this skill. Supports single skills, multi-agent suites, transcript processing, template-based creation, interactive configuration, cross-platform export, and spec validation.
llm-wiki
IncludedUse when building or maintaining a persistent personal knowledge base (second brain) in Obsidian where an LLM incrementally ingests sources, updates entity/concept pages, maintains cross-references, and keeps a synthesis current. Triggers include "second brain", "Obsidian wiki", "personal knowledge management", "ingest this paper/article/book", "build a research wiki", "compound knowledge", "Memex", or whenever the user wants knowledge to accumulate across sessions instead of being re-derived by RAG on every query.
skill-master
IncludedAgent Skills authoring, evaluation, and optimization. Create, edit, validate, benchmark, and improve skills following the agentskills.io specification. Use when designing SKILL.md files, structuring skill folders (references, scripts, assets), ingesting external documentation into skills, running trigger evals, benchmarking skill quality, optimizing descriptions, or performing blind A/B comparisons. Keywords: agentskills.io, SKILL.md, skill authoring, eval, benchmark, trigger optimization.