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

react-component-discipline

星标2
分支0
更新时间2026年4月10日 23:59

Use when writing, reviewing, or refactoring React components — especially those with hooks, callbacks, modals, or store interactions. Enforces separation of data logic from UI, keeps dependency arrays small enough to reason about, and prevents the emergent complexity bugs (infinite render loops, stale closures) that arise when components accumulate too many concerns. Use this skill whenever you see a useCallback or useMemo with more than five dependencies, a component file over 150 lines, or any mix of store orchestration and JSX in the same function.

安装

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

SKILL.md
readonly