# Deploy Uni Hook

> AI agent that deploys Uniswap v4 hooks. Generate, simulate, audit, and deploy a Uniswap v4 hook + test pool from a brief, on any Uniswap v4 chain (every testnet and mainnet) - pre-audited templates or a from-scratch freeform hook (flags auto-derived; static audit + dangerous-pattern scan + a behavioral forge test + fork sim gate the deploy). Dry-run by default; explicit arm: to broadcast; testnet default, mainnet behind a double opt-in; records the deploy to main. Every deployed hook inherits a mandatory 10 bps AeonFee protocol fee.

- Skill: `deploy-uni-hook`
- Category: Crypto & Markets (https://www.aeon.fun/skills#crypto)
- Default schedule: On demand
- Last updated: 2026-11-05 (commit 504a21d)
- Source: https://github.com/aeonfun/aeon/blob/main/skills/deploy-uni-hook/SKILL.md

## What it does

This skill turns a one-line brief into a live Uniswap v4 hook. It is built to be safe: it simulates every deploy before it broadcasts, it defaults to a dry-run on testnet, and it needs an explicit `arm:` to move on-chain.

## Input: the var setting

The hook brief. Grammar: `[arm:][template:<name>] [chain:<name>] <brief>`
- *empty* (empty) → print help and exit `DEPLOY_HOOK_EMPTY`.
- `<brief>` → **dry-run**: generate, compile, mine, and simulate. Never broadcasts. *[default - no prefix]*
- `arm:<brief>` → **broadcast**: do the full dry-run first, then deploy for real if the simulation passes.
- `template:<name>` → force a mode: `dynamic` | `noop` | `skim` (pre-audited templates) or `freeform` (build a whole hook from the prompt). Omit to auto-pick: a brief that matches a template uses it; anything else → `freeform`.
- `chain:<name>` → any Uniswap v4 chain in `chains.tsv` (run `./hook-deploy.sh chains` to list). Default `base-sepolia`. Testnets: `base-sepolia`, `unichain-sepolia`, `arbitrum-sepolia`. Mainnets (`testnet: false`, e.g. `base`, `ethereum`, `unichain`, `arbitrum`, `optimism`, `polygon`, `bnb`, `avalanche`, ...) require BOTH `arm:` and an explicit `chain:` - the skill never targets mainnet by default. `base-mainnet` is accepted as an alias for `base`.

## What it needs

- `HOOK_DEPLOYER_PRIVATE_KEY`: optional secret
- `ALCHEMY_API_KEY`: optional secret
- `ETHERSCAN_API_KEY`: optional secret

## Install

```bash
bin/add-skill aeonfun/aeon deploy-uni-hook
```

```yaml
skills:
  deploy-uni-hook: { enabled: true, schedule: "workflow_dispatch", var: "" }
```

## Related skills

- [Distribute Tokens](https://www.aeon.fun/skills/distribute-tokens): Two-phase contributor rewards - plan builds a tier-priced payout from the repo's merged-PR ranking; send executes it on-chain via Bankr Wallet API with per-recipient idempotency and dry-run
- [DeFi Overview](https://www.aeon.fun/skills/defi-overview): One-pass crypto read - tracked-protocol positions and health plus macro context, with regime take, DeFi verdict, biggest movers, yields, fees, breadth, Fear & Greed, and prediction markets
- [Finance District MCP](https://www.aeon.fun/skills/finance-district-mcp): Multichain non-custodial agent wallet via Finance District - check balances, prices, and best DeFi yields, move funds, swap, and make x402 paid API calls across EVM, Solana, Bitcoin, and Sui
- [Cortx Reliability](https://www.aeon.fun/skills/cortx-reliability): Check whether an x402 payment endpoint is reliably delivering value before spending USDC on it
- [Flovia](https://www.aeon.fun/skills/flovia): Live lookups through the Flovia MCP - Nansen smart money and token flows, CoinGecko markets, direct chain reads, Zerion wallets, Exa web search and Firecrawl page reads - on a free shared allowance
- [Compute Resell](https://www.aeon.fun/skills/compute-resell): Autonomous compute-reselling agent on Surplus Intelligence - resells free or low-cost provider compute across Bankr, AWS Bedrock, and Google Vertex (GCP) as one skill
