impact-analyzer
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseImpact Analyzer
影响分析器
When to Use
适用场景
Trigger this skill when the user:
- Is about to modify code and wants to know the impact
- Asks what depends on a file or component
- Wants to understand breaking change risks
- Asks "what will break if I change X"
- Asks "is it safe to modify this"
当用户出现以下情况时触发此skill:
- 即将修改代码,想要了解变更影响
- 询问某个文件或组件的依赖项
- 想要了解破坏性变更的风险
- 询问“修改X会破坏什么”
- 询问“修改这个是否安全”
Instructions
使用说明
- Identify the file, component, or API the user wants to change
- Run with the target
/sourceatlas:impact "<target>" - Returns dependency analysis, risk assessment, and migration checklist
- 确定用户想要修改的文件、组件或API
- 针对目标执行 命令
/sourceatlas:impact "<target>" - 返回依赖分析、风险评估和迁移检查清单
Target Formats
目标格式
- File path:
/sourceatlas:impact "src/api/users.ts" - API endpoint:
/sourceatlas:impact "api /api/users/{id}" - Component:
/sourceatlas:impact "UserService" - Model:
/sourceatlas:impact "User model"
- 文件路径:
/sourceatlas:impact "src/api/users.ts" - API端点:
/sourceatlas:impact "api /api/users/{id}" - 组件:
/sourceatlas:impact "UserService" - 模型:
/sourceatlas:impact "User model"
What User Gets
用户可获得的内容
- Impact summary (backend, frontend, test files affected)
- Risk level assessment (red/yellow/green)
- Breaking change risks
- Migration checklist
- Test coverage gaps
- 影响摘要(受影响的后端、前端、测试文件)
- 风险等级评估(红/黄/绿)
- 破坏性变更风险
- 迁移检查清单
- 测试覆盖率缺口
Example Triggers
触发示例
- "What happens if I change this file?"
- "What depends on UserService?"
- "Is it safe to modify the authentication module?"
- "Impact of changing the User model"
- "修改这个文件会有什么影响?"
- "哪些内容依赖UserService?"
- "修改认证模块是否安全?"
- "修改User模型的影响"