Skip to main content
skill CX Codex

ahooks — Claude Code skill: what it does, how to install

Reference skill for the ahooks React library: provides recipes, TypeScript patterns, and guidance for over 76 custom hooks.

no license 1 installs ★ 15 updated 2026-01-21

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add whinc/my-claude-plugins --skill ahooks -a claude-code
Open on GitHub

What ahooks does

This skill supplies your coding assistant with deep knowledge of the ahooks ecosystem. It details hook signatures and implementation patterns across 9 categories, covering state management (useSetState, useBoolean), component lifecycle, browser APIs, storage, and debounced events.

The tool shines when designing complex UI workflows. It explains how to structure server requests with polling or caching via useRequest, connect table pagination, or sync component state with browser storage.

Your project must have the actual ahooks package installed in node_modules for generated imports to run without errors.

What it helps with

  • configure API queries with pagination, retry logic, and caching using useRequest
  • migrate bulky component state from standard useState to useSetState or useToggle
  • optimize heavy re-renders and rapid input events using useDebounce or useThrottle
  • handle DOM events, scroll metrics, and interval timers without manual cleanup boilerplate

Example prompts for the agent

  • Show how to set up server pagination and result caching with useRequest.
  • Refactor this complex form state from useState to useSetState.
  • How do I debounce an input search field using useDebounce?

How to install ahooks

1Skills CLI (Vercel)

npx skills add whinc/my-claude-plugins --skill ahooks -a claude-code

2Manually: put the files in place

~/.claude/skills/ahooks/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/ahooks/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about ahooks

How to install ahooks in Claude Code?

Run npx skills add whinc/my-claude-plugins --skill ahooks -a claude-code in your terminal.

What does the ahooks skill do?

It gives your assistant instant reference material for all 76+ ahooks utilities, including lifecycle helpers and TypeScript typings.

Does this skill require network access during code generation?

No, reference files and patterns are bundled locally inside the installed skill directory.

Similar skills

All skills for Frontend and UI →

Project sponsors

Companies that keep this analytics open