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

一键安全发行 Agent Token

Uniswap Deploy Agent Token · v0.1.0
开发 安全 A 级 作者 wpank 公开目录收录
1.4k 下载 0 安装 5.4k 收藏 14 浏览

简介

自动化部署 Agent Token 至 Uniswap V4,集成反狙击钩子、动态费率、LP 锁仓与实时监控,解决代币首发流动性配置难题。

原始描述

Deploy an agent token with a Uniswap V4 pool — handles pool creation with configurable hooks (anti-snipe, dynamic fees, revenue share), initial liquidity bootstrapping, LP locking, and post-deployment monitoring. Use when the user wants to launch a token on Uniswap.

通过你的 Agent 添加

安装目录:deploy-agent-token/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/uniswap-deploy-agent-token/
Codex CLI~/.codex/skills/uniswap-deploy-agent-token/
DeepSeek Harness~/.agents/skills/uniswap-deploy-agent-token/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

中文使用说明 来自收录源

核心用法

本 Skill 面向希望在 Uniswap V4 上发行代币的 Agent 或项目方,提供从池子创建到流动性管理的全流程自动化。用户只需提供代币合约地址、初始流动性数量等关键参数,系统将自动调用 token-deployer 子 Agent 完成七步操作:代币合约验证(检测蜜罐风险)、钩子配置(默认启用反狙击保护)、池子初始化、流动性注入、LP 代币时间锁定、以及关键首小时的链上监控。

核心参数包括:tokenAddress(代币地址)、initialLiquidity(种子流动性,如"1M TOKEN + 10 WETH")、hooks(钩子配置,支持反狙击/动态费率/收益分成组合)、lpLockDuration(LP 锁仓期,默认 10 年)。用户可通过 targetMarketCap 让系统自动计算合理初始价格,避免手动定价失误。

显著优点

安全防护体系完善:默认启用 ClankerHook 模式的 2 区块反狙击延迟,防止机器人在发射瞬间抢跑套利;内置 safety-guardian 对所有交易进行预执行模拟,拦截恶意合约与危险操作。这对新手项目方尤为关键——文档明确指出,无反狙击保护的池子可能在数秒内被 bot 抽干流动性。

专业级流动性策略:自动委托 lp-strategist 优化流动性范围,支持全范围或集中流动性配置;10 年 LP 锁定期直接对标 Clanker 的成熟模式,增强市场信心。收益分成钩子让创作者可持续获得交易手续费收入。

监控与透明度:部署后自动生成包含池子地址、钩子详情、锁仓状态的完整报告,并提供首小时价格、交易量、TVL 及异常检测数据,帮助项目方及时响应市场变化。

潜在缺点与局限性

依赖子 Agent 安全性:本 Skill 本身为纯 Markdown 文档,实际执行完全依赖 token-deployer 子 Agent,其安全状况需独立评估。若子 Agent 存在漏洞或配置错误,可能导致资金损失。

链上与合约限制:目标链必须支持 Uniswap V4,钩子合约需预先部署并验证;若选用未经验证的自定义钩子,存在资金被盗风险。此外,池子创建后不可逆,参数配置错误(如初始价格偏差)将永久影响项目启动。

人工干预节点有限:尽管有安全模拟,最终交易仍需用户钱包签名,且复杂场景(如高波动币种动态费率调整)可能需要人工介入优化。

适合的目标群体

  • Agent 发行平台运营方:如 Clanker、BankrBot 类平台,需批量、标准化地为用户部署代币
  • DeFi 项目初创团队:缺乏专业智能合约开发能力,希望快速获得机构级发行保护
  • 社区驱动型代币发起者:需要 LP 锁仓和反狙击机制建立信任背书的 KOL 或 DAO
  • 流动性管理自动化需求方:希望减少首发阶段人工操作失误的机构或做市商

使用风险

资金不可逆风险:所有区块链交易一旦确认无法撤销,错误的价格计算或流动性配置可能导致项目方承担永久性损失。建议先在测试网验证流程。

子 Agent 权限风险:token-deployer 需执行代币转移、池子创建等敏感操作,若其被攻击或存在后门,可能直接危及用户资产。务必核查子 Agent 的安全认证状态。

