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.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/wpank/design-hookWhat 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
- "Design a hook for a Uniswap V4 pool that implements a time-weighted average market maker (TWAMM). What callbacks do I need?"
- "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?"
- "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
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 skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-wpank-design-hook": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Related Skills
mermaid-diagrams
Create software diagrams using Mermaid syntax. Use when users need to create, visualize, or document software through diagrams including class diagrams, sequence diagrams, flowcharts, ERDs, C4 architecture diagrams, state diagrams, git graphs, and other diagram types. Triggers include requests to diagram, visualize, model, map out, or show the flow of a system.
api-design-principles
Skill by wpank
auto-context
Automatically read relevant context before major actions. Loads TODO.md, roadmap.md, handoffs, task plans, and other project context files so the AI operates with full situational awareness. Use when starting a task, implementing a feature, refactoring, debugging, planning, or resuming a session.
clear-writing
Write clear, concise prose for humans — documentation, READMEs, API docs, commit messages, error messages, UI text, reports, and explanations. Combines Strunk's rules for clearer prose with technical documentation patterns, structure templates, and review checklists.
track-performance
Track the performance of Uniswap LP positions over time — check which positions need attention, are out of range, or have uncollected fees. Use when the user asks how their positions are doing.