New advertisers: 50% off your first month with code FIRSTMONTHSee slots
uniswap avatar

V4 Hook Generator

Generates Uniswap v4 hook contracts via the OpenZeppelin Wizard MCP, with hook type and permission selection guidance.

skills.sh installs
718
GitHub stars
236
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers choosing among 14 hook base types, from BaseHook and BaseAsyncSwap to MEV, fee, and oracle hooks
  • Documents all 14 permission flags with the risk level and the use case that justifies enabling each one
  • Explains that permissions are encoded in the deployed address, requiring HookMiner salt mining and no later changes
  • Designed for developers building custom swap logic, dynamic fees, or oracle hooks, paired with v4-security-foundations

Install

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

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

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

Details

Repository
github.com/uniswap/uniswap-ai
Categories
Web3 & Crypto, AI Agents & LLM Apps
First seen
Jun 3, 2026

More from uniswap/uniswap-ai

All 10

Similar to V4 Hook Generator

More Web3 & Crypto