Back to skills
SKILL.md
Fec Refactoring Catalog
ASecurity已经有结构问题证据,需要在多种保持行为的重构手法之间比较前置条件、选择最小安全方案,或决定多个重构步骤的合理先后关系时。
- 21 stars
- 0 votes
- 0 copies
- 2 views
- Added September 3, 2026
Works with
Security analysis
100/100Pro scans all 4 files and shows the line behind each finding
npx -y skills add bovinphang/frontend-craft --skill fec-refactoring-catalog --agent claude-codeAre you the author of Fec Refactoring Catalog?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/bovinphang-fec-refactoring-catalog)---
name: fec-refactoring-catalog
description: 已经有结构问题证据,需要在多种保持行为的重构手法之间比较前置条件、选择最小安全方案,或决定多个重构步骤的合理先后关系时。
---
# 重构目录选择
## 概览
把完整重构目录作为决策辅助,而不是自动套用的配方。只有当证据、前置条件和行为契约匹配时,才选择最小可验证的手法。
## 工作流
1. 在[重构目录索引](references/catalog-index.md)定位标准手法。
2. 若从坏味道或症状出发,使用[选择指南](references/selection-guide.md)比较成因和候选手法。
3. 若需要多个步骤,使用[组合指南](references/composition-guide.md)只安排当前代码真正需要的前置关系。
4. 确定手法后再按需加载对应 family 的详细资料。
## 选择规则
- 一个坏味道可能对应多个候选,先确认真实成因。
- 优先可回滚、局部、小范围的变换,而不是直接大改架构。
- 执行前检查公共 API、路由、状态所有权、异步/生命周期、持久化和 SSR 边界。
- 组合关系都是有条件的,不是强制流水线。
Files in this skill
- SKILL.md
- references/catalog-index.md
- references/composition-guide.md
- references/selection-guide.md
Attribution
Comments
Loading comments…