
from uniswapv4-hooks-skill15
Guides secure development, review, and auditing of Uniswap v4 hook contracts with threat models, permission guidance, and safe templates.
Provides a comprehensive security-focused assistant for developing and auditing Uniswap v4 hook contracts. Covers threat modelling, permission flags, delta accounting, access control patterns, common vulnerability patterns, testing recommendations, and a secure base hook template. Includes examples of dangerous patterns and defensive coding practices.
Activate when working on Uniswap v4 hook development, reviewing hook contracts, performing security audits, or implementing custom AMM logic that uses hooks. Trigger on keywords like uniswap, v4, hook, PoolManager, beforeSwap, afterSwap, or when the user invokes /uniswap-v4-hooks.
Best used by code-review and security-focused agents capable of reading Solidity and recommending secure patterns.
Pure reference skill for secure Uniswap V4 hook development. No scripts to execute. SKILL.md is a thorough security guide covering threat models, dangerous patterns (beforeSwapReturnDelta rug pull vector), access control, delta accounting, and deployment checklists. Well-written with clear GOOD/BAD code examples and risk scoring framework.
Contains example malicious code (NoOp rug pull) clearly labeled as MALICIOUS EXAMPLE - DO NOT USE for educational purposes. This is appropriate for a security guide. No security concerns with the skill itself.