byhobobo· 10 skills
AbilityKit Session/Flow 业务代码(如 BattleSessionFeature)重构准则——State(纯数据)/Handles(可释放资源,partial)/Controllers(行为,Session*Controller)/SubFeatures(薄胶水) 分离,含 Host 接口反向桥接、Runtime 契约、partial 按领域拆、WorldSystemBase.OnTearDown 等模式。触发场景:会话/流程类代码臃肿、feature 持续变大、字段/资源/编排/逻辑混在一个类、SubFeature 越权访问、BattleSessionFeature 拆分、Start/Stop 顺序、State 混入 IDisposable、OnCleanup vs OnTearDown。
$npx -y skills add hobobo/abilitykit --skill state-handles-controllersInstalls into the current project.
Run `npx skills use "https://github.com/hobobo/abilitykit" --skill "hobobo/abilitykit/state-handles-controllers"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/hobobo/abilitykit" that are relevant to the current task. Run `npx skills add "https://github.com/hobobo/abilitykit"` and select the relevant skills, then follow their instructions.