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

Uniswap 多维度风险评估专家

assess-risk · vv0.1.0
专业技能 安全 S 级 作者 wpank 公开目录收录
1.7k 下载 419 安装 6.7k 收藏 47.8k 浏览

简介

来自独立 risk-assessor 的 Uniswap 五维风险审计,基于链上数据输出 APPROVE/VETO 决策,保障 DeFi 操作安全。

原始描述

Get an independent risk assessment for any proposed Uniswap operation — swap, LP position, bridge, or token interaction. Evaluates slippage, impermanent loss, liquidity, smart contract, and bridge risks with a clear APPROVE or VETO decision. Use when the user asks if something is safe or wants a risk evaluation.

通过你的 Agent 添加

点「快速安装」复制一段指令,粘给你正在用的 Agent(Claude Code、Codex、OpenClaw 等),它会自己完成安装。

或者手动安装

Claude Codeunzip -o skill.zip -d ~/.claude/skills/assess-risk/
其它 Agent解压到它自己的 skills 目录,目录名用 assess-risk

包里是 SKILL.md 加作者附带的文件,解压后目录名就是技能名。 技能申请的权限由作者决定,装之前请确认它能读什么、能执行什么。

中文使用说明 来自收录源

核心用法

assess-risk 是专为 Uniswap 生态设计的独立风险评估工具。用户通过自然语言描述拟进行的操作(如"将 100 ETH 兑换为 USDC"或"向 WETH/USDC 池添加 5 万美元流动性"),该技能即委托给独立的 risk-assessor 子代理进行多维度分析。代理从链上获取实时数据,评估滑点、无常损失、流动性深度、智能合约安全性和跨链桥可靠性五个维度,最终输出 APPROVE(批准)、CONDITIONAL_APPROVE(有条件批准)、VETO(否决)或 HARD_VETO(硬否决)的明确决策。

显著优点

独立客观性是最大亮点。risk-assessor 被设计为不可被其他代理影响的终端节点,其评估完全基于链上数据,杜绝了利益冲突和操纵可能。多维度覆盖确保无重大盲区,不仅关注价格波动,还审计智能合约年龄、V4 钩子合约审计状态等深层风险。硬否决机制为用户设置安全底线,对未验证代币、低于千美元 TVL 的池子或超过 10% 价格冲击的交易自动拦截,有效防止"土狗"代币和流动性陷阱。此外,零执行风险设计确保该技能仅提供建议,绝不会擅自发起交易。

潜在局限

首先,数据来源单一,所有评估依赖 risk-assessor 子代理获取的链上数据,若数据源延迟或出错,评估结果可能失真。其次,T3 来源可信度意味着维护者仅为个人开发者,缺乏 Uniswap 官方或顶级安全公司的背书,长期维护和能力验证存疑。再者,评估范围受限,目前仅针对 Uniswap 生态优化,对其他 DEX 或复杂 DeFi 策略(如杠杆挖矿)支持有限。最后,预设规则僵化,HARD VETO 的触发阈值(如 TVL<$1K)虽保护性强,但也可能误伤早期优质项目。

适合人群

该技能适合保守型 DeFi 投资者和大额交易用户,特别是那些熟悉 Uniswap 但缺乏时间或能力深入分析链上数据的用户。对于机构投资者或DAO 财库管理者,它可作为交易前的第二意见工具。同时,DeFi 新手也能通过其清晰的维度评分快速理解风险构成。不适合追求极高风险收益的"冲土狗"玩家,或需要定制化风险模型的专业量化团队。

使用风险

尽管 skill 本身安全,但过度依赖风险不容忽视:用户可能将该工具的 APPROVE 决策视为投资保证,忽视市场系统性风险。数据滞后性可能导致评估基于数分钟前的链上状态,在剧烈波动行情下失效。此外,子代理黑箱问题——risk-assessor 的具体算法和数据源未完全公开,存在评估逻辑不透明风险。用户还需注意法律合规风险,不同司法管辖区对自动化投资工具有不同监管要求。

技能正文


name: assess-risk description: Get an independent risk assessment for any proposed Uniswap operation — swap, LP position, bridge, or token interaction. Evaluates slippage, impermanent loss, liquidity, smart contract, and bridge risks with a clear APPROVE or VETO decision. Use when the user asks if something is safe or wants a risk evaluation. model: opus allowed-tools: [Task(subagent_type:risk-assessor)]

Assess Risk

Overview

Provides an independent, multi-dimensional risk assessment for any proposed Uniswap operation. Delegates to the risk-assessor agent, which evaluates risk across 5+ dimensions and produces a composite score with a clear APPROVE, CONDITIONAL_APPROVE, VETO, or HARD_VETO decision.

The risk-assessor is a terminal node — it cannot be influenced by other agents. Its assessment is independent and objective, based solely on on-chain data.

When to Use

