{
  "schemaVersion": "1.0",
  "item": {
    "slug": "research-and-trade",
    "name": "Uniswap Research And Trade",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/wpank/research-and-trade",
    "canonicalUrl": "https://clawhub.ai/wpank/research-and-trade",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/research-and-trade",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=research-and-trade",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "README.md",
      "SKILL.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-07T17:22:31.273Z",
      "expiresAt": "2026-05-14T17:22:31.273Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
        "contentDisposition": "attachment; filename=\"afrexai-annual-report-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/research-and-trade"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/research-and-trade",
    "agentPageUrl": "https://openagent3.xyz/skills/research-and-trade/agent",
    "manifestUrl": "https://openagent3.xyz/skills/research-and-trade/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/research-and-trade/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Overview",
        "body": "This is the autonomous research-to-execution pipeline. Instead of manually calling four different agents and wiring their outputs together, this skill runs the full expert workflow in one command: research a token, find the best pool, assess risk, and -- only if the risk assessment approves -- execute the trade.\n\nWhy this is 10x better than calling agents individually:\n\nCompound context: Each agent receives the accumulated findings from all prior agents. The risk-assessor doesn't just evaluate a swap in isolation -- it sees the token-analyst's liquidity warnings, the pool-researcher's depth analysis, and the exact trade size, enabling a far richer risk assessment than standalone invocation.\nAutomatic risk gating: A VETO at any stage short-circuits the pipeline immediately. No wasted gas, no wasted time, and you get a full explanation of why.\nSingle command for a 4-step expert workflow: Manually coordinating token research, pool selection, risk evaluation, and trade execution takes significant time and expertise. This compresses it into one natural-language request.\nProgressive disclosure: You see each stage's findings as they complete, not just a final result. If the pipeline stops at risk assessment, you still get the full research report."
      },
      {
        "title": "When to Use",
        "body": "Activate when the user says anything like:\n\n\"Research UNI and buy if it looks good\"\n\"Due diligence on AAVE then trade\"\n\"Investigate and trade ARB\"\n\"Should I buy LINK? If so, do it\"\n\"Is PEPE safe to trade? Buy $500 worth if yes\"\n\"Research X, assess risk, and swap if it passes\"\n\"Autonomous trade: research then execute\"\n\"Check out TOKEN and buy some if the risk is acceptable\"\n\nDo NOT use when the user just wants research without trading (use research-token instead) or just wants to execute a swap without research (use execute-swap instead)."
      },
      {
        "title": "Parameters",
        "body": "ParameterRequiredDefaultHow to ExtracttokenYes--Token to research and potentially buy: \"UNI\", \"AAVE\", or 0x addramountYes--Trade size: \"$500\", \"1 ETH worth\", \"0.5 ETH\"chainNoethereumTarget chain: \"ethereum\", \"base\", \"arbitrum\"riskToleranceNomoderate\"conservative\", \"moderate\", \"aggressive\"actionNobuy\"buy\" (swap into token) or \"sell\" (swap out of token)payWithNoWETHToken to spend: \"WETH\", \"USDC\", etc.\n\nIf the user doesn't provide an amount, ask for it -- never guess a trade size."
      },
      {
        "title": "Workflow",
        "body": "RESEARCH-AND-TRADE PIPELINE\n  ┌─────────────────────────────────────────────────────────────────────┐\n  │                                                                     │\n  │  Step 1: RESEARCH (token-analyst)                                   │\n  │  ├── Token metadata, liquidity, volume, risk factors                │\n  │  ├── Cross-chain presence                                           │\n  │  └── Output: Token Research Report                                  │\n  │          │                                                          │\n  │          ▼ (feeds into Step 2)                                      │\n  │                                                                     │\n  │  Step 2: POOL ANALYSIS (pool-researcher)                            │\n  │  ├── Find all pools for {token}/{payWith} on {chain}                │\n  │  ├── Rank by fee APY, depth, utilization                            │\n  │  ├── Analyze depth at trade size (can it handle $X?)                │\n  │  └── Output: Pool Research Report + Best Pool Selection             │\n  │          │                                                          │\n  │          ▼ (feeds into Step 3 with COMPOUND CONTEXT)                │\n  │                                                                     │\n  │  Step 3: RISK ASSESSMENT (risk-assessor)                            │\n  │  ├── Receives: token risks + pool risks + trade size + slippage     │\n  │  ├── Evaluates: slippage, liquidity, smart contract, token risk     │\n  │  ├── Decision: APPROVE / CONDITIONAL_APPROVE / VETO / HARD_VETO    │\n  │  └── Output: Risk Assessment Report                                 │\n  │          │                                                          │\n  │          ▼ CONDITIONAL GATE                                         │\n  │  ┌───────────────────────────────────────────────────┐              │\n  │  │  APPROVE         → Proceed to Step 4              │              │\n  │  │  COND. APPROVE   → Show conditions, ask user      │              │\n  │  │  VETO            → STOP. Show research + reason.  │              │\n  │  │  HARD VETO       → STOP. Non-negotiable.          │              │\n  │  └───────────────────────────────────────────────────┘              │\n  │          │ (only if APPROVE or user confirms CONDITIONAL)           │\n  │          ▼                                                          │\n  │                                                                     │\n  │  Step 4: USER CONFIRMATION                                          │\n  │  ├── Present: research summary + risk score + swap quote            │\n  │  ├── Ask: \"Proceed with this trade?\"                                │\n  │  └── User must explicitly confirm                                   │\n  │          │                                                          │\n  │          ▼                                                          │\n  │                                                                     │\n  │  Step 5: EXECUTE (trade-executor)                                   │\n  │  ├── Execute swap through safety-guardian pipeline                  │\n  │  ├── Monitor transaction confirmation                               │\n  │  └── Output: Trade Execution Report                                 │\n  │                                                                     │\n  └─────────────────────────────────────────────────────────────────────┘"
      },
      {
        "title": "Step 1: Research (token-analyst)",
        "body": "Delegate to Task(subagent_type:token-analyst) with:\n\nToken symbol or address\nTarget chain\nRequest: full due diligence report\n\nWhat to pass to the agent:\n\nResearch this token for a potential trade:\n- Token: {token}\n- Chain: {chain}\n- Trade size: {amount}\n\nProvide a full due diligence report: liquidity across all pools, volume profile\n(24h/7d/30d), risk factors, and a trading recommendation with maximum trade size\nat < 1% price impact.\n\nPresent to user after completion:\n\nStep 1/5: Token Research Complete\n\n  Token: UNI (Uniswap) on Ethereum\n  Total Liquidity: $85M across 24 pools\n  24h Volume: $15M | 7d Volume: $95M\n  Volume Trend: Stable\n  Risk Factors: None significant\n  Max Trade (< 1% impact): $2.5M\n\n  Proceeding to pool analysis...\n\nGate check: If the token-analyst reports critical risk factors (total liquidity < $100K, no pools found, token not verified), present findings and ask the user if they want to continue before proceeding."
      },
      {
        "title": "Step 2: Pool Analysis (pool-researcher)",
        "body": "Delegate to Task(subagent_type:pool-researcher) with the token research output:\n\nFind the best pool for trading {token}/{payWith} on {chain}.\n\nContext from token research:\n- Total liquidity: {from Step 1}\n- Dominant pool: {from Step 1}\n- Risk factors: {from Step 1}\n\nTrade details:\n- Trade size: {amount}\n- Direction: {action} (buying/selling {token})\n\nAnalyze all pools for this pair across fee tiers. For each pool, report:\nfee APY, TVL, liquidity depth at the trade size, and price impact estimate.\nRecommend the best pool for this specific trade.\n\nPresent to user after completion:\n\nStep 2/5: Pool Analysis Complete\n\n  Best Pool: WETH/UNI 0.3% (V3, Ethereum)\n  Pool TVL: $42M\n  Price Impact: ~0.3% for your trade size\n  Fee Tier: 0.3% (3000 bps)\n\n  Proceeding to risk assessment..."
      },
      {
        "title": "Step 3: Risk Assessment (risk-assessor)",
        "body": "Delegate to Task(subagent_type:risk-assessor) with compound context from Steps 1 and 2:\n\nEvaluate risk for this proposed swap:\n\nOperation: swap {amount} {payWith} for {token}\nPool: {best pool from Step 2}\nChain: {chain}\nRisk tolerance: {riskTolerance}\n\nToken research context (from token-analyst):\n{Full token research summary from Step 1}\n\nPool analysis context (from pool-researcher):\n{Full pool analysis from Step 2}\n\nEvaluate all applicable risk dimensions: slippage, liquidity, smart contract risk.\nProvide a clear APPROVE / CONDITIONAL_APPROVE / VETO / HARD_VETO decision.\n\nConditional gate logic after risk-assessor returns:\n\nDecisionActionAPPROVEPresent risk summary, proceed to Step 4 (user confirmation)CONDITIONAL_APPROVEShow conditions (e.g., \"split into 2 tranches\"). Ask user: \"Accept conditions?\"VETOSTOP. Show full research report + risk assessment + veto reason. Suggest alternatives.HARD_VETOSTOP. Show reason. Non-negotiable -- do not offer to proceed.\n\nPresent to user (APPROVE case):\n\nStep 3/5: Risk Assessment Complete\n\n  Decision: APPROVE\n  Composite Risk: LOW\n  Slippage Risk: LOW (0.3% estimated)\n  Liquidity Risk: LOW (pool TVL 840x trade size)\n  Smart Contract Risk: LOW (V3, 18-month-old pool)\n\n  Ready for your confirmation...\n\nPresent to user (VETO case):\n\nStep 3/5: Risk Assessment -- VETOED\n\n  Decision: VETO\n  Reason: Price impact of 4.2% exceeds moderate risk tolerance (max 2%)\n\n  Research Summary:\n    Token: SMALLCAP ($180K total liquidity)\n    Best Pool: WETH/SMALLCAP 1% (V3, $95K TVL)\n    Your trade size ($5,000) represents 5.3% of pool TVL\n\n  Suggestions:\n    - Reduce trade size to < $1,000 for acceptable slippage\n    - Use a limit order instead: \"Submit limit order for SMALLCAP\"\n    - Try a different chain if more liquidity exists elsewhere\n\n  Pipeline stopped. No trade executed."
      },
      {
        "title": "Step 4: User Confirmation",
        "body": "Before executing any trade, present a clear summary and ask for explicit confirmation:\n\nTrade Confirmation Required\n\n  Research: UNI — $85M liquidity, stable volume, no risk factors\n  Risk: APPROVED (LOW composite risk)\n\n  Swap Details:\n    Sell:  0.5 WETH (~$980)\n    Buy:   ~28.5 UNI\n    Pool:  WETH/UNI 0.3% (V3, Ethereum)\n    Impact: ~0.3%\n    Gas:   ~$8 estimated\n\n  Proceed with this trade? (yes/no)\n\nOnly proceed to Step 5 if the user explicitly confirms."
      },
      {
        "title": "Step 5: Execute (trade-executor)",
        "body": "Delegate to Task(subagent_type:trade-executor) with the full pipeline context:\n\nExecute this swap:\n- Sell: {amount} {payWith}\n- Buy: {token}\n- Pool: {best pool address from Step 2}\n- Chain: {chain}\n- Slippage tolerance: {derived from risk assessment}\n- Risk assessment: APPROVED, composite risk {level}\n\nThe token has been researched (liquidity: {X}, volume: {Y}) and risk-assessed\n(slippage: {Z}, liquidity: {W}). Proceed with execution through the safety pipeline.\n\nPresent final result:\n\nStep 5/5: Trade Executed\n\n  Sold:     0.5 WETH ($980.00)\n  Received: 28.72 UNI ($985.50)\n  Pool:     WETH/UNI 0.3% (V3, Ethereum)\n  Slippage: 0.28% (within tolerance)\n  Gas:      $7.20\n  Tx:       https://etherscan.io/tx/0x...\n\n  ──────────────────────────────────────\n  Pipeline Summary\n  ──────────────────────────────────────\n  Research:  UNI — $85M liquidity, stable, no risk flags\n  Pool:      WETH/UNI 0.3% — best depth for trade size\n  Risk:      APPROVED (LOW)\n  Execution: Success — 28.72 UNI received\n  Total cost: $987.20 (trade + gas)"
      },
      {
        "title": "Successful Pipeline (all 5 steps)",
        "body": "Research and Trade Complete\n\n  Token: {symbol} ({name}) on {chain}\n  Research: {1-line summary from token-analyst}\n  Pool: {pool pair} {fee}% ({version}, {chain})\n  Risk: {decision} ({composite_risk})\n\n  Trade:\n    Sold:     {amount} {payWith} (${usd_value})\n    Received: {amount} {token} (${usd_value})\n    Impact:   {slippage}%\n    Gas:      ${gas_cost}\n    Tx:       {explorer_link}\n\n  Pipeline: Research -> Pool -> Risk -> Confirm -> Execute (all passed)"
      },
      {
        "title": "Vetoed Pipeline (stopped at risk)",
        "body": "Research and Trade -- Risk Vetoed\n\n  Token: {symbol} ({name}) on {chain}\n  Research: {1-line summary}\n  Pool: {best pool found}\n  Risk: VETOED — {reason}\n\n  Details:\n    {risk dimension scores}\n\n  Suggestions:\n    - {mitigation 1}\n    - {mitigation 2}\n\n  Pipeline: Research -> Pool -> Risk (VETOED) -- No trade executed."
      },
      {
        "title": "Important Notes",
        "body": "This skill always researches first. It never skips to trading. If the user just wants a quick swap without research, redirect them to execute-swap.\nRisk gating is non-negotiable for HARD_VETO. If the risk-assessor issues a HARD_VETO (unverified token, pool TVL < $1K, price impact > 10%), the pipeline stops. The user cannot override this.\nVETO is informational. For a regular VETO, present the full research and explain why. The user can then choose to use execute-swap directly if they want to proceed at their own risk -- but this skill will not do it.\nCompound context is the key differentiator. The risk-assessor is dramatically more useful when it has the token-analyst's risk factors and the pool-researcher's depth analysis, compared to calling it standalone with just a swap request.\nProgressive output keeps the user informed. Don't wait until the end to show results. After each agent completes, show a brief summary so the user knows what's happening.\nAmount is required. Never assume a trade size. If the user says \"research and buy UNI\" without an amount, ask: \"How much would you like to trade?\""
      },
      {
        "title": "Error Handling",
        "body": "ErrorUser-Facing MessageSuggested ActionToken not found\"Could not find token {X} on {chain}.\"Check spelling or provide contract addressNo pools found\"No Uniswap pools found for {token}/{payWith} on {chain}.\"Try different pay token or chainToken-analyst fails\"Token research failed: {reason}. Cannot proceed without due diligence.\"Try again or use research-token directlyPool-researcher fails\"Pool analysis failed. Research completed but cannot find optimal pool.\"Try execute-swap with manual pool choiceRisk-assessor VETO\"Risk assessment vetoed this trade: {reason}.\"Reduce amount, try different token/poolRisk-assessor HARD_VETO\"Trade blocked: {reason}. This cannot be overridden.\"The trade is unsafe at any sizeTrade-executor fails\"Trade execution failed: {reason}. Research and risk data preserved.\"Check wallet, balance, gas; retrySafety check fails\"Safety limits exceeded. Check spending limits with check-safety.\"Wait for limit reset or adjust limitsUser declines confirmation\"Trade cancelled. Research and risk data are shown above for reference.\"No action neededWallet not configured\"No wallet configured. Cannot execute trades.\"Set up wallet with setup-agent-walletInsufficient balance\"Insufficient {payWith} balance: have {X}, need {Y}.\"Reduce amount or acquire more tokens"
      }
    ],
    "body": "Research and Trade\nOverview\n\nThis is the autonomous research-to-execution pipeline. Instead of manually calling four different agents and wiring their outputs together, this skill runs the full expert workflow in one command: research a token, find the best pool, assess risk, and -- only if the risk assessment approves -- execute the trade.\n\nWhy this is 10x better than calling agents individually:\n\nCompound context: Each agent receives the accumulated findings from all prior agents. The risk-assessor doesn't just evaluate a swap in isolation -- it sees the token-analyst's liquidity warnings, the pool-researcher's depth analysis, and the exact trade size, enabling a far richer risk assessment than standalone invocation.\nAutomatic risk gating: A VETO at any stage short-circuits the pipeline immediately. No wasted gas, no wasted time, and you get a full explanation of why.\nSingle command for a 4-step expert workflow: Manually coordinating token research, pool selection, risk evaluation, and trade execution takes significant time and expertise. This compresses it into one natural-language request.\nProgressive disclosure: You see each stage's findings as they complete, not just a final result. If the pipeline stops at risk assessment, you still get the full research report.\nWhen to Use\n\nActivate when the user says anything like:\n\n\"Research UNI and buy if it looks good\"\n\"Due diligence on AAVE then trade\"\n\"Investigate and trade ARB\"\n\"Should I buy LINK? If so, do it\"\n\"Is PEPE safe to trade? Buy $500 worth if yes\"\n\"Research X, assess risk, and swap if it passes\"\n\"Autonomous trade: research then execute\"\n\"Check out TOKEN and buy some if the risk is acceptable\"\n\nDo NOT use when the user just wants research without trading (use research-token instead) or just wants to execute a swap without research (use execute-swap instead).\n\nParameters\nParameter\tRequired\tDefault\tHow to Extract\ntoken\tYes\t--\tToken to research and potentially buy: \"UNI\", \"AAVE\", or 0x addr\namount\tYes\t--\tTrade size: \"$500\", \"1 ETH worth\", \"0.5 ETH\"\nchain\tNo\tethereum\tTarget chain: \"ethereum\", \"base\", \"arbitrum\"\nriskTolerance\tNo\tmoderate\t\"conservative\", \"moderate\", \"aggressive\"\naction\tNo\tbuy\t\"buy\" (swap into token) or \"sell\" (swap out of token)\npayWith\tNo\tWETH\tToken to spend: \"WETH\", \"USDC\", etc.\n\nIf the user doesn't provide an amount, ask for it -- never guess a trade size.\n\nWorkflow\n                          RESEARCH-AND-TRADE PIPELINE\n  ┌─────────────────────────────────────────────────────────────────────┐\n  │                                                                     │\n  │  Step 1: RESEARCH (token-analyst)                                   │\n  │  ├── Token metadata, liquidity, volume, risk factors                │\n  │  ├── Cross-chain presence                                           │\n  │  └── Output: Token Research Report                                  │\n  │          │                                                          │\n  │          ▼ (feeds into Step 2)                                      │\n  │                                                                     │\n  │  Step 2: POOL ANALYSIS (pool-researcher)                            │\n  │  ├── Find all pools for {token}/{payWith} on {chain}                │\n  │  ├── Rank by fee APY, depth, utilization                            │\n  │  ├── Analyze depth at trade size (can it handle $X?)                │\n  │  └── Output: Pool Research Report + Best Pool Selection             │\n  │          │                                                          │\n  │          ▼ (feeds into Step 3 with COMPOUND CONTEXT)                │\n  │                                                                     │\n  │  Step 3: RISK ASSESSMENT (risk-assessor)                            │\n  │  ├── Receives: token risks + pool risks + trade size + slippage     │\n  │  ├── Evaluates: slippage, liquidity, smart contract, token risk     │\n  │  ├── Decision: APPROVE / CONDITIONAL_APPROVE / VETO / HARD_VETO    │\n  │  └── Output: Risk Assessment Report                                 │\n  │          │                                                          │\n  │          ▼ CONDITIONAL GATE                                         │\n  │  ┌───────────────────────────────────────────────────┐              │\n  │  │  APPROVE         → Proceed to Step 4              │              │\n  │  │  COND. APPROVE   → Show conditions, ask user      │              │\n  │  │  VETO            → STOP. Show research + reason.  │              │\n  │  │  HARD VETO       → STOP. Non-negotiable.          │              │\n  │  └───────────────────────────────────────────────────┘              │\n  │          │ (only if APPROVE or user confirms CONDITIONAL)           │\n  │          ▼                                                          │\n  │                                                                     │\n  │  Step 4: USER CONFIRMATION                                          │\n  │  ├── Present: research summary + risk score + swap quote            │\n  │  ├── Ask: \"Proceed with this trade?\"                                │\n  │  └── User must explicitly confirm                                   │\n  │          │                                                          │\n  │          ▼                                                          │\n  │                                                                     │\n  │  Step 5: EXECUTE (trade-executor)                                   │\n  │  ├── Execute swap through safety-guardian pipeline                  │\n  │  ├── Monitor transaction confirmation                               │\n  │  └── Output: Trade Execution Report                                 │\n  │                                                                     │\n  └─────────────────────────────────────────────────────────────────────┘\n\nStep 1: Research (token-analyst)\n\nDelegate to Task(subagent_type:token-analyst) with:\n\nToken symbol or address\nTarget chain\nRequest: full due diligence report\n\nWhat to pass to the agent:\n\nResearch this token for a potential trade:\n- Token: {token}\n- Chain: {chain}\n- Trade size: {amount}\n\nProvide a full due diligence report: liquidity across all pools, volume profile\n(24h/7d/30d), risk factors, and a trading recommendation with maximum trade size\nat < 1% price impact.\n\n\nPresent to user after completion:\n\nStep 1/5: Token Research Complete\n\n  Token: UNI (Uniswap) on Ethereum\n  Total Liquidity: $85M across 24 pools\n  24h Volume: $15M | 7d Volume: $95M\n  Volume Trend: Stable\n  Risk Factors: None significant\n  Max Trade (< 1% impact): $2.5M\n\n  Proceeding to pool analysis...\n\n\nGate check: If the token-analyst reports critical risk factors (total liquidity < $100K, no pools found, token not verified), present findings and ask the user if they want to continue before proceeding.\n\nStep 2: Pool Analysis (pool-researcher)\n\nDelegate to Task(subagent_type:pool-researcher) with the token research output:\n\nFind the best pool for trading {token}/{payWith} on {chain}.\n\nContext from token research:\n- Total liquidity: {from Step 1}\n- Dominant pool: {from Step 1}\n- Risk factors: {from Step 1}\n\nTrade details:\n- Trade size: {amount}\n- Direction: {action} (buying/selling {token})\n\nAnalyze all pools for this pair across fee tiers. For each pool, report:\nfee APY, TVL, liquidity depth at the trade size, and price impact estimate.\nRecommend the best pool for this specific trade.\n\n\nPresent to user after completion:\n\nStep 2/5: Pool Analysis Complete\n\n  Best Pool: WETH/UNI 0.3% (V3, Ethereum)\n  Pool TVL: $42M\n  Price Impact: ~0.3% for your trade size\n  Fee Tier: 0.3% (3000 bps)\n\n  Proceeding to risk assessment...\n\nStep 3: Risk Assessment (risk-assessor)\n\nDelegate to Task(subagent_type:risk-assessor) with compound context from Steps 1 and 2:\n\nEvaluate risk for this proposed swap:\n\nOperation: swap {amount} {payWith} for {token}\nPool: {best pool from Step 2}\nChain: {chain}\nRisk tolerance: {riskTolerance}\n\nToken research context (from token-analyst):\n{Full token research summary from Step 1}\n\nPool analysis context (from pool-researcher):\n{Full pool analysis from Step 2}\n\nEvaluate all applicable risk dimensions: slippage, liquidity, smart contract risk.\nProvide a clear APPROVE / CONDITIONAL_APPROVE / VETO / HARD_VETO decision.\n\n\nConditional gate logic after risk-assessor returns:\n\nDecision\tAction\nAPPROVE\tPresent risk summary, proceed to Step 4 (user confirmation)\nCONDITIONAL_APPROVE\tShow conditions (e.g., \"split into 2 tranches\"). Ask user: \"Accept conditions?\"\nVETO\tSTOP. Show full research report + risk assessment + veto reason. Suggest alternatives.\nHARD_VETO\tSTOP. Show reason. Non-negotiable -- do not offer to proceed.\n\nPresent to user (APPROVE case):\n\nStep 3/5: Risk Assessment Complete\n\n  Decision: APPROVE\n  Composite Risk: LOW\n  Slippage Risk: LOW (0.3% estimated)\n  Liquidity Risk: LOW (pool TVL 840x trade size)\n  Smart Contract Risk: LOW (V3, 18-month-old pool)\n\n  Ready for your confirmation...\n\n\nPresent to user (VETO case):\n\nStep 3/5: Risk Assessment -- VETOED\n\n  Decision: VETO\n  Reason: Price impact of 4.2% exceeds moderate risk tolerance (max 2%)\n\n  Research Summary:\n    Token: SMALLCAP ($180K total liquidity)\n    Best Pool: WETH/SMALLCAP 1% (V3, $95K TVL)\n    Your trade size ($5,000) represents 5.3% of pool TVL\n\n  Suggestions:\n    - Reduce trade size to < $1,000 for acceptable slippage\n    - Use a limit order instead: \"Submit limit order for SMALLCAP\"\n    - Try a different chain if more liquidity exists elsewhere\n\n  Pipeline stopped. No trade executed.\n\nStep 4: User Confirmation\n\nBefore executing any trade, present a clear summary and ask for explicit confirmation:\n\nTrade Confirmation Required\n\n  Research: UNI — $85M liquidity, stable volume, no risk factors\n  Risk: APPROVED (LOW composite risk)\n\n  Swap Details:\n    Sell:  0.5 WETH (~$980)\n    Buy:   ~28.5 UNI\n    Pool:  WETH/UNI 0.3% (V3, Ethereum)\n    Impact: ~0.3%\n    Gas:   ~$8 estimated\n\n  Proceed with this trade? (yes/no)\n\n\nOnly proceed to Step 5 if the user explicitly confirms.\n\nStep 5: Execute (trade-executor)\n\nDelegate to Task(subagent_type:trade-executor) with the full pipeline context:\n\nExecute this swap:\n- Sell: {amount} {payWith}\n- Buy: {token}\n- Pool: {best pool address from Step 2}\n- Chain: {chain}\n- Slippage tolerance: {derived from risk assessment}\n- Risk assessment: APPROVED, composite risk {level}\n\nThe token has been researched (liquidity: {X}, volume: {Y}) and risk-assessed\n(slippage: {Z}, liquidity: {W}). Proceed with execution through the safety pipeline.\n\n\nPresent final result:\n\nStep 5/5: Trade Executed\n\n  Sold:     0.5 WETH ($980.00)\n  Received: 28.72 UNI ($985.50)\n  Pool:     WETH/UNI 0.3% (V3, Ethereum)\n  Slippage: 0.28% (within tolerance)\n  Gas:      $7.20\n  Tx:       https://etherscan.io/tx/0x...\n\n  ──────────────────────────────────────\n  Pipeline Summary\n  ──────────────────────────────────────\n  Research:  UNI — $85M liquidity, stable, no risk flags\n  Pool:      WETH/UNI 0.3% — best depth for trade size\n  Risk:      APPROVED (LOW)\n  Execution: Success — 28.72 UNI received\n  Total cost: $987.20 (trade + gas)\n\nOutput Format\nSuccessful Pipeline (all 5 steps)\nResearch and Trade Complete\n\n  Token: {symbol} ({name}) on {chain}\n  Research: {1-line summary from token-analyst}\n  Pool: {pool pair} {fee}% ({version}, {chain})\n  Risk: {decision} ({composite_risk})\n\n  Trade:\n    Sold:     {amount} {payWith} (${usd_value})\n    Received: {amount} {token} (${usd_value})\n    Impact:   {slippage}%\n    Gas:      ${gas_cost}\n    Tx:       {explorer_link}\n\n  Pipeline: Research -> Pool -> Risk -> Confirm -> Execute (all passed)\n\nVetoed Pipeline (stopped at risk)\nResearch and Trade -- Risk Vetoed\n\n  Token: {symbol} ({name}) on {chain}\n  Research: {1-line summary}\n  Pool: {best pool found}\n  Risk: VETOED — {reason}\n\n  Details:\n    {risk dimension scores}\n\n  Suggestions:\n    - {mitigation 1}\n    - {mitigation 2}\n\n  Pipeline: Research -> Pool -> Risk (VETOED) -- No trade executed.\n\nImportant Notes\nThis skill always researches first. It never skips to trading. If the user just wants a quick swap without research, redirect them to execute-swap.\nRisk gating is non-negotiable for HARD_VETO. If the risk-assessor issues a HARD_VETO (unverified token, pool TVL < $1K, price impact > 10%), the pipeline stops. The user cannot override this.\nVETO is informational. For a regular VETO, present the full research and explain why. The user can then choose to use execute-swap directly if they want to proceed at their own risk -- but this skill will not do it.\nCompound context is the key differentiator. The risk-assessor is dramatically more useful when it has the token-analyst's risk factors and the pool-researcher's depth analysis, compared to calling it standalone with just a swap request.\nProgressive output keeps the user informed. Don't wait until the end to show results. After each agent completes, show a brief summary so the user knows what's happening.\nAmount is required. Never assume a trade size. If the user says \"research and buy UNI\" without an amount, ask: \"How much would you like to trade?\"\nError Handling\nError\tUser-Facing Message\tSuggested Action\nToken not found\t\"Could not find token {X} on {chain}.\"\tCheck spelling or provide contract address\nNo pools found\t\"No Uniswap pools found for {token}/{payWith} on {chain}.\"\tTry different pay token or chain\nToken-analyst fails\t\"Token research failed: {reason}. Cannot proceed without due diligence.\"\tTry again or use research-token directly\nPool-researcher fails\t\"Pool analysis failed. Research completed but cannot find optimal pool.\"\tTry execute-swap with manual pool choice\nRisk-assessor VETO\t\"Risk assessment vetoed this trade: {reason}.\"\tReduce amount, try different token/pool\nRisk-assessor HARD_VETO\t\"Trade blocked: {reason}. This cannot be overridden.\"\tThe trade is unsafe at any size\nTrade-executor fails\t\"Trade execution failed: {reason}. Research and risk data preserved.\"\tCheck wallet, balance, gas; retry\nSafety check fails\t\"Safety limits exceeded. Check spending limits with check-safety.\"\tWait for limit reset or adjust limits\nUser declines confirmation\t\"Trade cancelled. Research and risk data are shown above for reference.\"\tNo action needed\nWallet not configured\t\"No wallet configured. Cannot execute trades.\"\tSet up wallet with setup-agent-wallet\nInsufficient balance\t\"Insufficient {payWith} balance: have {X}, need {Y}.\"\tReduce amount or acquire more tokens"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/wpank/research-and-trade",
    "publisherUrl": "https://clawhub.ai/wpank/research-and-trade",
    "owner": "wpank",
    "version": "0.1.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/research-and-trade",
    "downloadUrl": "https://openagent3.xyz/downloads/research-and-trade",
    "agentUrl": "https://openagent3.xyz/skills/research-and-trade/agent",
    "manifestUrl": "https://openagent3.xyz/skills/research-and-trade/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/research-and-trade/agent.md"
  }
}