evanfang0054/cc-system-creator-scripts/refactor-check
Claude Code and agent skill by evanfang0054/cc-system-creator-scripts
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
重构完整性检查技能。验证重构后代码的一致性、完整性和正确性,确保没有遗漏或破坏性变更。触发场景包括"检查重构"、"重构验证"、"代码迁移检查"。
Install
npx vskill@latest install evanfang0054/cc-system-creator-scripts/refactor-checkSKILL.md
重构检查技能
概述
基于 7 次需要多次修复的代码问题分析,本技能提供系统化的重构验证流程,减少迭代修复次数。
检查维度
1. 导入路径检查
- 相对路径是否更新
- 别名路径是否正确
- 包导入是否更新
- 循环依赖检测
2. 类型定义一致性
- Interface 更新是否完整
- Type 别名是否同步
- 泛型参数是否一致
- 导出类型是否完整
3. 测试验证
- 单元测试是否通过
- 集成测试是否通过
- 快照是否需要更新
- 覆盖率是否降低
4. 遗留代码检测
- 旧命名是否残留
- 废弃函数是否清理
- 无用导入是否存在
- 死代码检测
5. 依赖关系
- 依赖是否正确更新
- peerDependencies 是否满足
- 版本冲突是否存在
检查流程
使用方式
完整检查
只检查导入
只运行测试
指定目录
对比分支
检查规则
导入路径检查
旧路径搜索
别名检查
类型定义检查
运行 TypeScript 编译
检查 any 类型
测试检查
运行测试
更新快照
遗留代码检测
搜索旧命名
输出报告
常见重构场景
场景 1:组件重命名
场景 2:目录结构调整
场景 3:提取公共模块
自动修复
自动更新导入路径
自动删除空文件
配置选项
注意事项
- 大范围重构:建议分多次小重构,每次都运行检查
- 测试覆盖:确保测试覆盖率足够高再进行重构
- 分支管理:在独立分支进行重构,便于回滚
- 渐进式:优先修复高风险问题,再处理建议项
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/refactor-check/SKILL.md
Popularity
- Repository stars
- 1
- 7-day trend score
- 3
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 16 Mar 2026, 8 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/evanfang0054/cc-system-creator-scripts/refactor-check)