Skip to main content

vue-refactor

Vue 组件/Composable 重构的决策陪练——用户贴一段代码或指到一个 SFC,skill 先做一次诊断("胖主干"/"UI和IO纠缠"/"响应式和业务纠缠"),再从三张处方里选一张,逐条给出具体的 extract 步骤序列(先动哪个变量、编译器会报什么错、怎么逐个消掉、何时可回滚)。全程靠编译器绿灯 + 单步可回滚保证行为等价,不依赖测试防护网。触发场景:用户说"这个 Vue 组件太胖 / 想把逻辑抽出来 / 拆一下这个 SFC / 这个 composable 太杂 / 抽个 composable / 拆成 humble / 纯函数化"、或指到一个明显过长的 .vue / composable 文件要求"重构 / 优化 / 拆分"。只管 Vue(Vue 2 Options、Vue 2/3 `<script setup>`、composable、pinia store)。不处理:加新功能(走 feature 流程)、修 bug(走 issue 流程)、跨模块架构重划、后端代码。

Jump to install

Source facts

Repository
liuzhengdongfortest/skills-plus
Last source activity
April 24, 2026 at 13:29
Detected SKILL.md language
Chinese
Stars
0
Forks
0

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.