Documentation Index
Fetch the complete documentation index at: https://yieldxyz.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Yield.xyz provides a set of agent skills following the Agent Skills open standard that enable AI agents to autonomously interact with the Yield.xyz API. These skills are structured, machine-readable capability files that tell AI agents exactly how to discover yields, manage positions, and track portfolios.Agent skills work with any AI tool that supports the agentskills.io specification, including Cursor, Claude Code, OpenAI Codex, Gemini CLI, and others.
Quick Start
Install via Skills CLI
Add Yield.xyz skills to your AI agent’s context:Manual Setup
You can also reference the skill files directly. Each skill is a directory containing aSKILL.md file:
Available Skills
find-yields
Search and discover yield opportunities across 2,900+ options on 80+ networks. Filter by network, token, provider, type, or APY.
get-yield-info
Retrieve detailed metadata, APY/APR rates, token information, validator data, and protocol details for a specific yield.
enter-position
Enter (deposit into) a yield position by generating unsigned transactions. Covers staking, lending, vaults, and all yield types.
exit-position
Exit (withdraw from) a yield position. Handles unstaking, withdrawals, cooldown periods, and partial exits.
manage-position
Manage existing positions: claim rewards, restake, claim unstaked tokens, rebond, vote, and other lifecycle operations.
check-portfolio
View yield portfolio balances and positions across multiple networks and protocols. Track rewards and unstaking progress.
Skill Format
Each skill follows the agentskills.io specification with:- YAML frontmatter containing
name,description, and metadata - Markdown body with step-by-step instructions, API endpoints, request/response examples, and error handling guidance
How It Works
When an AI agent encounters a task related to Yield.xyz (e.g., “Find the best ETH staking yields”), it:Skill detection
The agent reads the skill’s
name and description to determine if the skill is relevant to the user’s request.API execution
The agent follows the step-by-step instructions to make API calls, handle pagination, and process responses.
Example Prompts
Once skills are installed, try these prompts with your AI coding tool:Discovery
Discovery
- “What are the best yields for ETH right now?”
- “Show me all staking options on Solana”
- “Find USDC lending yields with the highest APY”
- “Compare Aave vs Compound yields on Ethereum”
Position management
Position management
- “Stake 1 ETH with Lido”
- “Deposit 5000 USDC into Aave on Arbitrum”
- “Unstake my ATOM from Cosmos”
- “Claim my staking rewards”
Portfolio
Portfolio
- “Show my yield portfolio across all networks”
- “Check my staking balance on Ethereum”
- “Do I have any rewards to claim?”
- “What’s the status of my DOT unstaking?”
Prerequisites
To use these skills, you need:- A Yield.xyz API key — sign up at dashboard.yield.xyz
- An AI tool that supports agent skills (Cursor, Claude Code, Codex, Gemini CLI)
- The API key set as an environment variable:
Using with Cursor
If you’re using Cursor IDE, you can reference the skills directly in your project:- Add the skills directory to your project
- Reference skills in your Cursor rules (
.cursor/rules/) - The agent will automatically detect and use relevant skills
Using with LLMs
For direct LLM integration, you can also use:/llms.txt— Directory of all documentation pages/llms-full.txt— Complete documentation content for full context/skill.md— Root capability file describing all skills
Next Steps
Cursor Setup
Set up Cursor IDE for Yield.xyz development
Prompting Patterns
Effective prompts for Yield.xyz with AI
API Reference
Full API documentation
Guardrails
Safety considerations for AI-assisted development

