What problem does it solve?
Manually writing Uniswap v4 hook contracts requires precise permission configuration, address mining, and security checks that are error-prone and can lead to fund loss if misconfigured. This skill eliminates that manual overhead by generating production-ready hook code via the OpenZeppelin Contracts Wizard.
Core Features & Use Cases
- Guided Hook Type Selection: Choose the correct base hook for use cases including MEV protection, custom swap curves, limit orders, oracle integrations, and dynamic fee logic.
- Automated Configuration: Set permissions, utility libraries, share tokens, and access control with clear guidance on trade-offs and risk levels for each option.
- Canonical MCP Integration: Assemble the correct JSON payload to invoke the OpenZeppelin Contracts Wizard MCP tool and receive ready-to-compile Solidity code.
- Security Guardrails: Includes mandatory pre-deployment security checks and integration with the v4-security-foundations companion skill to prevent common hook vulnerabilities.
Quick Start
Use the v4-hook-generator skill to create a custom AntiSandwichHook for your Uniswap v4 pool with MEV protection and ownable access control enabled.