{
  "markdown": "# impact-analysis\n\nKnow the blast radius before you edit.\n\nA Claude Code plugin that automatically analyzes file dependencies before every `Edit` or `Write` operation. Shows who depends on the file, what functions they use, and how risky the change is.\n\n## What it does\n\n- **Blast radius scoring** — ISOLATED / LOW / MODERATE / HIGH / CRITICAL based on dependent count\n- **Dependency graph** — shows every file that imports the file you're editing, with exact function usage\n- **Reverse impact** — shows what the file itself depends on (both directions of the graph)\n- **Function severity** — distinguishes public API exports from internal helpers and private functions. Editing `_helper()` ≠ editing `publicAPI()` used by 12 files\n- **TS path aliases** — resolves `@/components/...` paths from tsconfig.json\n- **Change history** — tracks edit frequency per session, boosts risk score for repeatedly-edited files\n- **Full path resolution** — no false positives from filename collisions (two `utils.js` in different dirs won't confuse it)\n\n## Languages\n\nJavaScript, TypeScript, JSX/TSX, Python, Go.\n\n## Output example\n\n```\nimpact-analysis: SFG_Utils.js | Blast radius: CRITICAL (7 dependents)\n  DEPENDENTS (who breaks if I change):\n    <- SFG_BSC_Checks.js uses: getTokenInfo, formatNative, checkHighTax\n    <- scan-engine.js uses: getTokenInfo, formatSupply, sanitizeReason\n  DEPENDENCIES (what I import):\n    -> ethers (external)\n  HIGH-RISK EXPORTS:\n    HIGH getTokenInfo() -- public, used by 5 files\n    HIGH checkHighTax() -- public, used by 4 files\n  Exports: 19 public, 33 internal, 1 private\n```\n\n## Configuration\n\nCreate `.impactrc.json` in your project root, or add `\"impactAnalysis\"` section to `package.json`.\n\n```json\n{\n  \"extensions\": [\".js\", \".ts\", \".jsx\", \".tsx\", \".mjs\", \".cjs\", \".py\", \".go\"],\n  \"ignoreDirs\": [\"node_modules\", \".git\", \"dist\", \"build\"],\n  \"maxFiles\": 500,\n  \"maxDepth\": 10,\n  \"blastThresholds\": { \"low\": 1, \"moderate\": 3, \"high\": 6 },\n  \"outputFormat\": \"text\",\n  \"showReverse\": true,\n  \"showSeverity\": true,\n  \"showHistory\": true\n}\n```\n\nAll fields optional. Defaults work for most projects.\n\n| Option | Default | Description |\n|--------|---------|-------------|\n| `extensions` | js/ts/jsx/tsx/py/go | File types to analyze |\n| `ignoreDirs` | node_modules, .git, dist... | Directories to skip |\n| `maxFiles` | 500 | Max files to scan (performance guard) |\n| `maxDepth` | 10 | Max directory depth |\n| `blastThresholds` | 1/3/6 | Dependent count → risk level boundaries |\n| `outputFormat` | \"text\" | \"text\" or \"json\" for machine-readable output |\n| `showReverse` | true | Show what the file depends on |\n| `showSeverity` | true | Show per-function risk analysis |\n| `showHistory` | true | Track edit frequency, boost score for hot files |\n\n## Install\n\n```bash\nclaude plugin install impact-analysis\n```\n\n## How it works\n\nRuns as a `PreToolUse` hook on `Edit` and `Write` tools. Parses the project's import graph, resolves paths (including TS aliases), analyzes export visibility, and outputs a risk report. Informational only — never blocks your edits.\n\nShows report once per file per session to avoid noise.\n\n## Authors\n\nBuilt by **OveR** ([@OveR_XBT](https://x.com/OveR_XBT)) & **Claude** (Anthropic).\n\nPart of the [SFG Engine](https://x.com/SFGEngine) ecosystem.\n",
  "bytes": 3294,
  "sha": "114b162100c23a3286f99e89882f7a20ab1813192af9e0bc41db313aa3b8e693",
  "repo_slug": "overbafer999/claude-impact-analysis",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/plg_overbafer999_claude_impact_analysis_impa_9e872a8a/readme"
}