用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/toss/react-simplikit --skill commit命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Selects and applies react-simplikit hooks, components and utils (useDebounce, useThrottle, useToggle, useBooleanState, useCounter, useList, useMap, useSet, useInterval, useTimeout, usePrevious, usePreservedCallback, useOutsideClickEffect, useIntersectionObserver, useStorageState, useLongPress, SwitchCase, Separated, mergeRefs, buildContext, ...) instead of hand-written equivalents, including the mobile-web keyboard, safe-area, visual viewport and body-scroll-lock hooks. Use when writing React state or effect logic, debouncing or throttling, boolean/counter/list/map/set state, intervals and timeouts, click-outside, long-press or double-click handling, viewport visibility or impression tracking, persisted state in localStorage/sessionStorage, conditional rendering, merging refs, React Context boilerplate, or SSR-safe browser access, and whenever the project depends on react-simplikit.
Migrates a codebase off the deprecated @react-simplikit/mobile package onto the react-simplikit root entry. Use when a project still imports @react-simplikit/mobile, when an install warns that the package is deprecated, or when someone asks how to migrate off it.
Create branches following repo conventions. Use when creating branches, starting new features.
正在显示 SKILL.md
| name | commit |
| description | Create commits following repo conventions. Use when committing changes, creating commit messages. |
| allowed-tools | Bash, Read, Glob, Grep |
/commit # Analyze changes and auto-commit
<type>(<scope>): <description>
| Type | Purpose |
|---|---|
| feat | New feature |
| fix | Bug fix |
| chore | Build, config |
| refactor | Refactoring |
| docs | Documentation |
| test | Tests |
| Category | Example |
|---|---|
| Item | useToggle, SwitchCase, mergeRefs |
| Area | docs, codemod, ci, plugin |
| None | Omit scope when the change spans the package |
feat(useDebounce): add a maxWait option
fix(useKeyboardHeight): ignore transient zero heights on Android
fix: correct SSR rendering logic
docs(useToggle): update the example
chore: add claude skills
git status - Check changed filesgit diff - Analyze changesgit add . + git commit