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

Uniswap 操作独立风险评估

Uniswap Assess Risk · v0.1.0
专业技能 安全 S 级 作者 wpank 公开目录收录
下载 1.3k 安装 0 收藏 4.3k 浏览 5
下载 zip

简介

为 Uniswap 操作提供独立多维风险评估,涵盖滑点、无常损失、流动性、智能合约及跨链桥风险,给出明确的批准或否决建议。

原始描述

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/uniswap-assess-risk/
其它 Agent解压到它自己的 skills 目录,目录名用 uniswap-assess-risk

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

中文使用说明 来自收录源

核心用法

assess-risk 是一款专为 Uniswap 生态设计的独立风险评估工具。用户输入拟进行的操作描述(自然语言即可),系统自动解析操作类型、代币、金额、链及池子等关键信息,并委托 risk-assessor 专业子代理进行多维度风险分析。

支持的评估场景包括:

  • 代币兑换(Swap):评估滑点、价格影响
  • 流动性提供(LP):额外评估无常损失(IL)风险
  • 跨链桥接(Bridge):评估桥机制可靠性及流动性
  • 代币安全核查:识别未经验证的合约或潜在诈骗代币

系统根据用户风险承受度(conservative / moderate / aggressive)生成四种决策结果:

  • APPROVE:风险可控,建议执行
  • CONDITIONAL_APPROVE:附条件批准,需满足特定前提
  • VETO:风险超出容忍度,建议中止
  • HARD VETO:硬性否决,不可覆盖,常见于未验证代币、TVL<$1K、滑点>10%等极端情形

显著优点

  1. 独立性:risk-assessor 为终端节点,评估不受其他代理影响,确保客观公正
  2. 多维度覆盖:5+ 风险维度全面评估,避免单一指标盲区
  3. 决策清晰:非模糊评分,直接输出可执行的二元/多元决策
  4. 不可覆盖的安全底线:HARD VETO 机制防范明显的跑路、诈骗合约
  5. 数据驱动:基于链上实时数据,非静态规则库

潜在局限

  • 非执行性工具:仅提供"应否"建议,不实际执行交易
  • 数据依赖风险:池数据不可用时默认高风险,可能导致误杀
  • 无常损失估算为预测性:基于历史波动率,非确定性结果
  • V4 Hook 审计状态依赖外部信息:可能滞后

适合人群

  • 大额交易或 LP 操作前的机构投资者
  • DeFi 新手用户,缺乏自主风险评估能力
  • 跨链操作者,需桥接风险评估
  • 保守型风险偏好用户,寻求第二意见

常规风险

  • 模型风险:风险代理可能因数据缺失或链上异常给出偏保守评估
  • 智能合约风险:评估工具本身依赖的代理系统可能存在技术故障
  • 时效性风险:链上数据延迟可能导致评估与实际情况不符
  • 误报风险:新上线合法代币可能因"部署<24小时"触发 HARD VETO

技能正文


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

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

标签

uniswaprisk-assessmentdefi-safetyslippageimpermanent-lossliquidity-risksmart-contract-auditbridge-riskveto-decision

同类 Skill