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

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.

agentmods
npx agentmods add skills/y0exchange/mcp/skill
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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00084 $0.01884
Opus 5 $0.00042 $0.00942
Sonnet 5 $0.00017 $0.00377
Haiku 4.5 $0.00008 $0.00188

Measured 4d ago against content hash b6c9bad118aa, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 4d 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. 4d 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 5mo ago), licensed MIT. It adds 84 tokens to every session and 1,884 once invoked, about $0.0004 per session on Opus 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.

Related

Other skills, from other repositories

audit-support

Support SOX 404 compliance with control testing methodology, sample selection, and documentation standards. Use when generating testing workpapers, selecting audit samples, classifying control deficiencies, or preparing for internal or external audits.

anthropics/knowledge-work-plugins · 45 tokens

portfolio

Cross-chain DeFi portfolio discovery, rebalancing suggestions, and NEAR Intent construction. Activates when the user pastes a wallet address or asks about yield/positions/rebalancing. Bootstraps a per-user "portfolio" project, aggregates positions across all the user's addresses inside one project, and offers a…

suyoumo/ClawProBench · 69 tokens

memstack-business-scope-of-work

Use this skill when the user says 'scope of work', 'SOW', 'define scope', 'project scope', 'write SOW', 'scope document', or is defining project boundaries, deliverables, and acceptance criteria for a formal engagement. Do NOT use for proposals, contracts, or invoicing.

cwinvestments/memstack · 70 tokens

prompt-proximity-architecture

Turn an approved measurement charter, ICPs, and buyer jobs into a budget-aware prompt coverage blueprint across proximity bands, aided status, information acts, journey states, roles, locales, evidence grades, partitions, and measurement lanes. Use before prompt wording to define required, optional, and prohibited…

elvisun/newsjack · 67 tokens

crypto-market-rank

Crypto market rankings and leaderboards. Query trending tokens, top searched tokens, Binance Alpha tokens, tokenized stocks, social hype sentiment ranks, smart money inflow token rankings, top meme token rankings from Pulse launchpad, and top trader PnL leaderboards. Use this skill when users ask about token rankings…

tradecatlabs/tradecat-public · 85 tokens

copy-trading

Wallet evaluation, monitoring, and copy-trade strategy design for Solana DEX trading.

agiprolabs/claude-trading-skills · 21 tokens