ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified developer tools Safety 5/5

design-hook

Design a Uniswap V4 hook architecture without code generation. Use when user wants to plan a hook, understand which callbacks to use, or review an architecture before building. Returns a design document, not code.

Why use this skill?

Plan your Uniswap V4 hook architecture with the design-hook skill. Get expert guidance on callbacks, gas optimization, and state management for your DeFi projects.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/wpank/design-hook
Or

What This Skill Does

The design-hook skill is a specialized architectural planning tool for developers building on Uniswap V4. It acts as a technical consultant that translates high-level hook concepts into structured, low-level technical specifications. Instead of outputting raw Solidity code, it provides a comprehensive architectural blueprint, focusing on hook logic, callback selection, bitmask calculation, and gas optimization. By leveraging the underlying hook-builder agent, it ensures that your design adheres to the strict requirements of the Uniswap V4 protocol, preventing common pitfalls before a single line of code is written.

Installation

To integrate this skill into your OpenClaw environment, execute the following command in your terminal: clawhub install openclaw/skills/skills/wpank/design-hook

Use Cases

This skill is ideal for DeFi engineers and researchers in the early stages of the development lifecycle. Use it when you are defining the mechanism for a new liquidity pool feature, such as a custom TWAMM, dynamic fee scaling based on off-chain data, or complex limit order management. It is also highly effective for architectural reviews, allowing you to validate if your proposed callback strategy is gas-efficient or if it violates any protocol-level constraints. Whether you are brainstorming a prototype or performing a security audit of a conceptual model, this skill provides the necessary technical rigor.

Example Prompts

  1. "Design a hook for a Uniswap V4 pool that implements a time-weighted average market maker (TWAMM). What callbacks do I need?"
  2. "I need a hook that applies a dynamic fee based on current volatility from a Chainlink oracle. Can you draft an architecture document for this?"
  3. "Help me think through a hook design that enforces a custom range constraint for LPs. What are the security considerations and gas overheads?"

Tips & Limitations

  • Be specific: The more details you provide regarding your constraints (e.g., specific gas budgets or external oracle dependencies), the more accurate the gas estimation will be.
  • Design-only: This skill will not output functional Solidity code. It is meant to be the 'brain' phase of your development process.
  • Iterative planning: Feel free to ask the agent to iterate on the design if the initial gas estimates exceed your requirements or if you identify edge cases that need to be addressed in the logic.

Metadata

Author@wpank
Stars919
Views1
Updated2026-02-12
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-wpank-design-hook": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags(AI)

#uniswap#defi#web3#architecture#smart-contracts
Safety Score: 5/5