uniswap avatar

V4 Hook Generator

Generates Uniswap v4 hook contracts through the OpenZeppelin Contracts Wizard MCP tool. You pick from 13 hook types (custom curves, dynamic fees, MEV protection, oracles, etc.), configure 14 permission flags, choose utility libraries, and it produces the MCP JSON call that outputs Solidity code. The decision table maps goals to hook types, which is helpful since choosing BaseCustomCurve versus BaseDynamicFee has real consequences. The permission guidance is unusually detailed, flagging beforeSwapReturnDelta as a critical NoOp attack vector. Ships with a companion security audit skill because hook misconfigurations can drain funds. Aimed at teams building production hooks who need scaffolding that encodes v4's address-based permission system correctly from the start.

skills.sh installs
714
GitHub stars
236
last updated
Aug 21, 2026

Install

$ npx -y skills add uniswap/uniswap-ai --skill v4-hook-generator --agent claude-code

Installs into .claude/skills of the current project.

Files

v4 Hook Generator

Generate Uniswap v4 hook contracts via the OpenZeppelin Contracts Wizard MCP tool. This skill guides you through selecting the right hook type, configuring permissions and utilities, assembling the canonical MCP JSON, and invoking the MCP tool to produce ready-to-compile Solidity code.

Security companion: Generated hook code touches fund-handling contracts. Always apply the v4-security-foundations skill immediately after generation to audit permissions, delta accounting, and access control before deploying to any network.

When to Use This Skill

Use this skill when you need to:

  • Scaffold a new Uniswap v4 hook contract from scratch
  • Select the right base hook type for a specific use case (fees, MEV protection, oracles, etc.)
  • Configure hook permissions, utility libraries, shares, and access control
  • Produce the canonical MCP tool call JSON to invoke the OpenZeppelin Contracts Wizard
  • Understand trade-offs between hook configuration options before committing to an implementation

Sponsors

Details

Repository
github.com/uniswap/uniswap-ai
Categories
Frontend Development, AI & Agent Building, Automation & Workflows
First seen
Jun 3, 2026

More from uniswap/uniswap-ai

All 10
1alirezarezvani avatardependency-auditoralirezarezvani/claude-skillsAudit and manage dependencies across multi-language projects. Identifies vulnerabilities, license conflicts, transitive dependency risks, and safe-upgrade paths711skills.sh installs
2marswaveai avatarmusicmarswaveai/skillsGenerate, remix, extend, edit, and analyze AI music (Mureka). Triggers on: "音乐", "music", "生成音乐", "generate music", "翻唱", "cover", "混音", "remix", "续写", "extend"710skills.sh installs
3mohitmishra786 avatarcpu-cache-optmohitmishra786/low-level-dev-skillsCPU cache optimization skill for C/C++ and Rust. Use when diagnosing cache misses, improving data layout for cache efficiency, using perf stat cache counters, u709skills.sh installs
4mohitmishra786 avatarelf-inspectionmohitmishra786/low-level-dev-skillsELF binary inspection skill for Linux. Use when examining ELF executables or shared libraries with readelf, objdump, nm, or ldd to understand symbol visibility,702skills.sh installs
5patricio0312rev avatarpostman-collection-generatorpatricio0312rev/skillsGenerates Postman collection JSON files from Express, Next.js, Fastify, Hono, or other API routes. Scans route definitions, extracts endpoints, methods, params,699skills.sh installs
6ruvnet avatarbrowser-extractruvnet/rufloExtract structured data via stored browser-templates or one-shot DOM queries, with mandatory AIDefence PII + prompt-injection gates before content reaches the m698skills.sh installs