Token导航 LogoToken导航

Agent Skill · 研究检索

react-use-hooks(React USE hooks 搜索)

用于辅助前端页面、组件、样式和交互逻辑的开发与维护。它适合让 Agent 生成或审查 React、Next.js、Vue、Tailwind、CSS 等相关代码,整理组件结构,或定位布局和性能问题。使用时需要结合项目现有设计系统、路由和构建方式,避免只生成孤立片段;涉及页面改动时,应配合本地预览和构建检查确认视觉效果。

react-use-hooks 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为操作浏览器;许可证信息还不明确,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 60,042。

总安装 374周安装 15GitHub Stars 3下载 121核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:react-use-hooks(React USE hooks 搜索)
来源仓库:https://github.com/arindampradhan/react-use-skills
仓库路径:skills/react-use-hooks
安装命令:
npx skills add https://github.com/arindampradhan/react-use-skills --skill react-use-hooks
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/arindampradhan/react-use-skills --skill react-use-hooks

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

提供 React 自定义 Hook 的设计模板与使用示例。适用于封装业务逻辑、状态管理和副作用处理的通用场景。通过 npx 安装技能模块,可在多种宿主环境中调用。建议根据具体业务需求调整 Hook 的职责边界与参数设计。react-use-hooks 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/react-use-hooks

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/arindampradhan/react-use-skills --skill react-…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要操作浏览器,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

react-use-hooks 怎么安装?

在终端执行 npx skills add https://github.com/arindampradhan/react-use-skills --skill react-use-hooks。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

react-use-hooks 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

react-use-hooks 需要什么权限?

权限级别是操作浏览器。该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

react-use-hooks 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

react-use-hooks 用的人多吗?

公开数据是累计安装 374 次,近一周安装 15 次,下载 121 次,GitHub 3 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

react-use-hooks 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
react-use-hooks

React USE hooks 搜索 · 本页

3743操作浏览器未明确有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

React-Use Hooks

This skill is a decision-and-implementation guide for react-use hooks in React projects. It maps requirements to the most suitable react-use hook, applies the correct usage pattern, and prefers hook-based solutions over bespoke code to keep implementations concise, maintainable, and performant.

When to Apply

  • Apply this skill whenever assisting user development work in React.
  • Always check first whether a react-use hook can implement the requirement.
  • Prefer react-use hooks over custom code to improve readability, maintainability, and performance.
  • Map requirements to the most appropriate hook and follow the hook's invocation rule.
  • Please refer to the Invocation field in the below hooks table. For example: *NOTE* User instructions in the prompt or AGENTS.md may override a hook's default Invocation rule.

- AUTO: Use automatically when applicable. - EXTERNAL: Use only if the user already installed the required external dependency; otherwise reconsider, and ask to install only if truly needed. - EXPLICIT_ONLY: Use only when explicitly requested by the user.

Hooks

All hooks listed below are part of the react-use library, each section categorizes hooks based on their functionality.

IMPORTANT: Each hook entry includes a short Description and a detailed Reference. When using any hook, always consult the corresponding document in ./references for Usage details and Type Declarations.

Sensors

