impact_analysis
Analyze the impact of changing a module by tracing its importers and transitive dependencies. Flags high-risk hubs to guide safe refactoring.
Instructions
What could break if you change target? Walks the import graph backwards
to list direct importers and the full transitive blast radius, and flags
whether the target is a high-risk hub. Use before editing/refactoring a module.
Args: target: Module or file to analyze, e.g. "app/core/db.py" or "app.core.db". If omitted, returns the highest-impact modules to pick from. path: Repo root. language: 'auto', 'python', or 'js'/'ts'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | ||
| path | No | . | |
| language | No | auto |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |