简介
基于 Uniswap 链上数据分析,为代币对提供专业的流动性提供策略建议,智能优化费率选择与区间设置以平衡收益与无常损失风险。
原始描述
Get the optimal LP strategy for a token pair — recommends version (V2/V3/V4), fee tier, range width, and rebalance approach based on pair characteristics, historical data, and risk tolerance. Use when the user asks how to LP, what range to use, or which version/fee tier is best.
通过你的 Agent 添加
安装目录:optimize-lp/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
中文使用说明 来自收录源
核心用法
optimize-lp skill 专注于为特定代币对(如 ETH/USDC)生成可执行的流动性提供(LP)策略建议。用户只需提供代币对名称、资金规模(可选)、链和网络风险偏好,即可获得完整的策略方案。
显著优点
-
数据驱动的智能决策:委派 lp-strategist 代理执行 7 步深度分析,包括代币对波动性分类、版本对比(V2/V3/V4)、最优费率选择、目标 >80% 时间内在区间的价格范围计算、再平衡策略设计等,所有建议均基于历史链上数据。
-
风险透明化:提供保守/中等/乐观三档预期年化收益率(已扣除无常损失 IL),并明确标注 IL 风险区间(保守/中等/最坏情况)。独立 risk-assessor 代理审核风险等级,确保策略与风险承受度匹配。
-
执行友好:输出格式清晰具体,包含实际池地址、精确价格区间、再平衡触发条件(如价格接近区间边界 10% 时)、预估频率及 Gas 成本,用户可直接据此操作。
-
成本敏感:针对小额仓位(<$1K)自动考虑 Gas 成本对收益的影响,避免推荐不经济的策略。
潜在局限
- 策略非自动执行:仅提供建议,实际添加流动性需使用
manage-liquidity skill,存在操作延迟风险。
- 历史数据依赖:APY 估算基于过去表现,未来收益不保证;新池可能因数据不足无法生成可靠策略。
- 再平衡成本:窄区间策略虽收益更高,但需频繁再平衡(可能每周),Gas 累积成本可能侵蚀利润。
- 代理级联依赖:核心分析依赖
lp-strategist 及其子代理(pool-researcher、risk-assessor)的可用性与数据质量。
适合人群
- 主动管理型 LP 提供者,希望优化资金效率
- 对 V3 集中流动性机制有一定理解,但需数据支持决策的用户
- 有一定资金规模(建议 >$1K)、能承受主动管理精力的投资者
- 不适合:追求完全被动收益、无法定期监控仓位、或对 Gas 成本极度敏感的小额用户
常规风险
风险类型
说明
缓解措施
无常损失(IL)
币价波动导致资产价值低于单纯持有
选择较宽区间、稳定币对,或接受 IL 作为流动性成本
区间外风险
价格突破设定区间,停止赚取手续费
设置合理再平衡触发器,预留监控时间
智能合约风险
Uniswap 协议或相关代理的潜在漏洞
使用官方池地址,关注协议安全审计
Gas 成本侵蚀
频繁再平衡导致收益被 Gas 费消耗
大额资金优先,选择再平衡频率适中的策略
数据时效性
历史波动率不代表未来
定期重新优化策略,适应市场变化
数据驱动的智能决策:委派 lp-strategist 代理执行 7 步深度分析,包括代币对波动性分类、版本对比(V2/V3/V4)、最优费率选择、目标 >80% 时间内在区间的价格范围计算、再平衡策略设计等,所有建议均基于历史链上数据。
风险透明化:提供保守/中等/乐观三档预期年化收益率(已扣除无常损失 IL),并明确标注 IL 风险区间(保守/中等/最坏情况)。独立 risk-assessor 代理审核风险等级,确保策略与风险承受度匹配。
执行友好:输出格式清晰具体,包含实际池地址、精确价格区间、再平衡触发条件(如价格接近区间边界 10% 时)、预估频率及 Gas 成本,用户可直接据此操作。
成本敏感:针对小额仓位(<$1K)自动考虑 Gas 成本对收益的影响,避免推荐不经济的策略。
- 策略非自动执行:仅提供建议,实际添加流动性需使用
manage-liquidityskill,存在操作延迟风险。 - 历史数据依赖:APY 估算基于过去表现,未来收益不保证;新池可能因数据不足无法生成可靠策略。
- 再平衡成本:窄区间策略虽收益更高,但需频繁再平衡(可能每周),Gas 累积成本可能侵蚀利润。
- 代理级联依赖:核心分析依赖
lp-strategist及其子代理(pool-researcher、risk-assessor)的可用性与数据质量。
适合人群
- 主动管理型 LP 提供者,希望优化资金效率
- 对 V3 集中流动性机制有一定理解,但需数据支持决策的用户
- 有一定资金规模(建议 >$1K)、能承受主动管理精力的投资者
- 不适合:追求完全被动收益、无法定期监控仓位、或对 Gas 成本极度敏感的小额用户
常规风险
风险类型
说明
缓解措施
无常损失(IL)
币价波动导致资产价值低于单纯持有
选择较宽区间、稳定币对,或接受 IL 作为流动性成本
区间外风险
价格突破设定区间,停止赚取手续费
设置合理再平衡触发器,预留监控时间
智能合约风险
Uniswap 协议或相关代理的潜在漏洞
使用官方池地址,关注协议安全审计
Gas 成本侵蚀
频繁再平衡导致收益被 Gas 费消耗
大额资金优先,选择再平衡频率适中的策略
数据时效性
历史波动率不代表未来
定期重新优化策略,适应市场变化
| 风险类型 | 说明 | 缓解措施 |
|---|---|---|
| 无常损失(IL) | 币价波动导致资产价值低于单纯持有 | 选择较宽区间、稳定币对,或接受 IL 作为流动性成本 |
| 区间外风险 | 价格突破设定区间,停止赚取手续费 | 设置合理再平衡触发器,预留监控时间 |
| 智能合约风险 | Uniswap 协议或相关代理的潜在漏洞 | 使用官方池地址,关注协议安全审计 |
| Gas 成本侵蚀 | 频繁再平衡导致收益被 Gas 费消耗 | 大额资金优先,选择再平衡频率适中的策略 |
| 数据时效性 | 历史波动率不代表未来 | 定期重新优化策略,适应市场变化 |
技能正文
name: optimize-lp
description: Get the optimal LP strategy for a token pair — recommends version (V2/V3/V4), fee tier, range width, and rebalance approach based on pair characteristics, historical data, and risk tolerance. Use when the user asks how to LP, what range to use, or which version/fee tier is best.
model: opus
allowed-tools: [Task(subagent_type:lp-strategist)]
Optimize LP
Overview
Overview
Provides a focused, actionable LP strategy recommendation for a specific token pair. Delegates to the lp-strategist agent, which analyzes pair volatility, evaluates version options, selects the optimal fee tier, calculates the best range width, and designs a rebalance strategy — all backed by on-chain data and risk analysis.
This skill answers the question: "How should I LP into X/Y?" with a concrete, implementable answer.
When to Use
Activate when the user asks:
- "Best LP strategy for ETH/USDC"
- "How should I LP $10K into ETH/USDC?"
- "Tight or wide range for WETH/USDC?"
- "V2 or V3 for this pair?"
- "What fee tier should I use for UNI/WETH?"
- "Optimize my LP approach for X/Y"
- "What range should I set for my ETH/USDC position?"
- "Should I use concentrated liquidity for this pair?"
Parameters
Parameter
Required
Default
How to Extract
token0
Yes
—
First token: "ETH", "WETH", "USDC", or 0x address
token1
Yes
—
Second token
capital
No
—
Amount to LP: "$10K", "5 ETH", "$50,000"
chain
No
ethereum
"ethereum", "base", "arbitrum", etc.
riskTolerance
No
moderate
"conservative", "moderate", "aggressive"
Workflow
-
Extract parameters from the user's request. Identify the token pair, capital amount (if mentioned), chain, and risk tolerance.
-
Delegate to lp-strategist: Invoke Task(subagent_type:lp-strategist) with the parameters. The agent performs a 7-step analysis:
- Classifies the pair (stable-stable, stable-volatile, volatile-volatile)
- Evaluates V2 vs V3 vs V4 tradeoffs
- Selects optimal fee tier with data backing
- Calculates range width targeting >80% time-in-range
- Designs rebalance strategy with gas cost analysis
- Gets independent risk assessment from risk-assessor
- Produces a recommendation with conservative/moderate/optimistic estimates
-
Present the strategy as a clear, actionable recommendation with specific numbers.
Output Format
LP Strategy for WETH/USDC
Recommendation: V3, 0.05% fee tier
Pool: 0x88e6A0c2dDD26FEEb64F039a2c41296FcB3f5640 (Ethereum)
Range: $1,668 - $2,258 (±15%, medium strategy)
Expected time-in-range: ~82%
Expected Returns (annualized):
Conservative: 8.5% APY (after IL)
Moderate: 15.2% APY (after IL)
Optimistic: 24.1% APY (after IL)
Expected IL:
Conservative: 2.1%
Moderate: 5.8%
Worst case: 12.3%
Rebalance Strategy:
Trigger: Price within 10% of range boundary
Frequency: Every 2-3 weeks (estimated)
Gas cost: ~$15 per rebalance
Risk Assessment: MEDIUM (approved by risk-assessor)
Alternatives Considered:
V3 0.3%: Lower APY (8%) but less competition
V2: No range management, ~4% APY — good for passive
Narrow range (±5%): Higher APY but needs weekly rebalancing
Ready to add liquidity? Say "Add liquidity to WETH/USDC"
Important Notes
- This skill provides a strategy recommendation, not execution. To act on it, use the
manage-liquidity skill.
- All APY estimates are based on historical data. Past performance does not guarantee future returns.
- IL estimates are always shown alongside fee APY — never fee APY alone.
- For small positions (<$1K), the recommendation accounts for gas costs eating into returns.
- The lp-strategist internally delegates to
pool-researcher for data and risk-assessor for risk evaluation.
Error Handling
Error
User-Facing Message
Suggested Action
Token not found
"Could not find token X on Uniswap."
Provide contract address
No pools exist
"No pools found for X/Y on this chain."
Try different chain or check tokens
Insufficient data
"Not enough historical data to produce a reliable strategy."
Pool may be too new
Agent unavailable
"LP strategist is not available."
Check agent configuration
| Parameter | Required | Default | How to Extract |
|---|---|---|---|
| token0 | Yes | — | First token: "ETH", "WETH", "USDC", or 0x address |
| token1 | Yes | — | Second token |
| capital | No | — | Amount to LP: "$10K", "5 ETH", "$50,000" |
| chain | No | ethereum | "ethereum", "base", "arbitrum", etc. |
| riskTolerance | No | moderate | "conservative", "moderate", "aggressive" |
-
Extract parameters from the user's request. Identify the token pair, capital amount (if mentioned), chain, and risk tolerance.
-
Delegate to lp-strategist: Invoke
Task(subagent_type:lp-strategist)with the parameters. The agent performs a 7-step analysis:- Classifies the pair (stable-stable, stable-volatile, volatile-volatile)
- Evaluates V2 vs V3 vs V4 tradeoffs
- Selects optimal fee tier with data backing
- Calculates range width targeting >80% time-in-range
- Designs rebalance strategy with gas cost analysis
- Gets independent risk assessment from risk-assessor
- Produces a recommendation with conservative/moderate/optimistic estimates
-
Present the strategy as a clear, actionable recommendation with specific numbers.
Output Format
LP Strategy for WETH/USDC
Recommendation: V3, 0.05% fee tier
Pool: 0x88e6A0c2dDD26FEEb64F039a2c41296FcB3f5640 (Ethereum)
Range: $1,668 - $2,258 (±15%, medium strategy)
Expected time-in-range: ~82%
Expected Returns (annualized):
Conservative: 8.5% APY (after IL)
Moderate: 15.2% APY (after IL)
Optimistic: 24.1% APY (after IL)
Expected IL:
Conservative: 2.1%
Moderate: 5.8%
Worst case: 12.3%
Rebalance Strategy:
Trigger: Price within 10% of range boundary
Frequency: Every 2-3 weeks (estimated)
Gas cost: ~$15 per rebalance
Risk Assessment: MEDIUM (approved by risk-assessor)
Alternatives Considered:
V3 0.3%: Lower APY (8%) but less competition
V2: No range management, ~4% APY — good for passive
Narrow range (±5%): Higher APY but needs weekly rebalancing
Ready to add liquidity? Say "Add liquidity to WETH/USDC"
Important Notes
- This skill provides a strategy recommendation, not execution. To act on it, use the
manage-liquidity skill.
- All APY estimates are based on historical data. Past performance does not guarantee future returns.
- IL estimates are always shown alongside fee APY — never fee APY alone.
- For small positions (<$1K), the recommendation accounts for gas costs eating into returns.
- The lp-strategist internally delegates to
pool-researcher for data and risk-assessor for risk evaluation.
Error Handling
Error
User-Facing Message
Suggested Action
Token not found
"Could not find token X on Uniswap."
Provide contract address
No pools exist
"No pools found for X/Y on this chain."
Try different chain or check tokens
Insufficient data
"Not enough historical data to produce a reliable strategy."
Pool may be too new
Agent unavailable
"LP strategist is not available."
Check agent configuration
LP Strategy for WETH/USDC
Recommendation: V3, 0.05% fee tier
Pool: 0x88e6A0c2dDD26FEEb64F039a2c41296FcB3f5640 (Ethereum)
Range: $1,668 - $2,258 (±15%, medium strategy)
Expected time-in-range: ~82%
Expected Returns (annualized):
Conservative: 8.5% APY (after IL)
Moderate: 15.2% APY (after IL)
Optimistic: 24.1% APY (after IL)
Expected IL:
Conservative: 2.1%
Moderate: 5.8%
Worst case: 12.3%
Rebalance Strategy:
Trigger: Price within 10% of range boundary
Frequency: Every 2-3 weeks (estimated)
Gas cost: ~$15 per rebalance
Risk Assessment: MEDIUM (approved by risk-assessor)
Alternatives Considered:
V3 0.3%: Lower APY (8%) but less competition
V2: No range management, ~4% APY — good for passive
Narrow range (±5%): Higher APY but needs weekly rebalancing
Ready to add liquidity? Say "Add liquidity to WETH/USDC"
- This skill provides a strategy recommendation, not execution. To act on it, use the
manage-liquidityskill. - All APY estimates are based on historical data. Past performance does not guarantee future returns.
- IL estimates are always shown alongside fee APY — never fee APY alone.
- For small positions (<$1K), the recommendation accounts for gas costs eating into returns.
- The lp-strategist internally delegates to
pool-researcherfor data andrisk-assessorfor risk evaluation.
Error Handling
Error
User-Facing Message
Suggested Action
Token not found
"Could not find token X on Uniswap."
Provide contract address
No pools exist
"No pools found for X/Y on this chain."
Try different chain or check tokens
Insufficient data
"Not enough historical data to produce a reliable strategy."
Pool may be too new
Agent unavailable
"LP strategist is not available."
Check agent configuration
| Error | User-Facing Message | Suggested Action |
|---|---|---|
| Token not found | "Could not find token X on Uniswap." | Provide contract address |
| No pools exist | "No pools found for X/Y on this chain." | Try different chain or check tokens |
| Insufficient data | "Not enough historical data to produce a reliable strategy." | Pool may be too new |
| Agent unavailable | "LP strategist is not available." | Check agent configuration |
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。