HookDescriptionInvocation
createBreakpointlaptopL: 1440, laptop: 1024, tablet: 768AUTO
useBatteryReact sensor hook that tracks battery status.AUTO
useGeolocationReact sensor hook that tracks user's geographic location. This hook accepts [position options](httpsAUTO
useHashReact sensor hook that tracks browser's location hash.AUTO
useHoverReact UI sensor hooks that track if some element is being hoveredAUTO
useHoverDirtyTracks mouse hover state using a ref (more direct than useHover).AUTO
useIdleReact sensor hook that tracks if user on the page is idle.AUTO
useIntersectionReact sensor hook that tracks the changes in the intersection of a target element with an ancestor eAUTO
useKeyReact UI sensor hook that executes a handler when a keyboard key is used.AUTO
useKeyboardJsReact UI sensor hook that detects complex key combos like detecting whenEXTERNAL
useKeyPressReact UI sensor hook that detects when the user is pressing a specificAUTO
useKeyPressEventThis hook fires keydown and keyup callbacks, similar to how useKeyAUTO
useLocationReact sensor hook that tracks brower's location.AUTO
useLongPressReact sensor hook that fires a callback after long pressing.AUTO
useMeasureReact sensor hook that tracks dimensions of an HTML element using the [Resize Observer API](https://AUTO
useMediaReact sensor hook that tracks state of a CSS media query.AUTO
useMediaDevicesReact sensor hook that tracks connected hardware devices.AUTO
useMotionReact sensor hook that uses device's acceleration sensor to track its motions.AUTO
useMouseReact sensor hooks that re-render on mouse position changes. useMouse simply tracksAUTO
useMouseHoveredExtended mouse tracking with options for bounded coordinates and hover-only tracking.AUTO
useMouseWheelReact Hook to get deltaY of mouse scrolled in window.AUTO
useNetworkStateTracks the state of browser's network connection.AUTO
useOrientationReact sensor hook that tracks screen orientation of user's device.AUTO
usePageLeaveReact sensor hook that fires a callback when mouse leaves the page.AUTO
usePinchZoomReact sensor hook that tracks the changes in pointer touch events and detects value of pinch differeAUTO
useScratchReact sensor hook that tracks state of mouse "scrubs" (or "scratches").AUTO
useScrollReact sensor hook that re-renders when the scroll position in a DOM element changes.AUTO
useScrollbarWidthHook that will return current browser's scrollbar width.AUTO
useScrollingReact sensor hook that keeps track of whether the user is scrolling or not.AUTO
useSearchParamReact sensor hook that tracks browser's location search param.AUTO
useSizeReact sensor hook that tracks size of an HTML element.AUTO
useStartTypingReact sensor hook that fires a callback when user starts typing. Can be usedAUTO
useWindowScrollReact sensor hook that re-renders on window scroll.AUTO
useWindowSizeReact sensor hook that tracks dimensions of the browser window.AUTO

UI

HookDescriptionInvocation
useAudioCreates <audio> element, tracks its state and exposes playback controls.AUTO
useClickAwayReact UI hook that triggers a callback when userAUTO
useCssReact UI hook that changes [CSS dynamically][gen-5]. Works like "virtual CSS" —AUTO
useDropTriggers on file, link drop and copy-paste.AUTO
useFullscreenDisplay an element full-screen, optional fallback for fullscreen video on iOS.AUTO
useSliderReact UI hook that provides slide behavior over any HTML element. Supports both mouse and touch evenAUTO
useSpeechReact UI hook that synthesizes human voice that speaks a given string.AUTO
useVibrateReact UI hook to provide physical feedback with device vibration hardware using the [Vibration API](AUTO
useVideoCreates <video> element, tracks its state and exposes playback controls.AUTO

Animations

HookDescriptionInvocation
useHarmonicIntervalFnSame as useInterval hook, but triggers all effects with the same delayAUTO
useIntervalA declarative interval hook based on Dan Abramov's article on overreacted.ioAUTO
useRafReact animation hook that forces component to re-render on each requestAnimationFrame,AUTO
useSpringReact animation hook that updates a single numeric value over time accordingEXTERNAL
useTimeoutRe-renders the component after a specified number of milliseconds.AUTO
useTimeoutFnCalls given function after specified amount of milliseconds.AUTO
useTweenReact animation hook that tweens a number between 0 and 1.AUTO
useUpdateReact utility hook that returns a function that forces componentAUTO

Side-Effects

HookDescriptionInvocation
useAsyncReact hook that resolves an async function or a function that returnsAUTO
useAsyncFnReact hook that returns state and a callback for an async function or aAUTO
useAsyncRetryUses useAsync with an additional retry method to easily retry/refresh the async function;AUTO
useBeforeUnloadReact side-effect hook that shows browser alert when user try to reload or close the page.AUTO
useCookieReact hook that returns the current value of a cookie, a callback to update the cookieAUTO
useCopyToClipboardCopy text to a user's clipboard.AUTO
useDebounceReact hook that delays invoking a function until after wait milliseconds have elapsed since the lastAUTO
useErrorReact side-effect hook that returns an error dispatcher.AUTO
useFaviconReact side-effect hook sets the favicon of the page.AUTO
useLocalStorageReact side-effect hook that manages a single localStorage key.AUTO
useLockBodyScrollReact side-effect hook that locks scrolling on the body element. Useful for modal and other overlayAUTO
usePermissionReact side-effect hook to query permission status of browser APIs.AUTO
useRafLoopThis hook call given function within the RAF loop without re-rendering parent component.AUTO
useSessionStorageReact side-effect hook that manages a single sessionStorage key.AUTO
useThrottleReact hooks that throttle.AUTO
useThrottleFnReact hook that invokes a function and then delays subsequent function calls until after wait millisAUTO
useTitleReact side-effect hook that sets title of the page.AUTO

Lifecycles

HookDescriptionInvocation
useCustomCompareEffectA modified useEffect hook that accepts a comparator which is used for comparison on dependencies insAUTO
useDeepCompareEffectA modified useEffect hook that is using deep comparison on its dependencies instead of reference equAUTO
useEffectOnceReact lifecycle hook that runs an effect only once.AUTO
useEventReact sensor hook that subscribes a handler to events.AUTO
useIsomorphicLayoutEffectuseLayoutEffect that does not show warning when server-side rendering, see [Alex Reardon's articleAUTO
useLifecyclesReact lifecycle hook that call mount and unmount callbacks, whenAUTO
useLoggerReact lifecycle hook that console logs parameters as component transitions through lifecycles.AUTO
useMountReact lifecycle hook that calls a function after the component is mounted. Use useLifecycles if yoAUTO
useMountedState> NOTE!: despite having State in its name *this hook does not cause component re-render*.AUTO
usePromiseReact Lifecycle hook that returns a helper function for wrapping promises.AUTO
useShallowCompareEffectA modified useEffect hook that is using shallow comparison on each of its dependencies instead of reAUTO
useUnmountReact lifecycle hook that calls a function when the component will unmount. Use useLifecycles if yAUTO
useUnmountPromiseA life-cycle hook that provides a higher order promise that does not resolve if component un-mounts.AUTO
useUpdateEffectReact effect hook that ignores the first invocation (e.g. on mount). The signature is exactly the saAUTO

State

HookDescriptionInvocation
createGlobalStateA React hook that creates a globally shared state.AUTO
createMemoHook factory, receives a function to be memoized, returns a memoized React hook,AUTO
createReducerFactory for reducer hooks with custom middleware with an identical API as [React's useReducer](httAUTO
createReducerContextFactory for react context hooks that will behave just like React's useReducerAUTO
createStateContextFactory for react context hooks that will behave just like React's useStateAUTO
useBooleanAlias for useToggle. Boolean state hook with a toggle function.AUTO
useCounterReact state hook that tracks a numeric value.AUTO
useDefaultReact state hook that returns the default value when state is null or undefined.AUTO
useFirstMountStateReturns true if component is just mounted (on first render) and false otherwise.AUTO
useGetSetReact state hook that returns state getter function instead ofAUTO
useGetSetStateA mix of useGetSet and useGetSetState.AUTO
useLatestReact state hook that returns the latest state as described in the React hooks FAQAUTO
useListTracks an array and provides methods to modify it.AUTO
useMapReact state hook that tracks a value of an object.AUTO
useMediatedStateA lot like the standard useState, but with mediation process.AUTO
useMethodsReact hook that simplifies the useReducer implementation.AUTO
useMultiStateValidatorEach time any of given states changes - validator function is invoked.AUTO
useNumberAlias for useCounter. Numeric counter state with utility functions.AUTO
useObservableReact state hook that tracks the latest value of an Observable.EXTERNAL
usePreviousReact state hook that returns the previous state as described in the React hooks FAQAUTO
usePreviousDistinctJust like usePrevious but it will only update once the value actually changes. This is important wAUTO
useQueueReact state hook implements simple FIFO queue.AUTO
useRafStateReact state hook that only updates state in the callback of requestAnimationFrameAUTO
useRendersCountTracks component's renders count including the first render.AUTO
useSetReact state hook that tracks a SetAUTO
useSetStateReact state hook that creates setState method which works similar to howAUTO
useStateListProvides handles for circular iteration over states list.AUTO
useStateValidatorEach time given state changes - validator function is invoked.AUTO
useStateWithHistoryStores defined amount of previous state values and provides handles to travel through them.AUTO
useToggleReact state hook that tracks value of a boolean.AUTO

Miscellaneous

HookDescriptionInvocation
useEnsuredForwardedRefReact hook to use a ForwardedRef safely.AUTO

平台分布

Codex

32.4%
按下载量换算39

Claude

32.55%
按下载量换算39

Cursor

18.98%
按下载量换算23

Gemini CLI

9.41%
按下载量换算11

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills