shadcn-hooks
Skill by Debbl
shadcn-hooks is an agent skill that guides an AI assistant to pick and apply React hooks from the shadcn-hooks library. It is for developers building React and Next.js features who want concise, maintainable code.
Install shadcn-hooks
Built from the published package, never by AI.
git clone --depth 1 https://github.com/Debbl/shadcn-hooks /tmp/shadcn-hooks && mkdir -p ~/.claude/skills && cp -r /tmp/shadcn-hooks/skills/shadcn-hooks ~/.claude/skills/shadcn-hooksRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/Debbl/shadcn-hooks /tmp/shadcn-hooks && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/shadcn-hooks/skills/shadcn-hooks ~/.gemini/antigravity-cli/skills/shadcn-hooksAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
shadcn-hooks is an agent skill that acts as a decision and implementation guide for the shadcn-hooks React hook library. It maps a requirement to the most suitable hook, applies the correct usage pattern, and prefers hook-based solutions over custom code. The skill groups its functions into State, Advanced, Lifecycle, Browser, Dev and External categories. Each entry links to a reference document with usage details and type declarations.
The skill checks each hook's Invocation field before use. Hooks marked AUTO can be used whenever they fit. Hooks marked EXTERNAL are used only if the user already installed the required external dependency. Hooks can be added with the shadcn CLI, which copies only the hooks needed into the project, or installed through the shadcn-hooks npm package. It is aimed at developers building React features in projects that use React 18 or above.
Written from the project's SKILL.md and checked against it.
What it can do
- Hook selectionMaps a React requirement to the most suitable shadcn-hooks function.
- State hooksProvides hooks such as useBoolean, useCounter, useDebounce and useToggle for state.
- Advanced hooksCovers helpers like useLatest, useLockFn, useMemoizedFn and usePrevious.
- Lifecycle hooksCovers effect and timer hooks such as useDebounceEffect, useInterval, useMount and useUnmount.
- Browser hooksCovers browser APIs such as useClipboard, useElementSize, useHover and useIsOnline.
- External hooksCovers useMcp, useQuery, useStickToBottom and useSWR when their dependencies are installed.
- Dev hookProvides useWhyDidYouUpdate, which logs which props changed between renders.
What you need
- React 18 or above project
- npm or npx to install hooks
- External dependency installed for EXTERNAL hooks
Try asking
- Use useDebounce to delay this search input's value in my React component.
- Replace my custom click-outside logic with a shadcn-hooks hook.
- Use useLockFn so this async submit handler cannot run twice at once.
Good to know
- EXTERNAL hooks are used only if the user already installed the required dependency.
- useWhyDidYouUpdate is for debugging only.
- useEffectEvent is a ponyfill for React 19's useEffectEvent.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/shadcn-hooks/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to shadcn-hooks
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
shadcn-hooks: common questions
Does shadcn-hooks need extra packages?
The source says the shadcn CLI copies only the hooks you need and adds zero extra runtime dependencies. The External hooks need their own libraries, such as use-mcp or @tanstack/react-query, to be installed first.
Which React version does shadcn-hooks support?
The skill's compatibility note says it requires a React 18 or above project. It also states that it applies to React and Next.js work.
What does the Invocation field mean?
AUTO means the hook can be used automatically when it fits the requirement. EXTERNAL means it should be used only if the user already installed the required external dependency.
How do I install shadcn-hooks?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is shadcn-hooks free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is shadcn-hooks safe to use?
It scores 74 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to shadcn-hooks?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
