Skip to main content
Back to registry

v4-security-foundations

uniswap/uniswap-ai

Security-first guide for building Uniswap v4 hooks. Hook vulnerabilities can drain user funds—understand these concepts before writing any hook code.

Installs229
Install command
npx skills add https://github.com/uniswap/uniswap-ai --skill v4-security-foundations
Security audits
Gen Agent Trust HubPASS
SocketPASS
SnykWARN
About this skill
Security-first guide for building Uniswap v4 hooks. Hook vulnerabilities can drain user funds—understand these concepts before writing any hook code. Before writing code, understand the v4 security context: All 14 hook permissions with associated risk levels: The BEFORE_SWAP_RETURNS_DELTA permission (bit 10) is the most dangerous hook permission. A malicious hook can: Before interacting with ANY hook that has beforeSwapReturnDelta: true : NoOp patterns are valid for: But each requires careful implementation and audit. v4 uses a credit/debit system through the PoolManager: The PoolManager tracks what each address owes or is owed. At transaction end, all debts must be settled. Every hook callback MUST verify the caller: Without this check: The sender parameter is the router, not the end user. For hooks that need user identity: Not all tokens behave like standard ERC-20s: Start with all permissions disabled. Enable only what you need: See references/base-hook-template.md for a complete implementation template.

Source description provided by the upstream skill listing. Community reviews and install context appear in the sections below.

Community Reviews

Latest reviews

Sign in to review

No community reviews yet. Be the first to review.

Browse this skill in context
FAQ
What does v4-security-foundations do?

Security-first guide for building Uniswap v4 hooks. Hook vulnerabilities can drain user funds—understand these concepts before writing any hook code.

Is v4-security-foundations good?

v4-security-foundations does not have approved reviews yet, so SkillJury cannot publish a community verdict.

What agent does v4-security-foundations work with?

v4-security-foundations currently lists compatibility with codex, gemini-cli, opencode, cursor, kimi-cli, amp, github-copilot.

What are alternatives to v4-security-foundations?

Skills in the same category include telegram-bot-builder, flutter-app-size, sharp-edges, iterative-retrieval.

How do I install v4-security-foundations?

npx skills add https://github.com/uniswap/uniswap-ai --skill v4-security-foundations

Related skills

More from uniswap/uniswap-ai

Related skills

Alternatives in Software Engineering