返回 Skill 列表
extension
分类: 开发与工程无需 API Key

impact-analyzer

分析哪些代码会受到更改的影响。当用户询问“如果我更改X,什么会被破坏”,“更改X的影响”,“X的依赖项”,“修改X是否安全”时使用,或者在进行重大代码更改之前使用。

person作者: jakexiaohubgithub

Impact 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"

Instructions

  1. Identify the file, component, or API the user wants to change
  2. Run /sourceatlas:impact "<target>" with the target
  3. Returns dependency analysis, risk assessment, and migration checklist

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"

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"