executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
react-component-hook-guidelines-cnReact 组件、页面组件、自定义 Hook 的拆分、重构与评审技能。用户提到“拆组件”“拆 Hook”“这个组件太大了”“这个 Hook 太重了”“帮我理一下这个页面”“这段 React 怎么拆比较合理”“重构 React 组件”“重构页面逻辑”“优化组件设计”“评审组件设计”“评审 Hook 设计”“减少 props”“收敛职责”“拆分 God Component”“拆分 God Hook”“调整页面编排”“整理前端分层”“组件职责不清”“逻辑和 UI 耦合”“页面状态太乱”“大 state 下传”“props 太多”“分支太多”时触发。重点处理职责混杂、props 过宽、大状态下传、分支过多、页面编排过重、展示与逻辑耦合。
Independent GitHub snapshot · Automated classification · Original documentation governs
提供 React 组件、页面组件、自定义 Hook 的拆分、重构与评审判断。重点处理职责混杂、props 过宽、大状态下传、分支过多、页面编排过重、展示与逻辑耦合。
当用户提出以下需求时使用本技能:
以下场景不应使用本技能:
至少检查以下问题:
lib/utils 的逻辑。优先使用这条拆分路径:
lib/ 或 utils/。实现前先做三个判断:
lib/utils。补充强约束:
允许合理例外,但必须说明理由。常见可接受例外:
如果无法给出明确理由,默认按规范收紧边界。