Guide · Agent skill
How to use the DeFi Yield Analysis agent skill (defi-yield)
Updated · written with AI from the project's own documentation and checked against our catalogue data
The defi-yield skill is a reference framework that teaches an AI agent how to evaluate DeFi earning opportunities such as crypto lending, liquidity pools, staking and yield farming. It is aimed at crypto investors comparing options, analysts writing protocol research, and developers building yield dashboards. After this guide you will know how to install the skill, ask for the analysis you want, and what its limits are.
Quick start
- 1Download the ZIP. Download the defi-yield ZIP from this page. It contains the SKILL.md file.
- 2Unzip into a skills folder. Place the defi-yield folder in ~/.claude/skills/ for personal use, or in .claude/skills/ inside a project.
- 3Or upload in the Claude apps. Open Settings → Capabilities → Skills and upload the ZIP.
- 4Gather your numbers. Collect the APY, pool pair, price move, fee revenue and token emissions you want to analyze, since the skill has no live data.
- 5Ask in plain language. Describe the decision and mention DeFi, LP, staking or lending so the agent uses the skill.
- 6Check the output. Verify figures against the live protocol and source dashboards before making any decision.
What the defi-yield skill makes the agent do
Agent skills are folders of instructions that an AI agent loads when a task matches them. The defi-yield skill is a single SKILL.md file that gives the agent a framework for DeFi yields. It explains where yields come from, including lending interest, LP trading fees, staking rewards, token incentives and restaking.
It also gives the agent standard formulas and checks. These include estimating impermanent loss for a 50/50 liquidity pool, calculating a net LP yield after fees, incentives and impermanent loss, comparing opportunities after risk deductions, and testing whether a reward is funded by real protocol revenue or by token emissions that may dilute over time.
- Explain yield sources such as lending, borrowing cost, LP fees, staking, liquidity mining, restaking and points farming
- Estimate impermanent loss for a price move in a 50/50 AMM pool
- Rank opportunities by a risk-adjusted yield score
- Flag warning signs of unsustainable yield
Install the defi-yield skill
Download the defi-yield ZIP from this page. The package contains SKILL.md. Unzip it so the defi-yield folder sits inside one of these locations: ~/.claude/skills/ for your personal skills, or .claude/skills/ inside a project folder if you want the skill only for that project.
You can also upload the ZIP in the Claude apps under Settings → Capabilities → Skills.
- Personal install: ~/.claude/skills/
- Project install: .claude/skills/ in your project folder
- Claude apps: Settings → Capabilities → Skills, then upload the ZIP
Trigger the skill with natural requests
You do not need a special command. Describe the decision in plain language and mention DeFi, yield, LP, staking or lending so the agent matches the skill. Give it the numbers you have, because the skill has no live data of its own.
Useful requests name the asset, the protocol or pool, the advertised APY, and the price move you want to model.
- Estimate the impermanent loss if ETH doubles against USDC in a 50/50 pool
- Compare a 4% stablecoin lending rate with a 12% LP yield that is 60% incentives, and tell me which is better after risk
- Is this farm's reward funded by fees or by token emissions? Here are the protocol's numbers: [paste figures]
- Write a short sustainability note on this protocol's yield for a research memo
What the skill needs and how it runs
The skill lists no requirements. It does not run scripts and does not use the network. The Python snippets in SKILL.md are illustrative: the agent uses them as formulas and can explain them, but nothing executes on its own. The skill does not fetch live rates or current TVL.
The file also names outside sources such as DeFi Llama Yields and protocol dashboards. Those are places you can check yourself. The skill itself does not connect to them.
- Requirements: none listed
- Runs scripts: no
- Uses network: no
- Data: none built in; supply current figures yourself
Read the outputs with care
The APY ranges, thresholds and risk deductions in the skill are rough and illustrative, not guarantees. DeFi carries smart contract risk, market risk and the possibility of total loss. Treat the output as a structured checklist for your own research.
The skill does not give tax, legal or regulatory advice, so take those questions elsewhere.
- Do not treat a score as a guaranteed or low-risk return
- Check current rates and TVL in the live protocol before acting
- Verify any figure the agent produces against source data
Tips for better analysis
Give the agent complete inputs. The impermanent loss example works from a price ratio change, and the sustainability test needs total yield, fee revenue and token emissions. Missing inputs lead to vague answers.
Ask for the reasoning, not only the score. The skill's own warning signs, such as APY above 100% with no clear revenue source, are easy to check against what the agent tells you.
- State the chain and pool pair, since the risk deductions depend on them
- Ask for both the base APY and the adjusted figure
- Ask which warning signs apply to the protocol you are checking
What people use it for
- Estimating impermanent loss for an ETH/USDC pool under a set price move
- Comparing a stablecoin lending rate with an LP opportunity after risk adjustments
- Checking whether a farm's rewards come from protocol fees or token emissions
- Drafting the sustainability section of a DeFi research note
- Reviewing the formulas and thresholds for a yield dashboard you are building
Frequently asked questions
Is the defi-yield skill free?
The source lists the skill under the MIT licence. It requires nothing else to use, and the file itself names free data sources such as DeFi Llama Yields that you can check yourself.
How do I install the defi-yield agent skill?
Download the ZIP from this page and unzip it so the defi-yield folder sits in ~/.claude/skills/ or a project's .claude/skills/ folder. You can also upload the ZIP in the Claude apps under Settings → Capabilities → Skills.
Does the skill fetch live DeFi rates?
No. The skill uses no network access and contains no data feeds, so you need to supply current APY, TVL and other figures yourself. Figures in the skill are rough and may be outdated.
Does the skill run code on my computer?
No. It runs no scripts. The Python snippets in SKILL.md are illustrative formulas that the agent can explain or apply to the numbers you give it.
What is impermanent loss and how does the skill calculate it?
Impermanent loss is the loss a liquidity provider in a 50/50 AMM pool takes compared with simply holding the two assets, caused by a change in price ratio. The skill's formula returns the percentage loss for a given price ratio change, such as -5.7% for a doubling.
How does defi-yield compare with other DeFi analysis tools?
The skill is a reference framework, not a dashboard or data service. It does not pull live rates or TVL like a tracker would, so use it for structured reasoning and pair it with a live data source when you need current numbers.
Can I use the skill for tax or legal questions?
No. The skill does not address tax, legal or regulatory topics, so consult a qualified professional for those.
New agent skills, repos and AI tools — every week
The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.
Our verdict
Use defi-yield if you want a consistent checklist for comparing DeFi lending, LP, staking and farming yields, or for judging whether a reward is sustainable. Pick a different tool if you need live rates, current TVL or a guaranteed low-risk answer, since this skill has no data feeds and its figures are illustrative.
Download the skill