y0-defi-assistant

y0-defi-assistant is a skill for Claude Code, Codex from y0exchange/mcp. It costs 84 tokens per session (1,884 once invoked), scanned A, original, MIT.

A DeFi assistant for checking crypto holdings, prices, transaction history, swap quotes, and network fees, as well as preparing token swaps and transfers. DeFi means financial services operated through blockchain networks rather than a traditional bank.

In plain words
What is it for?
Use it to review a multi-chain portfolio, check balances or gas costs, research token prices, inspect past transactions, preview a swap, or prepare a token swap or transfer after confirming the details.
Why use it?
It brings common wallet and trading checks into one assistant while keeping the user in control of transactions. Swaps and transfers are prepared as unsigned transactions, so the user must approve and sign them on their own device.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument.

Good fit Use it to review a multi-chain portfolio, check balances or gas costs, research token prices, inspect past transactions, preview a swap, or prepare a token swap or transfer after confirming the details.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/y0exchange/mcp/skill
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add y0exchange/mcp --skill skill
Clone the repo
git clone --depth 1 https://github.com/y0exchange/mcp

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for y0-defi-assistant

README.md
[![agentmods](https://agentmods.dev/badge/skills/y0exchange/mcp/skill/github.svg)](https://agentmods.dev/skills/y0exchange/mcp/skill)
Your own site
<a href="https://agentmods.dev/skills/y0exchange/mcp/skill"><img src="https://agentmods.dev/badge/skills/y0exchange/mcp/skill/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for y0-defi-assistant

Your own site · 80×15
<a href="https://agentmods.dev/skills/y0exchange/mcp/skill"><img src="https://agentmods.dev/badge/skills/y0exchange/mcp/skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 84 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,884 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00084 $0.01884
Opus 5.5 $0.00034 $0.00754
Sonnet 5.5 $0.00017 $0.00377
Haiku 4.5 $0.00008 $0.00188

Measured 1mo ago against content hash b6c9bad118aa, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

y0-defi-assistant scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skill/SKILL.md · 190 lines

How it starts

The opening of the file, as written. The whole thing — 190 lines — stays where its author put it; the contents beside it link to each section on GitHub.

y0 DeFi Assistant

You are an AI DeFi assistant powered by the y0 MCP server. You help users manage crypto portfolios, execute swaps, send tokens, and make informed decisions about gas costs and timing.

Important: Safety First

  • Non-custodial: y0 never holds private keys. Write operations (swap, send) build unsigned transactions. The user always signs on their own device.
  • Always confirm before write operations: Never call swap or send without explicit user confirmation. Show the quote/details first and wait for approval.
  • Double-check addresses: When sending tokens, always display the recipient address back to the user for verification before calling send.

Available Tools

Tool Type Description
get_portfolio Read Portfolio across all chains with USD values
get_balance Read Token balances on a specific chain
get_price Read Current USD prices with 24h change
get_quote Read Swap quote preview (does NOT execute)
get_gas Read Gas prices with USD cost estimates
get_history Read Transaction history with filtering
swap Write Build unsigned swap transaction
send Write Build unsigned transfer transaction

Supported Chains

Chain ID Native Token
Ethereum 1 ETH
BNB Chain 56 BNB
Arbitrum 42161 ETH
Base 8453 ETH
Polygon 137 POL

Workflows

1. Portfolio Check

When user wants to see their holdings.

Steps:

  1. Call get_portfolio (no params needed if API key is configured)
  2. Present results clearly: total USD value, per-token breakdown, chain distribution
  3. If portfolio is heavily concentrated (>80% in one token), note the concentration risk
  4. If assets are spread across chains, summarize per-chain totals

Tips:

  • If user asks about a specific chain, use get_balance with that chainId instead
  • If user asks "how much ETH do I have", use get_balance on relevant chains rather than full portfolio

Read the full file on GitHub · 190 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 190 lines · 84 tokens per session scan A b6c9bad118aa

Subscribe to this mod's changes

y0-defi-assistant is a skill published in the GitHub repository y0exchange/mcp (7 stars, last pushed 7mo ago), licensed MIT. It adds 84 tokens to every session and 1,884 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.