# Uniswap V4

> Uniswap v4 core pool logic — singleton PoolManager, unlock/callback, pool actions, hooks, and types.

- Skill: `hairyf/uniswap-v4` (Agent Skill, multi-file: 7 files)
- Install (CLI): `npx skillmds@latest add hairyf/uniswap-v4`
- Raw SKILL.md: https://api.skillmd.com/api/skills/hairyf/uniswap-v4/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: hairyf (https://skillmd.com/u/hairyf)
- Updated: 2026-09-10
- Page: https://skillmd.com/skills/hairyf/uniswap-v4

---


> Skill based on Uniswap v4 Core (Uniswap/v4-core), generated at 2026-02-09.

Uniswap v4 is an AMM with a singleton PoolManager: all pool state lives in one contract. Interactions go through `unlock` → `unlockCallback`, where callers perform swaps, liquidity changes, and donations, then settle balance deltas before the callback returns. Pools can attach hooks for lifecycle callbacks (initialize, add/remove liquidity, swap, donate).

## Core References

| Topic | Description | Reference |
|-------|-------------|-----------|
| Architecture | Singleton, unlock/callback flow, delta settlement | [core-architecture](references/core-architecture.md) |
| Unlock callback | IUnlockCallback, when to use unlock, security | [core-unlock-callback](references/core-unlock-callback.md) |
| Pool actions | initialize, swap, modifyLiquidity, donate, take, settle, sync, mint, burn, clear | [core-pool-actions](references/core-pool-actions.md) |
| Types | PoolKey, PoolId, Currency, BalanceDelta, ModifyLiquidityParams, SwapParams | [core-types](references/core-types.md) |

## Features

### Hooks

| Topic | Description | Reference |
|-------|-------------|-----------|
| Hooks | IHooks lifecycle, address-based flags, before/after callbacks | [features-hooks](references/features-hooks.md) |

