‹ 首页

new-hook

@gaia-react · 收录于 1 周前

Scaffold a new custom React hook with a Vitest test file. Use this skill whenever the user asks to "create a hook", "make a useFoo hook", "scaffold a custom React hook", "add a hook under app/hooks", or describes a piece of reusable React state/effect logic that warrants extraction into a named `use*` hook.

适合你,如果需要快速为 React 组件提取可复用的状态逻辑并自动生成测试。

/ 通过 npx 安装 校验哈希
npx oh-my-skill add gaia-react/gaia/new-hook
/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- gaia-react/gaia/new-hook
/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify gaia-react/gaia/new-hook
安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
19GitHub stars
~160上下文体积 · 单文件
索引托管

评论

登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。