longbridge-defi-yield
DeFi yield analysis framework — covers lending rates (AAVE / Compound), liquidity provision (LP) returns, staking yields, yield farming strategies, and risk-adjusted return comparison across DeFi protocols.
Response language: match the user's input language — Simplified Chinese / Traditional Chinese / English.
Data scope notice: Longbridge provides real-time spot prices for major cryptocurrencies (.HAS suffix, e.g. BTCUSD.HAS, ETHUSD.HAS). DeFi protocol metrics (APY, TVL, utilisation rates) are not available via the Longbridge CLI — they must be sourced via WebSearch (DefiLlama, CoinGecko, protocol dashboards).
When to use
Trigger when the user asks about:
- DeFi lending / borrowing rates — "AAVE 上 ETH 借贷利率", "Compound USDC supply APY"
- Liquidity mining / LP returns — "Uniswap LP 收益", "流动性挖矿策略"
- Staking yields — "ETH 质押收益率", "SOL staking APY"
- Yield farming strategies — "如何优化 DeFi 收益", "yield farming best strategy"
- Risk-adjusted DeFi comparison — "哪个协议收益最高且风险最低"
For crypto spot price only, prefer longbridge-quote. For general crypto market data, prefer longbridge-core.
Workflow
- Identify asset and protocol from the prompt (e.g. ETH + AAVE, USDC + Compound).
- Fetch spot price from Longbridge for the underlying crypto asset (as price reference):
longbridge quote ETHUSD.HAS --format json
- Fetch DeFi protocol data via WebSearch from canonical sources:
- DefiLlama (
defillama.com) for TVL, protocol APY, pool yields.
- CoinGecko (
coingecko.com) for staking yields and token data.
- Protocol-native dashboards (app.aave.com, app.compound.finance) for live rates.
- Compute risk-adjusted yield:
- Nominal APY vs. inflation-adjusted real yield.
- IL (impermanent loss) risk for LP positions.
- Smart contract risk / audit status (note qualitatively).
- Present comparison table across protocols/strategies, ranked by risk-adjusted return.
CLI
# Spot price for underlying crypto (price reference only)
longbridge quote BTCUSD.HAS --format json
longbridge quote ETHUSD.HAS --format json
longbridge quote SOLUSD.HAS --format json
Run longbridge quote --help to see supported .HAS crypto symbols.
DeFi protocol data is not available via the Longbridge CLI. Use WebSearch to retrieve live APY/TVL from DefiLlama, CoinGecko, or protocol dashboards.
Output
Present a DeFi yield comparison table:
| Field |
简体 |
繁體 |
English |
| Protocol |
协议 |
協議 |
Protocol |
| Asset |
资产 |
資產 |
Asset |
| Strategy type |
策略类型 |
策略類型 |
Strategy type |
| Nominal APY |
名义年化收益 |
名義年化收益 |
Nominal APY |
| Estimated risk |
风险等级 |
風險等級 |
Risk level |
| TVL |
总锁仓量 |
總鎖倉量 |
TVL |
| Notes |
备注 |
備註 |
Notes |
Always include a risk disclaimer: "DeFi 投资存在智能合约风险、无常损失和流动性风险,不构成投资建议。" / "DeFi investing carries smart contract, impermanent loss, and liquidity risks. This is not investment advice."
Error handling
| Situation |
简体回复 |
繁體回覆 |
English reply |
command not found: longbridge |
请先安装 longbridge-terminal(仅用于现货价格) |
請先安裝 longbridge-terminal(僅用於現貨價格) |
Install longbridge-terminal (for spot prices only) |
.HAS symbol not found |
提示该加密货币暂不支持,尝试标准格式 |
提示該加密貨幣暫不支援 |
Crypto symbol not supported; check .HAS format |
| DeFi APY data unavailable |
提示需通过 WebSearch 获取协议数据 |
提示需透過 WebSearch 取得協議數據 |
DeFi APY requires WebSearch (DefiLlama/CoinGecko) |
| Other stderr |
原样展示,不重试 |
原樣展示,不重試 |
Surface verbatim, do not retry |
MCP fallback
For spot crypto prices: the equivalent MCP tool with .HAS symbols. DeFi protocol data has no Longbridge MCP equivalent — WebSearch is required.
Related skills
| User asks |
Route to |
| Crypto spot price only |
longbridge-quote |
| Crypto market overview / news |
longbridge-core |
| Options on crypto |
longbridge-derivatives |
| General market calendar |
longbridge-calendar |
File layout
longbridge-defi-yield/
└── SKILL.md
Prompt-only — no scripts/. DeFi protocol data sourced via WebSearch. Spot crypto prices via longbridge quote <SYMBOL>.HAS --format json.
1---2name: longbridge-defi-yield3description: DeFi yield analysis framework — lending rates (AAVE / Compound), liquidity provision (LP) returns, staking yields, yield farming strategies, and risk-adjusted return comparison. Longbridge provides spot crypto prices (`.HAS` suffix) only; DeFi protocol data (APY/TVL) requires DefiLlama/CoinGecko via WebSearch. Triggers: "DeFi收益", "流动性挖矿", "质押收益", "借贷利率", "收益农耕", "LP收益", "AAVE", "Compound", "DeFi协议", "DeFi收益率", "流動性挖礦", "質押收益", "借貸利率", "收益農耕", "DeFi yield", "liquidity mining", "staking yield", "lending rate", "yield farming", "LP returns", "DeFi APY", "TVL", "DeFi protocol", "on-chain yield", "DeFi strategy".4license: MIT5---6
7# longbridge-defi-yield
8
9DeFi yield analysis framework — covers lending rates (AAVE / Compound), liquidity provision (LP) returns, staking yields, yield farming strategies, and risk-adjusted return comparison across DeFi protocols.
10
11> **Response language**: match the user's input language — Simplified Chinese / Traditional Chinese / English.
12
13> **Data scope notice**: Longbridge provides real-time spot prices for major cryptocurrencies (`.HAS` suffix, e.g. `BTCUSD.HAS`, `ETHUSD.HAS`). DeFi protocol metrics (APY, TVL, utilisation rates) are **not available** via the Longbridge CLI — they must be sourced via WebSearch (DefiLlama, CoinGecko, protocol dashboards).
14
15## When to use
16
17Trigger when the user asks about:
18
19- DeFi lending / borrowing rates — *"AAVE 上 ETH 借贷利率"*, *"Compound USDC supply APY"*
20- Liquidity mining / LP returns — *"Uniswap LP 收益"*, *"流动性挖矿策略"*
21- Staking yields — *"ETH 质押收益率"*, *"SOL staking APY"*
22- Yield farming strategies — *"如何优化 DeFi 收益"*, *"yield farming best strategy"*
23- Risk-adjusted DeFi comparison — *"哪个协议收益最高且风险最低"*
24
25For crypto spot price only, prefer `longbridge-quote`. For general crypto market data, prefer `longbridge-core`.
26
27## Workflow
28
291. **Identify asset and protocol** from the prompt (e.g. ETH + AAVE, USDC + Compound).
302. **Fetch spot price** from Longbridge for the underlying crypto asset (as price reference):
31 ```bash
32 longbridge quote ETHUSD.HAS --format json
33 ```
343. **Fetch DeFi protocol data** via WebSearch from canonical sources:
35 - DefiLlama (`defillama.com`) for TVL, protocol APY, pool yields.
36 - CoinGecko (`coingecko.com`) for staking yields and token data.
37 - Protocol-native dashboards (app.aave.com, app.compound.finance) for live rates.
384. **Compute risk-adjusted yield**:
39 - Nominal APY vs. inflation-adjusted real yield.
40 - IL (impermanent loss) risk for LP positions.
41 - Smart contract risk / audit status (note qualitatively).
425. **Present comparison table** across protocols/strategies, ranked by risk-adjusted return.
43
44## CLI
45
46```bash
47# Spot price for underlying crypto (price reference only)
48longbridge quote BTCUSD.HAS --format json
49longbridge quote ETHUSD.HAS --format json
50longbridge quote SOLUSD.HAS --format json
51```
52
53> Run `longbridge quote --help` to see supported `.HAS` crypto symbols.
54
55DeFi protocol data is **not available** via the Longbridge CLI. Use WebSearch to retrieve live APY/TVL from DefiLlama, CoinGecko, or protocol dashboards.
56
57## Output
58
59Present a DeFi yield comparison table:
60
61| Field | 简体 | 繁體 | English |
62|---|---|---|---|
63| Protocol | 协议 | 協議 | Protocol |
64| Asset | 资产 | 資產 | Asset |
65| Strategy type | 策略类型 | 策略類型 | Strategy type |
66| Nominal APY | 名义年化收益 | 名義年化收益 | Nominal APY |
67| Estimated risk | 风险等级 | 風險等級 | Risk level |
68| TVL | 总锁仓量 | 總鎖倉量 | TVL |
69| Notes | 备注 | 備註 | Notes |
70
71Always include a risk disclaimer: *"DeFi 投资存在智能合约风险、无常损失和流动性风险,不构成投资建议。"* / *"DeFi investing carries smart contract, impermanent loss, and liquidity risks. This is not investment advice."*
72
73## Error handling
74
75| Situation | 简体回复 | 繁體回覆 | English reply |
76|---|---|---|---|
77| `command not found: longbridge` | 请先安装 longbridge-terminal(仅用于现货价格) | 請先安裝 longbridge-terminal(僅用於現貨價格) | Install longbridge-terminal (for spot prices only) |
78| `.HAS` symbol not found | 提示该加密货币暂不支持,尝试标准格式 | 提示該加密貨幣暫不支援 | Crypto symbol not supported; check `.HAS` format |
79| DeFi APY data unavailable | 提示需通过 WebSearch 获取协议数据 | 提示需透過 WebSearch 取得協議數據 | DeFi APY requires WebSearch (DefiLlama/CoinGecko) |
80| Other stderr | 原样展示,不重试 | 原樣展示,不重試 | Surface verbatim, do not retry |
81
82## MCP fallback
83
84For spot crypto prices: the equivalent MCP tool with `.HAS` symbols. DeFi protocol data has no Longbridge MCP equivalent — WebSearch is required.
85
86## Related skills
87
88| User asks | Route to |
89|---|---|
90| Crypto spot price only | `longbridge-quote` |
91| Crypto market overview / news | `longbridge-core` |
92| Options on crypto | `longbridge-derivatives` |
93| General market calendar | `longbridge-calendar` |
94
95## File layout
96
97```
98longbridge-defi-yield/
99└── SKILL.md
100```
101
102Prompt-only — no `scripts/`. DeFi protocol data sourced via WebSearch. Spot crypto prices via `longbridge quote <SYMBOL>.HAS --format json`.