
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
What it does
- Covers choosing among 14 hook base types, from
BaseHookandBaseAsyncSwapto 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
HookMinersalt 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 -yInstalls 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-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
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 10Similar to V4 Hook Generator
More Web3 & Crypto
v4-security-foundationsSkilluniswap/uniswap-ai1.2K installsSecurity-first guide for Uniswap v4 hooks covering threat models, permission risks, and the NoOp rug pull attack.
swap-integrationSkilluniswap/uniswap-ai2.3K installsIntegration guide for Uniswap swaps via Trading API, Universal Router SDK, or direct smart contract calls.
agent-kit-pluginPluginhedera-dev/hedera-skills37 starsComprehensive guides for extending the Hedera Agent Kit: creating BaseTool plugins, writing observation hooks, and writing blocking policies
Ingravity Autonomous EVM Security & DeFi Guard (x402 v2)MCP serverdms1979Pre-sign EVM firewall, ERC-20 honeypot scanner, and DeFi math and Solidity audit tools over x402.
hyperliquidSkillstarchild-ai-agent/official-skills8.7K installsTrading, market data, and wallet analytics for Hyperliquid perps, spot, and RWA through script-delivery tools.