一键导入
react-native-clean-code-standards
Strict coding standards, naming conventions, file size limits, and typing rules.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Strict coding standards, naming conventions, file size limits, and typing rules.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Mandatory rules and components for handling keyboard avoidance smoothly in the React Native app.
How to correctly handle and format protobuf Timestamp dates sent by the API Gateway to prevent "Invalid Date" issues.
Senior-level React Native architecture and patterns for Expo 54 apps.
Guidelines for managing server state, queries, and API clients in React Native.
Best practices for implementing forms with React Hook Form and Zod.
Mandatory rule to never use deprecated APIs or ignore deprecation warnings.
| name | React Native Clean Code & Standards |
| description | Strict coding standards, naming conventions, file size limits, and typing rules. |
Follow these strict rules for every piece of code you write in this project. Quality and consistency are non-negotiable.
kebab-case for all files and directories (e.g., user-profile.tsx, auth-context.ts, format-date.utils.ts).PascalCase (e.g., export const UserProfile = () => ...).camelCase.UPPER_SNAKE_CASE for global, non-exported constant primitives.*.types.ts files (e.g., user-profile.types.ts).TypeScript is used to guarantee safety. You are explicitly forbidden to use escape hatches:
any: Never use any.unknown: Avoid unknown unless dealing with a generic catch (error) block, but cast it using Zod or error guards immediately.never: Avoid assigning never manually.src/components/ui/) must be "dumb" (purely presentational). They receive data via props and emit events via callbacks.src/screens/) act as "smart" containers. They connect to React Query, manage Context, and orchestrate the UI components.