微算力 · API 导航与自营网关
API 接入 EN
未登录登录
💰

Uniswap 流动性收益智能监控

track-performance · vv0.1.0
专业技能 安全 S+ 级 作者 wpank 公开目录收录
1k 下载 201 安装 5k 收藏 11.7k 浏览

简介

Uniswap LP 仓位追踪工具,依托 portfolio-analyst 监控费用收益与仓位状态,智能识别再平衡时机助力优化做市策略。

原始描述

Track the performance of Uniswap LP positions over time — check which positions need attention, are out of range, or have uncollected fees. Use when the user asks how their positions are doing.

通过你的 Agent 添加

安装目录:track-performance/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/track-performance/
Codex CLI~/.codex/skills/track-performance/
DeepSeek Harness~/.agents/skills/track-performance/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

中文使用说明 来自收录源

核心用法

本 Skill 专为 Uniswap 流动性提供者设计,用于追踪 LP 仓位的实时表现。用户通过自然语言查询(如"我的仓位表现如何?")即可激活技能。系统会自动委托给 portfolio-analyst 子代理,分析指定钱包在所有链或特定链上的 Uniswap 仓位状态,包括费用累积、价值变化以及仓位是否在有效价格范围内。

技能支持多维度参数配置:可选择特定钱包地址、指定区块链网络(或全部),以及设定时间窗口(24小时、7天或30天)。输出结果以结构化的性能摘要呈现,包含总体收益、各仓位详细状态以及可操作的建议清单。

显著优点

首先,自动化监控极大降低了用户手动检查多个 LP 仓位的时间成本,特别适合跨链布仓的复杂策略。其次,智能预警机制能够及时标识"超出范围"(Out of Range)的仓位,这些仓位停止赚取手续费,需要重新平衡,避免用户资金闲置。第三,收益可视化清晰明了,区分了费用收入和价格波动带来的价值变化,帮助用户准确评估做市的真实收益。

此外,技能采用声明式权限管理,仅申请必要的子代理调用权限,遵循最小权限原则。纯文档型架构意味着无本地代码执行风险,所有敏感操作均由专门的 portfolio-analyst 代理处理,实现了关注点分离。

潜在缺点与局限性

由于依赖外部子代理和区块链 RPC/Subgraph 数据同步,性能数据可能存在轻微延迟,不适合需要毫秒级精度的套利场景。技能本身不直接执行再平衡操作,仅提供建议,用户仍需手动或通过其他工具执行实际交易,这在快速波动的市场中可能错失最佳时机。

此外,当前版本仅支持 Uniswap,未覆盖其他 DEX 协议(如 Curve、SushiSwap 等)。对于没有编程背景的用户,理解"无常损失"、"价格范围"等概念仍存在门槛,技能输出中的专业术语可能需要额外解释。

适合的目标群体

本 Skill 主要面向三类用户:一是活跃的 DeFi 做市商,管理多个 LP 仓位需要集中监控;二是被动收益投资者,希望定期检查 Uniswap 流动性挖矿表现而非实时盯盘;三是资产管理人和 DAO 财库管理者,需要周期性的投资组合报告和异常预警。

对于刚接触流动性挖矿的新手,该工具也是学习仓位管理的好帮手,通过直观的"健康/需关注"状态标识,帮助建立对 LP 风险的基本认知。

使用风险

数据延迟风险:依赖区块链节点和 The Graph 子图同步,极端网络拥堵时数据可能滞后数分钟。依赖项风险:核心功能完全依赖 portfolio-analyst 子代理的可用性和准确性,若子代理服务中断或更新,技能将失效。配置风险:需要正确配置钱包环境变量(WALLET_TYPE 和 PRIVATE_KEY),配置错误可能导致查询失败或安全风险。市场风险:技能仅提供历史表现数据,不提供投资建议,加密货币市场的高波动性可能导致快速亏损。

建议用户将本工具作为辅助决策参考,而非唯一依据,大额操作前应在区块浏览器二次确认数据。

技能正文


name: track-performance description: Track the performance of Uniswap LP positions over time — check which positions need attention, are out of range, or have uncollected fees. Use when the user asks how their positions are doing. model: opus allowed-tools: [Task(subagent_type:portfolio-analyst)]

Track Performance

Overview

Tracks the performance of Uniswap LP positions with a focus on changes and alerts since the last review. Delegates to the portfolio-analyst agent to check position status, fee accumulation, and identify positions needing attention.

When to Use

Activate when the user asks:

  • "How are my positions doing?"
  • "Check my LP performance"
  • "Any positions need attention?"
  • "Which positions are out of range?"
  • "How much have I earned today?"
  • "Position status update"

Parameters

Parameter Required Default Description
wallet No Configured agent wallet Wallet address to track
chains No All chains Specific chains or "all"
since No Last check Time period: "24h", "7d", "30d"

Workflow

  1. Extract parameters from the user's request: identify wallet, chain filter, and time period.

  2. Delegate to portfolio-analyst: Invoke Task(subagent_type:portfolio-analyst) with a focus on performance tracking and alerts. The agent checks all positions, identifies status changes, and flags positions needing attention.

  3. Present results: Format as a performance summary with actionable alerts.

Output Format

Performance Update (last 24h)

  Overall: +$320 (+0.26%)

  Positions:
    USDC/WETH 0.05% (Ethereum) — IN RANGE ✓
      Fees earned (24h): $180
      Value change:      +$120
      Status: Healthy

    UNI/WETH 0.30% (Ethereum) — OUT OF RANGE ⚠
      Fees earned (24h): $0 (not earning — out of range)
      Value change:      -$50
      Status: Needs rebalance

  Action Items:
    1. Rebalance UNI/WETH position (out of range since 6h ago)
    2. Consider collecting $1,200 in accumulated fees from UNI/WETH

Important Notes

  • Delegates entirely to portfolio-analyst — no direct MCP tool calls.
  • "Out of range" positions are not earning fees and may need rebalancing.
  • Action items are suggestions, not automatic actions.
  • Performance data may be slightly delayed due to RPC/subgraph sync.

Error Handling

Error User-Facing Message Suggested Action
Wallet not configured "No wallet configured." Set WALLET_TYPE + PRIVATE_KEY
No positions found "No Uniswap positions found." Wallet may not have LP'd
Data stale "Position data may be delayed." Try again in a few minutes

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

finance-accountingdata-analyticsautomationproductivity

同类 Skill