Skip to content
Back to skills

Impact Analysis

ASecurity

Analyzes the impact of changing a file or function - what else would break

  • 10 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added June 1, 2026
ai-agentsbashnodeapi

Works with

  • api

Security analysis

A100/100

Scanned June 1, 2026

npx -y skills add berkcangumusisik/claude-code-practices --skill impact-analysis --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Impact Analysis?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Impact Analysis
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/berkcangumusisik-impact-analysis/badge)](https://www.skillsdirectory.com/skills/berkcangumusisik-impact-analysis)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: impact-analysis
description: Analyzes the impact of changing a file or function - what else would break
argument-hint: <file-path> [function-name]
user-invocable: true
allowed-tools: Grep Read Glob Bash
effort: medium
---

## Impact Analysis

Target: **$1** $2

1. Find all direct consumers:
```bash
grep -rn "from.*$1\|require.*$1\|import.*$1" src/ --include="*.ts" --include="*.tsx" | grep -v "node_modules"
```

2. For each consumer, find their consumers (2 levels deep):
```bash
# For each file found above, repeat the grep
```

3. Check for indirect usage:
   - Dynamic imports: `import()`
   - Re-exports: files that `export * from`
   - Type-only imports that might break at runtime

4. Check test coverage of the target:
```bash
grep -rn "$2\|$(basename $1 .ts)" src/ --include="*.test.*" --include="*.spec.*"
```

5. Produce impact map:
```
src/auth/token.ts → changing this affects:
  DIRECT (3 files):
    src/middleware/auth.ts      ← critical path
    src/api/users.ts           ← medium risk
    src/utils/session.ts       ← low risk
  INDIRECT (7 files via middleware/auth.ts):
    src/api/*.ts               ← all protected routes
  TESTS (2 files):
    src/auth/token.test.ts
    src/middleware/auth.test.ts
```

6. Recommend: what tests to run, what to manually verify.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…