Skip to content
Back to skills

Impact Analysis

ASecurity

Grep: pattern="import.*from.*permissions", path="src/" Grep: pattern="TaskStatus", path="src/" ``` Build an import chain: `modified file → direct importers → transitive importers` | Change type | Risk | Examples | |------------|------|---------| | New file (additive) | Low | New service, new page, new type | | New export from existing file | Medium | Adding to the permissions registry, adding to index.ts | | Modified function signature | High | Changing service method params, changing API res...

  • 4 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 13, 2026
ai-agentsapifrontendbackenddocumentation

Works with

  • cli
  • api

Security analysis

A100/100

Scanned November 13, 2026

npx -y skills add ronnikc/agent-os-protocol --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/ronnikc-impact-analysis/badge)](https://www.skillsdirectory.com/skills/ronnikc-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
Title: Impact Analysis
Keywords: impact, blast-radius, dependencies, risk, change-analysis, imports
Agents: research, planning
When to use: When assessing the blast radius of a proposed change to understand affected files, modules, tests, and documentation.
Version: 1.0.0
Last updated: 2026-03-10

Assess the blast radius of a code change. Identify directly modified files, trace imports and dependents, check test coverage for affected areas, identify documentation impacts, and produce a structured impact matrix with file, change type, risk level, and test coverage status.

---

## Workflow

### Step 1 — Identify Directly Modified Files

List every file that the change will create or modify:

```
| File | Change type |
|------|-------------|
| the shared types | New file |
| the backend modules | New file |
| the shared package | Modified — add permission constants |
```

### Step 2 — Trace Import Dependents

For each modified file, find everything that imports it:

```
# Find all files that import from the modified module
Grep: pattern="import.*from.*permissions", path="src/"

# Find all files that reference the modified type
Grep: pattern="TaskStatus", path="src/"
```

Build an import chain: `modified file → direct importers → transitive importers`

### Step 3 — Classify Change Types

| Change type | Risk | Examples |
|------------|------|---------|
| New file (additive) | Low | New service, new page, new type |
| New export from existing file | Medium | Adding to the permissions registry, adding to index.ts |
| Modified function signature | High | Changing service method params, changing API response shape |
| Modified shared type | High | Changing a type in the shared package — affects both backend and frontend |
| Deleted export | Critical | Removing something that may be imported elsewhere |
| Seed data change | Medium | Changing field names or values in seed files |
| Configuration change | High | Changing app.ts wiring, route mounting, middleware order |

### Step 4 — Check Test Coverage

For each affected file, determine if tests exist and what they cover:

```
# Find test file for a service
Glob: the backend modules

# Find test file for a frontend page
Glob: the frontend pages

# Check if the specific function is tested
Grep: pattern="<function-name>", path="src/**/modules/<module>/__tests__/"
```

Mark each affected file:

| Coverage status | Meaning |
|----------------|---------|
| Covered | Test file exists and tests the affected code path |
| Partial | Test file exists but does not cover the affected code path |
| Uncovered | No test file exists |
| N/A | File type not testable (types, constants, config) |

### Step 5 — Identify Documentation Impacts

Check if the change requires documentation updates:

- **API changes** → the API-contract docs
- **Data model changes** → docs
- **Permission changes** → the access-control reference
- **New UI pages** → docs or docs
- **New audit events** → the audit-event reference
- **i18n changes** → All multiple locales files under the frontend

### Step 6 — Produce Impact Matrix

Output the final assessment:

| # | File | Change type | Risk | Test coverage | Doc impact |
|---|------|------------|------|---------------|------------|
| 1 | the shared types | New file | Low | N/A | None |
| 2 | the shared package | Modified export | Medium | N/A | access-control reference.md |
| 3 | the backend modules | New file | Low | Uncovered (needs test) | api-contracts.md |
| 4 | the backend | Modified wiring | High | Partial | None |
| 5 | the frontend | Modified export | Medium | Partial | None |

### Step 7 — Risk Summary

Provide a brief risk summary:

- **Total files affected:** N (M direct + N transitive)
- **High/Critical risk items:** list them
- **Uncovered code paths:** list them
- **Required documentation updates:** list them
- **Recommendation:** proceed / proceed with caution / decompose further

### Rules

- Always trace imports for modified shared types — they ripple across backend and frontend.
- A change to the shared package affects seed data, backend RBAC checks, and frontend permission guards.
- A change to `api-client.ts` method signatures affects every page that calls that method.
- Seed data field name changes are high risk — they break the frontend if the frontend reads the old field name.
- When risk is high on 3+ files, recommend decomposing the change into smaller increments.

## Input Schema

```yaml
input:
  changed_files:
    type: array
    items:
      type: string
    required: true
    description: "List of files being created or modified"
  change_description:
    type: string
    required: false
    description: "Brief description of the proposed change"
  base_branch:
    type: string
    required: false
    default: "main"
    description: "Branch to compare against for blast radius"
```

## Output Schema

```yaml
output:
  impact_matrix:
    type: array
    items:
      file:
        type: string
      change_type:
        type: string
      risk:
        type: enum[Low, Medium, High, Critical]
      test_coverage:
        type: enum[Covered, Partial, Uncovered, N/A]
      doc_impact:
        type: string
  risk_summary:
    total_files_affected:
      type: number
    high_critical_items:
      type: array
    uncovered_code_paths:
      type: array
    required_doc_updates:
      type: array
    recommendation:
      type: enum[proceed, proceed_with_caution, decompose_further]
```

## Quality Gate

- Every directly modified file appears in the impact matrix with correct change type and risk level.
- Import dependents have been traced for all modified shared types and exported functions.
- Test coverage status is verified (not assumed) for each affected file.
- A clear recommendation (proceed / proceed with caution / decompose further) is provided.

## Chain Metadata

```yaml
chain_metadata:
  skill_slug: "impact-analysis"
  stage: "S1"
  suggested_next:
    - slug: "coverage-enforcement"
      stage: "S1"
      reason: "Verify test coverage for all affected files identified in the impact matrix"
    - slug: "codebase-graph-navigation"
      stage: "S1"
      reason: "Use the dependency graph for precise transitive impact counts"
```

## Error Handling

- If a listed changed file does not exist yet (new file), classify it as "New file" with Low risk and skip import tracing.
- If import tracing finds circular dependencies, flag the cycle and assess risk as High for all files in the cycle.
- If test file existence cannot be confirmed (e.g., non-standard test directory), mark coverage as "Unknown" rather than "Uncovered."
- If the change spans more than 20 files, recommend decomposition before completing the full matrix.

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.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.