Activate when the user asks:

  • "Is this trade safe?"
  • "Risk assessment for swapping 100 ETH for USDC"
  • "Should I LP in this pool?"
  • "Evaluate the risk of swapping X for Y"
  • "How risky is this pool?"
  • "Is it safe to bridge tokens to Base?"
  • "What's the risk of LPing with this token?"
  • "Check if this token is safe to trade"
  • "Risk check before I swap"

Parameters

Parameter Required Default How to Extract
operation Yes — Natural language description of what the user wants to do
riskTolerance No moderate "conservative", "moderate", "aggressive"

The operation parameter is flexible — it can be:

  • A swap: "swap 100 ETH for USDC on Ethereum"
  • An LP action: "add $50K liquidity to WETH/USDC V3 0.05%"
  • A bridge: "bridge 10 ETH from Ethereum to Base"
  • A token check: "is PEPE safe to trade?"
  • A pool check: "is the UNI/WETH pool risky?"

Workflow

  1. Parse the operation from the user's request. Identify:

    • Operation type: swap, add liquidity, remove liquidity, bridge, or token check
    • Tokens involved
    • Amounts
    • Chain(s)
    • Pool (if applicable)
  2. Delegate to risk-assessor: Invoke Task(subagent_type:risk-assessor) with the parsed operation details and risk tolerance. The agent evaluates:

    Dimension What It Checks
    Slippage Price impact for the trade size vs pool liquidity
    Impermanent Loss Expected IL based on pair volatility (LP operations only)
    Liquidity Can the position be exited? TVL vs position size ratio
    Smart Contract Pool age, Uniswap version, hook audit status (V4)
    Bridge Bridge mechanism reliability, liquidity (cross-chain only)
  3. Present the assessment clearly with per-dimension scores and a final decision.

Output Format

Risk Assessment

  Operation: Swap 100 ETH for USDC on Ethereum
  Risk Tolerance: Moderate
  Decision: APPROVE

  Risk Dimensions:
    Slippage:        LOW  (0.3% price impact — sufficient liquidity)
    Liquidity:       LOW  (TVL 250x trade size — deep pool)
    Smart Contract:  LOW  (V3 pool, 18 months old, battle-tested)
    Bridge:          N/A  (not a cross-chain operation)

  Composite Risk: LOW
  
  Conditions: None — safe to proceed

  HARD VETO Checks:
    ✓ Verified tokens
    ✓ Pool TVL > $1,000
    ✓ Price impact < 10%

For a VETO:

Risk Assessment

  Operation: LP $50K into NEWTOKEN/WETH 0.3% V4 (Ethereum)
  Risk Tolerance: Conservative
  Decision: VETO

  Risk Dimensions:
    Slippage:        MEDIUM  (1.2% entry impact due to low liquidity)
    Impermanent Loss: HIGH   (>25% annual estimate — extremely volatile pair)
    Liquidity:       HIGH    (TVL only 8x position size — exit risk)
    Smart Contract:  HIGH    (V4 pool with unaudited hook contract)
    Bridge:          N/A

  Composite Risk: HIGH (exceeds conservative tolerance)

  Why VETO:
    - Impermanent loss estimate exceeds 20% annually
    - V4 hook contract is unaudited — elevated smart contract risk
    - Position would represent 12% of pool TVL — concentration risk

  Mitigations (if you still want to proceed):
    - Reduce position size to < 1% of pool TVL ($4,200)
    - Use a wider range to reduce IL exposure
    - Wait for hook contract audit
    - Switch to risk tolerance "aggressive" (not recommended)

For a HARD VETO:

Risk Assessment

  Operation: Swap 1000 ETH for SCAMTOKEN
  Decision: HARD VETO (non-overridable)

  HARD VETO Trigger: Unverified token contract
  
  SCAMTOKEN (0x1234...5678) failed verification:
    - Not on any verified token list
    - Contract deployed < 24 hours ago
    - No trading history

  This operation CANNOT proceed regardless of risk tolerance.
  Hard vetoes protect against potential rug pulls and scam tokens.

  Suggestion: Use "research-token SCAMTOKEN" to investigate further.

Important Notes

  • The risk-assessor is a terminal, independent node. Its assessment cannot be overridden by other agents.
  • HARD VETO decisions are non-negotiable — they trigger for: unverified tokens, pool TVL < $1K, price impact > 10%, bridge amount exceeding bridge liquidity.
  • This skill assesses risk but does not execute any operations. It's a "should I?" check before acting.
  • For LP operations, IL risk is always evaluated alongside the other dimensions.
  • When data is insufficient, the risk-assessor defaults to HIGH risk for the affected dimension rather than guessing.

Error Handling

Error User-Facing Message Suggested Action
Cannot parse operation "I need more details. What exactly are you planning?" Ask user to describe the operation
Token not found "Could not find token X." Provide contract address
Pool data unavailable "Cannot access pool data for risk analysis." Try again later
Agent unavailable "Risk assessor is not available." Check agent configuration

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

标签

finance-accountingblockchaindefirisk-managementsecuritycryptocurrency

同类 Skill