home / skills / lis186 / sourceatlas / impact-analyzer
This skill analyzes code changes to reveal impact, risks, and a migration checklist across backend, frontend, and tests.
npx playbooks add skill lis186/sourceatlas --skill impact-analyzerReview the files below or copy the command above to add this skill to your agents.
---
name: impact-analyzer
description: Analyze what code will be affected by changes. Use when user asks "what will break if I change X", "impact of changing X", "dependencies of X", "is it safe to modify X", or before making significant code changes.
---
# 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"
This skill analyzes what parts of a codebase will be affected by a change and helps assess risk before you modify code. It produces a dependency map, risk level, and a practical migration checklist so you can make changes more safely. Use it to catch hidden dependencies, test gaps, and potential breakages early.
You specify a target (file, component, API, or model) and the skill runs an automated dependency analysis against the codebase. It returns an impact summary that lists affected backend, frontend, and test files, assigns a red/yellow/green risk level, and highlights breaking-change risks. Finally, it generates a migration checklist with recommended steps and test coverage gaps to address.
What input formats are supported?
File paths, component or service names, API endpoints, and data model names are supported for precise analysis.
How is risk level determined?
Risk is based on number and criticality of dependents, presence of public APIs, test coverage, and whether breaking changes are likely.
Can I get a migration checklist?
Yes. The skill generates step-by-step migration tasks including code updates, required tests, and rollout notes.