外部依赖风险:Uniswap V4 生态尚处演进期,目标链的 V4 部署状态、钩子合约可用性可能变化,导致交易失败。

建议措施:使用专用钱包限制资金敞口、启用硬件钱包或多签、保持对每笔交易的最终审批权、并持续关注项目方 wpank 的社区声誉动态。

技能正文


name: deploy-agent-token description: Deploy an agent token with a Uniswap V4 pool — handles pool creation with configurable hooks (anti-snipe, dynamic fees, revenue share), initial liquidity bootstrapping, LP locking, and post-deployment monitoring. Use when the user wants to launch a token on Uniswap. model: opus allowed-tools: [Task(subagent_type:token-deployer)]

Deploy Agent Token

Overview

Automates the full lifecycle of launching a token on Uniswap V4: pool creation with configurable hooks, initial liquidity bootstrapping, LP token locking, and post-deployment monitoring. Delegates to the token-deployer agent which handles the critical first hours of a token's life — ensuring proper anti-snipe protections, correct initial pricing, sufficient liquidity depth, and locked LP tokens.

This skill exists because agent platforms like Clanker (585K+ tokens, $5B+ volume) and BankrBot need automated, safe pool creation. Misconfigured pools, missing anti-snipe hooks, or inadequate liquidity can destroy a launch.

When to Use

Activate when the user asks:

  • "Deploy a token for my agent"
  • "Create a Uniswap V4 pool for my token"
  • "Launch a token with anti-snipe protection"
  • "Set up a pool with dynamic fees"
  • "Deploy token on Base with locked liquidity"
  • "Launch my agent token like Clanker"
  • "Create a pool with revenue share hooks"
  • "Bootstrap liquidity for my new token"

Parameters

Parameter Required Default Description
tokenAddress Yes -- ERC-20 token contract address to create a pool for
pairedToken No WETH Quote token to pair with (WETH, USDC, or address)
chain No base Target chain for deployment (must support V4)
initialPrice No -- Desired price per token in the paired token (or derive from targetMarketCap)
targetMarketCap No -- Target market cap in USD — used to calculate initial price from total supply
initialLiquidity Yes -- Amount of each token to seed the pool (e.g., "1M AGENT + 10 WETH")
hooks No anti-snipe Hook configuration: "anti-snipe", "dynamic-fees", "revenue-share", or comma-separated combination
antiSnipeDelay No 2 blocks Anti-snipe delay period in blocks (ClankerHook model)
revenueSharePct No -- Percentage of swap fees directed to token creator (if revenue-share hook enabled)
lpLockDuration No 10 years How long to lock LP tokens (e.g., "10 years", "1 year", "6 months")
vestingSchedule No -- Optional vesting schedule for token allocations

Hook Configuration Guide

  • Anti-snipe (default, recommended): Prevents bot sniping at launch using a 2-block delay (ClankerHook model). Without this, bots can drain initial liquidity within seconds.
  • Dynamic fees: Adjusts pool fees based on volatility or volume. Good for tokens with unpredictable early trading patterns.
  • Revenue share: Directs a portion of swap fees to the token creator. Creates an ongoing revenue stream from trading activity.
  • TWAMM: Time-weighted average market making for gradual price discovery during launch.

Workflow

  1. Extract parameters from the user's request. Determine the token address, paired token, chain, initial price or market cap, liquidity amounts, hook configuration, and LP lock duration. Validate that required parameters (token address, initial liquidity) are provided. If initial price is not specified but target market cap is, note that the agent will calculate the price from total supply.

  2. Delegate to token-deployer agent: Invoke Task(subagent_type:token-deployer) with the extracted parameters. The agent executes a 7-step pipeline:

    • Verify token: Check token contract via metadata (name, symbol, decimals, supply, risk flags). Refuse if honeypot indicators detected.
    • Configure hooks: Select and validate V4 hooks, verify they are deployed on the target chain, calculate hook address requirements.
    • Create pool: Calculate sqrtPriceX96, construct pool key, simulate via safety-guardian, execute initialization.
    • Bootstrap liquidity: Delegate to lp-strategist for optimal range, add liquidity via position manager.
    • Lock LP: Transfer position NFT to time-locked vault, configure lock duration.
    • Monitor: Track price, volume, TVL, and anomalies during the critical first hours.
    • Report: Produce comprehensive deployment report.

    The agent internally delegates to safety-guardian (transaction validation) and lp-strategist (liquidity strategy).

  3. Present results: Format the deployment report for the user, including pool address, hook configuration, liquidity details, LP lock status, and early monitoring data.

