# Send Uniswap Pool Analysis to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- 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.
## Suggested prompts
### New install

```text
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.
```
### Upgrade existing

```text
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.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "uniswap-pool-analysis",
    "name": "Uniswap Pool Analysis",
    "source": "tencent",
    "type": "skill",
    "category": "数据分析",
    "sourceUrl": "https://clawhub.ai/wpank/uniswap-pool-analysis",
    "canonicalUrl": "https://clawhub.ai/wpank/uniswap-pool-analysis",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/uniswap-pool-analysis",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=uniswap-pool-analysis",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "README.md",
      "SKILL.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "uniswap-pool-analysis",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T09:35:36.566Z",
      "expiresAt": "2026-05-07T09:35:36.566Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=uniswap-pool-analysis",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=uniswap-pool-analysis",
        "contentDisposition": "attachment; filename=\"uniswap-pool-analysis-0.1.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "uniswap-pool-analysis"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/uniswap-pool-analysis"
    },
    "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."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/uniswap-pool-analysis",
    "downloadUrl": "https://openagent3.xyz/downloads/uniswap-pool-analysis",
    "agentUrl": "https://openagent3.xyz/skills/uniswap-pool-analysis/agent",
    "manifestUrl": "https://openagent3.xyz/skills/uniswap-pool-analysis/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/uniswap-pool-analysis/agent.md"
  }
}
```
## Documentation

### Overview

This skill covers querying and analyzing Uniswap v3/v4 pool state on-chain using viem.

### Key Concepts

sqrtPriceX96: Encoded price format used by Uniswap v3/v4. Convert with price = (sqrtPriceX96 / 2^96)^2
Ticks: Discrete price points defining liquidity ranges. Tick spacing depends on fee tier.
Liquidity: The L value representing active liquidity at the current tick.

### Fee Tiers (v3)

Fee (bps)Tick SpacingTypical Use1 (0.01%)1Stablecoin pairs5 (0.05%)10Correlated pairs30 (0.30%)60Standard pairs100 (1.00%)200Exotic pairs

### Querying Pool State

Use the Uniswap v3 Pool ABI to read on-chain state:

import { createPublicClient, http } from "viem";
import { mainnet } from "viem/chains";

const client = createPublicClient({
  chain: mainnet,
  transport: http(process.env.ETHEREUM_RPC_URL),
});

// Read slot0 for current price and tick
const [
  sqrtPriceX96,
  tick,
  observationIndex,
  observationCardinality,
  observationCardinalityNext,
  feeProtocol,
  unlocked,
] = await client.readContract({
  address: poolAddress,
  abi: poolAbi,
  functionName: "slot0",
});

// Read liquidity
const liquidity = await client.readContract({
  address: poolAddress,
  abi: poolAbi,
  functionName: "liquidity",
});

### Price Conversion

function sqrtPriceX96ToPrice(
  sqrtPriceX96: bigint,
  decimals0: number,
  decimals1: number,
): number {
  const price = Number(sqrtPriceX96) / 2 ** 96;
  return (price * price * 10 ** decimals0) / 10 ** decimals1;
}

function tickToPrice(
  tick: number,
  decimals0: number,
  decimals1: number,
): number {
  return (1.0001 ** tick * 10 ** decimals0) / 10 ** decimals1;
}

### Liquidity Distribution

To analyze liquidity distribution across ticks:

Query tickBitmap to find initialized ticks
For each initialized tick, read ticks(tickIndex) to get liquidityNet
Walk from MIN_TICK to MAX_TICK, accumulating net liquidity changes
Plot cumulative liquidity vs price for the distribution

### Multi-chain Support

Always accept a chainId parameter. Use the shared chain config from packages/common/ to resolve:

RPC URL
Pool factory address
Quoter address
Subgraph endpoint (if available)
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: wpank
- Version: 0.1.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-04-30T09:35:36.566Z
- Expires at: 2026-05-07T09:35:36.566Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/uniswap-pool-analysis)
- [Send to Agent page](https://openagent3.xyz/skills/uniswap-pool-analysis/agent)
- [JSON manifest](https://openagent3.xyz/skills/uniswap-pool-analysis/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/uniswap-pool-analysis/agent.md)
- [Download page](https://openagent3.xyz/downloads/uniswap-pool-analysis)