Skip to main content
在 Manus 中运行任何 Skill
一键导入

react-conventions

星标2
分支0
更新时间2026年5月27日 15:49

Use this skill whenever you are about to create, modify, or refactor React code in this project's `frontend/` directory — including components (.tsx files under `components/` or `views/`, plus `App.tsx`), custom hooks (.ts files under `hooks/`), or any file that imports from `react`. Enforces the project's React rules: the 50-line component limit, functional components only, `useMemo`/`useCallback` for expensive computations, and the `use` prefix for custom hooks. Trigger on any task that involves writing JSX/TSX in this repo, even when the user does not name a specific rule — phrases like "build a component", "add a view", "create a hook", "wire up this page", "refactor this React code", "fix this re-render", or "split this component" should all invoke this skill.

安装

用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。

SKILL.md
readonly