Agent Delegation

Task(subagent_type:token-deployer)
  tokenAddress: <0x...>
  pairedToken: <WETH|USDC|address>
  chain: <base|ethereum|...>
  initialPrice: <price in paired token>
  targetMarketCap: <USD value>
  initialLiquidity: <amounts>
  hooks: <anti-snipe,dynamic-fees,revenue-share>
  antiSnipeDelay: <2 blocks>
  revenueSharePct: <percentage>
  lpLockDuration: <10 years>
  vestingSchedule: <schedule>

Output Format

Token Deployment Complete

  Pool:
    Address:    0x1234...abcd
    Chain:      Base (8453)
    Version:    V4
    Pair:       AGENT / WETH
    Fee:        0.30% (tick spacing: 60)
    Hooks:      Anti-snipe (2-block delay) + Dynamic fees
    Init Price: 0.001 WETH per AGENT

  Liquidity:
    Position:   #12345
    Amount:     1,000,000 AGENT + 10 WETH
    Range:      Full range
    Status:     Active

  LP Lock:
    Vault:      0x5555...6666
    Duration:   10 years (unlocks 2036-02-10)
    Position:   #12345

  Early Monitoring (1h):
    Price:      0.00105 WETH (+5.0%)
    Volume:     $45,000
    TVL:        $20,000
    Anomalies:  None detected

  Next Steps:
    - Monitor pool health over the first 24 hours
    - Consider adding more liquidity if TVL grows
    - Share pool address for community trading

Important Notes

  • Pool creation is irreversible. Every pool creation transaction is simulated via safety-guardian before broadcast.
  • Anti-snipe hooks are enabled by default and strongly recommended. Without them, bots can front-run the launch and drain initial liquidity within seconds.
  • All hook contracts must be deployed and verified on the target chain before they can be attached to a pool. Unverified hooks can steal funds.
  • If an existing pool with significant liquidity already exists for the token pair, the agent will warn you and suggest adding to the existing pool instead.
  • LP locking builds market confidence. The default 10-year lock follows the Clanker model. Shorter locks are possible but may reduce trader confidence.
  • Initial price calculation is critical. The agent cross-checks the price against token supply and target market cap to prevent misconfiguration.
  • Post-deployment monitoring runs during the first hours to detect anomalies (sandwich attacks, unusual trades, liquidity removal).

Error Handling

Error User-Facing Message Suggested Action
Token verification failed "Could not verify token at [address]: [reason]." Check the token contract address and chain
Honeypot detected "Token has honeypot indicators. Refusing to create pool." Review the token contract for malicious code
Pool already exists "A pool with $[X] TVL already exists for this pair. Consider adding liquidity instead." Use manage-liquidity to add to existing pool
Hook not deployed "Hook contract [type] is not deployed on [chain]." Deploy the hook first or choose a different hook
V4 not supported "Uniswap V4 is not deployed on [chain]." Choose a chain with V4 support
Insufficient liquidity tokens "Not enough [token] to seed the pool: have [X], need [Y]." Acquire more tokens or reduce initial liquidity
Safety guardian vetoed "Transaction vetoed by safety-guardian: [reason]." Review the veto reason and adjust parameters
LP lock failed "Could not lock LP tokens: [reason]." Check vault contract availability on the chain
Gas estimation failed "Could not estimate gas for pool creation on [chain]." Try again or check chain status

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

标签

uniswap-v4token-deploymentliquidity-bootstrappinganti-snipelp-lockingclankersmart-contract-automationdefi-launchpad

同类 Skill