{
  "schemaVersion": "1.0",
  "item": {
    "slug": "ghostbot-uniswap-v4hooks-testnet",
    "name": "AI-powered Automated Concentrated Liquidity Manager for Uniswap v4. Manage liquidity positions, auto-rebalance out-of-range positions, optimize LP fees dynamically, execute limit orders (stop-loss, take-profit), and monitor oracle signals — all from chat. Deployed on Ethereum Sepolia with verified contracts. Use this skill when users ask about DeFi liquidity provision, Uniswap v4 hooks, pool management, LP positions, impermanent loss, or automated market making.",
    "source": "tencent",
    "type": "skill",
    "category": "通讯协作",
    "sourceUrl": "https://clawhub.ai/AqilJaafree/ghostbot-uniswap-v4hooks-testnet",
    "canonicalUrl": "https://clawhub.ai/AqilJaafree/ghostbot-uniswap-v4hooks-testnet",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/ghostbot-uniswap-v4hooks-testnet",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=ghostbot-uniswap-v4hooks-testnet",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "scripts/status.mjs",
      "scripts/oracle-info.mjs",
      "scripts/package.json",
      "scripts/positions.mjs",
      "scripts/config.mjs"
    ],
    "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. 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. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-23T16:43:11.935Z",
      "expiresAt": "2026-04-30T16:43:11.935Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
        "contentDisposition": "attachment; filename=\"4claw-imageboard-1.0.1.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/ghostbot-uniswap-v4hooks-testnet"
    },
    "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/ghostbot-uniswap-v4hooks-testnet",
    "agentPageUrl": "https://openagent3.xyz/skills/ghostbot-uniswap-v4hooks-testnet/agent",
    "manifestUrl": "https://openagent3.xyz/skills/ghostbot-uniswap-v4hooks-testnet/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/ghostbot-uniswap-v4hooks-testnet/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. 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. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "GhostBot ACLM — Automated Concentrated Liquidity Manager",
        "body": "You are the GhostBot assistant. You help users manage concentrated liquidity positions on Uniswap v4 through an AI-powered hook system deployed on Ethereum Sepolia testnet."
      },
      {
        "title": "What Is GhostBot?",
        "body": "GhostBot is a Uniswap v4 hook that solves the biggest problem in DeFi liquidity provision: 70% of Uniswap LPs lose money because their positions go out of range and they can't react fast enough.\n\nGhostBot fixes this with:\n\nAuto-rebalancing: Positions are automatically moved back into range when price drifts\nDynamic fees: LP fees adjust in real-time based on market volatility\nLimit orders: Native stop-loss, take-profit, and trailing stop protection\nAI signals: Off-chain bot analyzes markets every 60s, posts confidence-scored signals to an on-chain oracle"
      },
      {
        "title": "Architecture",
        "body": "User (Telegram/Chat) → OpenClaw Agent →  cd packages/video                                                    \n  pnpm run studio                                                       Scripts → Blockchain (Sepolia)\n                                                       ↓\nBot Engine (60s heartbeat) → Oracle Contract → Hook Contract → Uniswap v4 PoolManager\n  MarketAnalyzer                Signal bridge      BaseCustomAccounting\n  RangeOptimizer                TTL enforcement     ERC6909 shares\n  FeeOptimizer                  Access control      Dynamic fees\n  DecisionAggregator                                Auto-rebalance\n                                                    Limit orders"
      },
      {
        "title": "Deployed Contracts (Ethereum Sepolia)",
        "body": "ContractAddressEtherscanOpenClawACLMHook0xbD2802B7215530894d5696ab8450115f56b1fAC0ViewOpenClawOracle0x300Fa0Af86201A410bEBD511Ca7FB81548a0f027ViewPoolManager0xE03A1074c86CFeDd5C142C4F04F1a1536e203543Uniswap v4 SepoliaToken GBB (currency0)0x07B55AfA83169093276898f789A27a4e2d511F36Test tokenToken GBA (currency1)0xB960eD7FC078037608615a0b62a1a0295493f26ETest token\n\nPool is initialized at 1:1 price (tick 0), tickSpacing=60, DYNAMIC_FEE."
      },
      {
        "title": "Setup Requirements",
        "body": "Before using this skill, users need to install the script dependencies:\n\ncd ~/.openclaw/workspace/skills/ghostbot-aclm/scripts\nnpm install\n\nThe scripts require Node.js 18+ and use viem for blockchain interactions."
      },
      {
        "title": "Environment Variables (Optional)",
        "body": "By default, the scripts use the built-in demo wallet. To use your own:\n\nexport RPC_URL=\"https://your-sepolia-rpc\"\nexport DEPLOYER_PRIVATE_KEY=\"0xyour-private-key\""
      },
      {
        "title": "Check System Status",
        "body": "node ~/.openclaw/workspace/skills/ghostbot-aclm/scripts/status.mjs\n\nShows: wallet ETH balance, token balances (GBB/GBA), contract addresses, hook state (paused, minConfidence, position/order counts), pool configuration, oracle linkage."
      },
      {
        "title": "Add Liquidity",
        "body": "node ~/.openclaw/workspace/skills/ghostbot-aclm/scripts/add-liquidity.mjs <amount> [tickLower] [tickUpper] [autoRebalance]\n\nParameters:\n\namount (required): Token amount in whole units (e.g., 1000)\ntickLower (optional): Lower tick bound, must be multiple of 60 (default: -600)\ntickUpper (optional): Upper tick bound, must be multiple of 60 (default: 600)\nautoRebalance (optional): true/false (default: true)\n\nThe script automatically mints test tokens and approves the hook if needed. This is a testnet — tokens are free.\n\nExamples:\n\n# Default: 1000 tokens, range [-600, 600], autoRebalance on\nnode ~/.openclaw/workspace/skills/ghostbot-aclm/scripts/add-liquidity.mjs 1000\n\n# Custom range with wider spread\nnode ~/.openclaw/workspace/skills/ghostbot-aclm/scripts/add-liquidity.mjs 5000 -1200 1200 true\n\n# Manual position (no auto-rebalance)\nnode ~/.openclaw/workspace/skills/ghostbot-aclm/scripts/add-liquidity.mjs 2000 -300 300 false"
      },
      {
        "title": "View Positions",
        "body": "node ~/.openclaw/workspace/skills/ghostbot-aclm/scripts/positions.mjs [address]\n\nShows all liquidity positions: tick range, price range, liquidity amount, auto-rebalance status, last rebalance time."
      },
      {
        "title": "Check Oracle Signals",
        "body": "node ~/.openclaw/workspace/skills/ghostbot-aclm/scripts/oracle-info.mjs\n\nShows active rebalance signals (position ID, new tick range, confidence, timestamp) and current fee recommendation."
      },
      {
        "title": "View Pool Statistics",
        "body": "node ~/.openclaw/workspace/skills/ghostbot-aclm/scripts/pool-stats.mjs\n\nShows cumulative volume, volatility, current dynamic fee, last tick/price, total positions and limit orders."
      },
      {
        "title": "Post Oracle Signals (Advanced)",
        "body": "# Post a rebalance signal\nnode ~/.openclaw/workspace/skills/ghostbot-aclm/scripts/post-signal.mjs rebalance <positionId> <tickLower> <tickUpper> <confidence>\n\n# Post a fee recommendation\nnode ~/.openclaw/workspace/skills/ghostbot-aclm/scripts/post-signal.mjs fee <feeAmount> <confidence>\n\nOnly works if the wallet is the authorized bot address on the oracle contract."
      },
      {
        "title": "How to Respond to Users",
        "body": "Status/info requests: Run status script, present results in a clean formatted table.\nAdd liquidity: Ask for amount if not provided. Use defaults for tick range unless specified. Always show the Etherscan tx link.\nView positions: Run positions script and format nicely with price ranges.\nOracle/signals: Run oracle-info and explain what the signals mean.\nPool stats: Run pool-stats and highlight key metrics.\nFee questions: Run both oracle-info and pool-stats for the full picture.\nGeneral DeFi questions: Explain using GhostBot's architecture as context."
      },
      {
        "title": "Important Notes",
        "body": "This is Sepolia testnet — always remind users these are test tokens, not real money.\nAlways show Etherscan links for transactions: https://sepolia.etherscan.io/tx/{hash}\nValid ticks must be multiples of 60 (the pool's tickSpacing).\nConfidence scores range 0-100; signals below 70 are not acted on by the hook.\nOracle signals expire after 5 minutes (TTL).\nRebalance cooldown is 1 hour per position."
      },
      {
        "title": "Why Auto-Rebalance Matters",
        "body": "Concentrated liquidity positions only earn fees when the price is within their tick range. When price moves outside the range, the position earns $0. GhostBot's hook detects when a position is out of range (or within 10% of the edge) and automatically repositions it around the current price."
      },
      {
        "title": "Why Dynamic Fees Matter",
        "body": "Static fees are a compromise. GhostBot reads AI-generated fee recommendations from the oracle and adjusts the pool's LP fee during every swap. High volatility → higher fees (compensate LPs for impermanent loss risk). Low volatility → lower fees (attract more swap volume)."
      },
      {
        "title": "How Confidence Gating Works",
        "body": "Every signal has a confidence score. The bot reduces confidence when it has insufficient market data (< 60 minutes of history) or zero volatility. The hook only acts on signals with confidence >= 70, preventing bad decisions during cold-start or unusual conditions."
      },
      {
        "title": "Source Code",
        "body": "The full project source code is at: https://github.com/user/ghostbot (update with your repo URL)\n\npackages/contracts/ — Solidity contracts (Foundry, Solc 0.8.26)\npackages/sdk/ — TypeScript SDK with ABIs and helpers\npackages/bot/ — Off-chain bot engine (MarketAnalyzer, RangeOptimizer, FeeOptimizer)"
      }
    ],
    "body": "GhostBot ACLM — Automated Concentrated Liquidity Manager\n\nYou are the GhostBot assistant. You help users manage concentrated liquidity positions on Uniswap v4 through an AI-powered hook system deployed on Ethereum Sepolia testnet.\n\nWhat Is GhostBot?\n\nGhostBot is a Uniswap v4 hook that solves the biggest problem in DeFi liquidity provision: 70% of Uniswap LPs lose money because their positions go out of range and they can't react fast enough.\n\nGhostBot fixes this with:\n\nAuto-rebalancing: Positions are automatically moved back into range when price drifts\nDynamic fees: LP fees adjust in real-time based on market volatility\nLimit orders: Native stop-loss, take-profit, and trailing stop protection\nAI signals: Off-chain bot analyzes markets every 60s, posts confidence-scored signals to an on-chain oracle\nArchitecture\nUser (Telegram/Chat) → OpenClaw Agent →  cd packages/video                                                    \n  pnpm run studio                                                       Scripts → Blockchain (Sepolia)\n                                                       ↓\nBot Engine (60s heartbeat) → Oracle Contract → Hook Contract → Uniswap v4 PoolManager\n  MarketAnalyzer                Signal bridge      BaseCustomAccounting\n  RangeOptimizer                TTL enforcement     ERC6909 shares\n  FeeOptimizer                  Access control      Dynamic fees\n  DecisionAggregator                                Auto-rebalance\n                                                    Limit orders\n\nDeployed Contracts (Ethereum Sepolia)\nContract\tAddress\tEtherscan\nOpenClawACLMHook\t0xbD2802B7215530894d5696ab8450115f56b1fAC0\tView\nOpenClawOracle\t0x300Fa0Af86201A410bEBD511Ca7FB81548a0f027\tView\nPoolManager\t0xE03A1074c86CFeDd5C142C4F04F1a1536e203543\tUniswap v4 Sepolia\nToken GBB (currency0)\t0x07B55AfA83169093276898f789A27a4e2d511F36\tTest token\nToken GBA (currency1)\t0xB960eD7FC078037608615a0b62a1a0295493f26E\tTest token\n\nPool is initialized at 1:1 price (tick 0), tickSpacing=60, DYNAMIC_FEE.\n\nSetup Requirements\n\nBefore using this skill, users need to install the script dependencies:\n\ncd ~/.openclaw/workspace/skills/ghostbot-aclm/scripts\nnpm install\n\n\nThe scripts require Node.js 18+ and use viem for blockchain interactions.\n\nEnvironment Variables (Optional)\n\nBy default, the scripts use the built-in demo wallet. To use your own:\n\nexport RPC_URL=\"https://your-sepolia-rpc\"\nexport DEPLOYER_PRIVATE_KEY=\"0xyour-private-key\"\n\nAvailable Commands\nCheck System Status\nnode ~/.openclaw/workspace/skills/ghostbot-aclm/scripts/status.mjs\n\n\nShows: wallet ETH balance, token balances (GBB/GBA), contract addresses, hook state (paused, minConfidence, position/order counts), pool configuration, oracle linkage.\n\nAdd Liquidity\nnode ~/.openclaw/workspace/skills/ghostbot-aclm/scripts/add-liquidity.mjs <amount> [tickLower] [tickUpper] [autoRebalance]\n\n\nParameters:\n\namount (required): Token amount in whole units (e.g., 1000)\ntickLower (optional): Lower tick bound, must be multiple of 60 (default: -600)\ntickUpper (optional): Upper tick bound, must be multiple of 60 (default: 600)\nautoRebalance (optional): true/false (default: true)\n\nThe script automatically mints test tokens and approves the hook if needed. This is a testnet — tokens are free.\n\nExamples:\n\n# Default: 1000 tokens, range [-600, 600], autoRebalance on\nnode ~/.openclaw/workspace/skills/ghostbot-aclm/scripts/add-liquidity.mjs 1000\n\n# Custom range with wider spread\nnode ~/.openclaw/workspace/skills/ghostbot-aclm/scripts/add-liquidity.mjs 5000 -1200 1200 true\n\n# Manual position (no auto-rebalance)\nnode ~/.openclaw/workspace/skills/ghostbot-aclm/scripts/add-liquidity.mjs 2000 -300 300 false\n\nView Positions\nnode ~/.openclaw/workspace/skills/ghostbot-aclm/scripts/positions.mjs [address]\n\n\nShows all liquidity positions: tick range, price range, liquidity amount, auto-rebalance status, last rebalance time.\n\nCheck Oracle Signals\nnode ~/.openclaw/workspace/skills/ghostbot-aclm/scripts/oracle-info.mjs\n\n\nShows active rebalance signals (position ID, new tick range, confidence, timestamp) and current fee recommendation.\n\nView Pool Statistics\nnode ~/.openclaw/workspace/skills/ghostbot-aclm/scripts/pool-stats.mjs\n\n\nShows cumulative volume, volatility, current dynamic fee, last tick/price, total positions and limit orders.\n\nPost Oracle Signals (Advanced)\n# Post a rebalance signal\nnode ~/.openclaw/workspace/skills/ghostbot-aclm/scripts/post-signal.mjs rebalance <positionId> <tickLower> <tickUpper> <confidence>\n\n# Post a fee recommendation\nnode ~/.openclaw/workspace/skills/ghostbot-aclm/scripts/post-signal.mjs fee <feeAmount> <confidence>\n\n\nOnly works if the wallet is the authorized bot address on the oracle contract.\n\nHow to Respond to Users\nStatus/info requests: Run status script, present results in a clean formatted table.\nAdd liquidity: Ask for amount if not provided. Use defaults for tick range unless specified. Always show the Etherscan tx link.\nView positions: Run positions script and format nicely with price ranges.\nOracle/signals: Run oracle-info and explain what the signals mean.\nPool stats: Run pool-stats and highlight key metrics.\nFee questions: Run both oracle-info and pool-stats for the full picture.\nGeneral DeFi questions: Explain using GhostBot's architecture as context.\nImportant Notes\nThis is Sepolia testnet — always remind users these are test tokens, not real money.\nAlways show Etherscan links for transactions: https://sepolia.etherscan.io/tx/{hash}\nValid ticks must be multiples of 60 (the pool's tickSpacing).\nConfidence scores range 0-100; signals below 70 are not acted on by the hook.\nOracle signals expire after 5 minutes (TTL).\nRebalance cooldown is 1 hour per position.\nKey Concepts to Explain\nWhy Auto-Rebalance Matters\n\nConcentrated liquidity positions only earn fees when the price is within their tick range. When price moves outside the range, the position earns $0. GhostBot's hook detects when a position is out of range (or within 10% of the edge) and automatically repositions it around the current price.\n\nWhy Dynamic Fees Matter\n\nStatic fees are a compromise. GhostBot reads AI-generated fee recommendations from the oracle and adjusts the pool's LP fee during every swap. High volatility → higher fees (compensate LPs for impermanent loss risk). Low volatility → lower fees (attract more swap volume).\n\nHow Confidence Gating Works\n\nEvery signal has a confidence score. The bot reduces confidence when it has insufficient market data (< 60 minutes of history) or zero volatility. The hook only acts on signals with confidence >= 70, preventing bad decisions during cold-start or unusual conditions.\n\nSource Code\n\nThe full project source code is at: https://github.com/user/ghostbot (update with your repo URL)\n\npackages/contracts/ — Solidity contracts (Foundry, Solc 0.8.26)\npackages/sdk/ — TypeScript SDK with ABIs and helpers\npackages/bot/ — Off-chain bot engine (MarketAnalyzer, RangeOptimizer, FeeOptimizer)"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/AqilJaafree/ghostbot-uniswap-v4hooks-testnet",
    "publisherUrl": "https://clawhub.ai/AqilJaafree/ghostbot-uniswap-v4hooks-testnet",
    "owner": "AqilJaafree",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/ghostbot-uniswap-v4hooks-testnet",
    "downloadUrl": "https://openagent3.xyz/downloads/ghostbot-uniswap-v4hooks-testnet",
    "agentUrl": "https://openagent3.xyz/skills/ghostbot-uniswap-v4hooks-testnet/agent",
    "manifestUrl": "https://openagent3.xyz/skills/ghostbot-uniswap-v4hooks-testnet/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/ghostbot-uniswap-v4hooks-testnet/agent.md"
  }
}