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.
npx agentmods add skills/y0exchange/mcp/skillnpx skills add y0exchange/mcp --skill skillgit clone --depth 1 https://github.com/y0exchange/mcpWrote 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.
[](https://agentmods.dev/skills/y0exchange/mcp/skill)<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>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.
| Model | Per session | Once 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 |
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.
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
swaporsendwithout 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:
- Call
get_portfolio(no params needed if API key is configured) - Present results clearly: total USD value, per-token breakdown, chain distribution
- If portfolio is heavily concentrated (>80% in one token), note the concentration risk
- If assets are spread across chains, summarize per-chain totals
Tips:
- If user asks about a specific chain, use
get_balancewith that chainId instead - If user asks "how much ETH do I have", use
get_balanceon relevant chains rather than full portfolio
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.
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.
- 4d ago First seen · 190 lines · 84 tokens per session scan A b6c9bad118aa
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.
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.
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…
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.
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…
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…
copy-trading
Wallet evaluation, monitoring, and copy-trade strategy design for Solana DEX trading.