nextjs-react-redux-typescript-cursor-rules by mindrally/skills
npx skills add https://github.com/mindrally/skills --skill nextjs-react-redux-typescript-cursor-rules使用 Next.js、React、Redux Toolkit 和 TypeScript 构建可维护、可扩展应用程序的完整开发指南。
=== 而非 ==| 约定 | 用途 |
|---|---|
| PascalCase |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| 组件、类型定义、接口 |
| kebab-case | 目录和文件名(例如 user-profile.tsx) |
| camelCase | 变量、函数、方法、钩子、属性、props |
| UPPERCASE | 环境变量、常量、全局配置 |
handle(例如 handleClick)isLoading、hasError、canSubmit)use(例如 useAuth、useForm)function 关键字定义组件React.memo()useEffect 钩子中实现清理逻辑useCallback 记忆函数useMemokey props(切勿使用索引)Image、Link、Script、Headuse client:
Partial、Pick、Omit)interface 而非 typeuseState 用于组件级状态useReducer 用于复杂状态useContext 用于共享状态createSlice 组合状态/减速器/动作screen)每周安装数
121
代码仓库
GitHub 星标数
42
首次出现
2026年1月25日
安全审计
安装于
gemini-cli100
opencode99
codex93
cursor90
github-copilot86
amp82
Complete development guidelines for building maintainable, scalable applications with Next.js, React, Redux Toolkit, and TypeScript.
=== over ==| Convention | Usage |
|---|---|
| PascalCase | Components, type definitions, interfaces |
| kebab-case | Directory and file names (e.g., user-profile.tsx) |
| camelCase | Variables, functions, methods, hooks, properties, props |
| UPPERCASE | Environment variables, constants, global configurations |
handle (e.g., handleClick)isLoading, hasError, canSubmit)use (e.g., useAuth, useForm)function keywordReact.memo() strategicallyuseEffect hooksuseCallback for memoizing functionsuseMemo for expensive computationskey props in lists (never use index)Image, Link, Script, Headuse client only when necessary:
Partial, Pick, Omit)interface over type for objectsuseState for component-level stateuseReducer for complex stateuseContext for shared statecreateSlice for combined state/reducers/actionsscreen in RTL)Weekly Installs
121
Repository
GitHub Stars
42
First Seen
Jan 25, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
gemini-cli100
opencode99
codex93
cursor90
github-copilot86
amp82
TanStack Query v5 完全指南:React 数据管理、乐观更新、离线支持
2,500 周安装