deploy-uni-hook

deploy-uni-hook is a skill for Claude Code, Codex from aaronjmars/aeon-agent. It costs 123 tokens per session (6,987 once invoked), scanned A, a copy of deploy-uni-hook, MIT.

A workflow for creating and testing Uniswap v4 hooks, which are smart-contract callbacks that customize trading pools, on supported blockchain networks.

In plain words
What is it for?
Use it to generate a hook from a brief or template, create a test pool, simulate behavior, audit for risky patterns, and deploy after the required checks pass.
Why use it?
It checks the generated contract through compilation, simulation, security scans, and tests before allowing a real deployment.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 skills/submit-hook/submit-univ4.py \.

Good fit Use it to generate a hook from a brief or template, create a test pool, simulate behavior, audit for risky patterns, and deploy after the required checks pass.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/aaronjmars/aeon-agent
agentmods
npx agentmods add skills/aaronjmars/aeon-agent/deploy-uni-hook

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for deploy-uni-hook

README.md
[![agentmods](https://agentmods.dev/badge/skills/aaronjmars/aeon-agent/deploy-uni-hook/github.svg)](https://agentmods.dev/skills/aaronjmars/aeon-agent/deploy-uni-hook)
Your own site
<a href="https://agentmods.dev/skills/aaronjmars/aeon-agent/deploy-uni-hook"><img src="https://agentmods.dev/badge/skills/aaronjmars/aeon-agent/deploy-uni-hook/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for deploy-uni-hook

Your own site · 80×15
<a href="https://agentmods.dev/skills/aaronjmars/aeon-agent/deploy-uni-hook"><img src="https://agentmods.dev/badge/skills/aaronjmars/aeon-agent/deploy-uni-hook.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 123 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,987 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00123 $0.06987
Opus 5.5 $0.00049 $0.02795
Sonnet 5.5 $0.00025 $0.01397
Haiku 4.5 $0.00012 $0.00699

Measured 1mo ago against content hash 6d9e2cb969f7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

deploy-uni-hook scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (hook-deploy.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to deploy-uni-hook — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/deploy-uni-hook/SKILL.md · 192 lines

How it starts

The opening of the file, as written. The whole thing — 192 lines — stays where its author put it; the contents beside it link to each section on GitHub.

${var} — the hook brief. Grammar: [arm:][template:<name>] [chain:<name>] <brief>

  • `` (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.

Today is ${today}. 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.

Why this design

A hook binding is immutable and a bad hook can brick a pool or steal funds. So the gates sit BEFORE the deploy: two of them (dry-run then arm:), a mandatory simulation, and idempotent state. Everything after the broadcast is just recording what already happened — appended to memory/state/hook-deploys.json on main, no PR (there is nothing left to review). The Foundry flow is the proven one — mine a CREATE2 salt so the address carries the right hook-flag bits, deploy, initialize the pool, add liquidity, run one swap.

Safety contract (do not skip)

  1. Mainnet needs a triple lock. Never target a testnet: false chain unless ${var} has BOTH arm: AND an explicit chain:<mainnet-name> — AND the instance has HOOK_MAINNET_OK=1 set as a repo variable (a third, operator-level lock enforced inside hook-deploy.sh, exit 7; store it as a variable, not a secret - a secret value of 1 masks every 1 in the run log, so tx hashes and links print as ***). An instance that never authorized mainnet cannot broadcast there even if an armed message asks it to. This skill must only run on an instance whose inbound path is owner-gated (TELEGRAM_ALLOWED_USER_ID / the multi-channel allowlist) — a mainnet deploy spends real gas, so an untrusted sender must never be able to dispatch it. On a mainnet chain, first read the deployer balance with cast balance and abort (DEPLOY_HOOK_UNDERFUNDED) if it cannot cover the simulation's Estimated amount required; hook-deploy.sh independently enforces a funding floor (exit 8), an optional MAX_GAS_GWEI gas-price ceiling (exit 9), and warns if the deployer holds more than HOOK_MAX_FLOAT_ETH (default 0.25) — a deploy key must hold gas float only, never LP or treasury capital. Log a clear MAINNET warning in the output.
  2. Simulate before every broadcast. If the simulation reverts, do not broadcast. Report the revert and exit DEPLOY_HOOK_SIM_FAILED.
  3. Dry-run is the default. Broadcast only when ${var} starts with arm:.
  4. Key hygiene. The deployer key is a burner. Never print it. Never put it on a shell command line — always go through ./hook-deploy.sh, which reads it from the env inside the script.
  5. Idempotency. Before broadcasting, read memory/state/hook-deploys.json. If an identical brief already deployed within the last hour, do not re-deploy. The deploy script is also idempotent at the address level: it deploys to the canonical address (the first flag-matching CREATE2 salt for this exact (creationCode, flags, PoolManager)). If that address already holds code, an identical hook is already live, so the script logs ALREADY_DEPLOYED <addr> and does nothing — the runner reports the existing address instead of deploying a duplicate. (HookMiner itself skips occupied addresses, so without this check a re-run would silently deploy another copy at a new address.)

Read the full file on GitHub · 192 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +17 lines · +16 tokens per session 6d9e2cb969f7
  2. 1mo ago Changed · +2 lines 8e88807e17f9
  3. 1mo ago Changed · +46 lines 605b296d976d
  4. 1mo ago First seen · 127 lines · 107 tokens per session scan A e232a3a30edf

Subscribe to this mod's changes

deploy-uni-hook is a skill published in the GitHub repository aaronjmars/aeon-agent (12 stars, last pushed 8d ago), licensed MIT. It adds 123 tokens to every session and 6,987 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to deploy-uni-hook, differing in 0 lines, and is treated as a copy.

Related

Other skills, from other repositories

strategy-spec

Generates a backtestable, regime-gated mean-reversion TRADING STRATEGY SPEC for a BSC / PancakeSwap token using CoinMarketCap x402 DEX data — and decides what data is even worth paying for first (honest free-vs-paid routing). Produces rules + parameters + a 180-day backtest with a buy-and-hold benchmark. A strategy…

romudille-bit/agentpay · 177 tokens

aawp

AAWP (AI Agent Wallet Protocol) — the only crypto wallet protocol built exclusively for AI Agents on EVM-compatible blockchains and Solana. Not for humans. The signer is the AI Agent itself, cryptographically bound at wallet creation. Supports wallet lifecycle management, token transfers, DEX swaps, cross-chain…

aawp-ai/aawp · 90 tokens

clicks-protocol

Integrate Clicks Protocol settlement routing into AI agent projects on Base. Use when building agents that hold, earn, receive, or transfer USDC, when asked about agent treasury management, x402 payment settlement, idle USDC routing, or agent referral attribution.

clicks-protocol/clicks-protocol · 57 tokens

clicks

Write and read on-chain agent reputation on Base via ERC-8004. Use when an AI agent finishes a task and needs to attest the outcome, or before delegating to another agent when trust matters. Backed by the Clicks Protocol Attestor Schema V1 on Base mainnet.

clicks-protocol/clicks-protocol · 61 tokens

alien-plugg-x402

38 paid x402 API endpoints for AI agents — Zora crypto analysis, Robinhood Chain tokenized stocks, on-chain intelligence, whale tracking, and utilities. MCP-compatible. Flat $0.003/call via USDC micropayments on Base.

michaelhutchings626-hub/alien-plugg-x402 · 57 tokens

agentpay-route

Find, judge, and pay for the best paid x402 tool/API for a need, within a budget. Use when the agent needs a capability behind a paid API and must choose a provider: "which x402 service / paid API for X", "find a tool for X under $Y", comparing providers, avoiding overpriced or fake/stub endpoints, or routing agent…

romudille-bit/agentpay · 100 tokens