
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-codeInstalls 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-foundationsskill 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