impact-analysis

impact-analysis is a skill for Claude Code, Codex from cdeust/ai-architect-mcp-codebase. It costs 55 tokens per session (366 once invoked), scanned A, original, MIT.

A workflow for tracing which parts of a codebase may be affected by a proposed or completed change.

In plain words
What is it for?
Use it for implementation planning, pull-request review, regression analysis, dependency checks, and investigating the impact of changing a function or code difference.
Why use it?
It reveals callers, importers, users, and other dependents so regression risks and the likely scope of a change are easier to see.

Skill for Claude CodeCodex

Part of the ai-architect-mcp-codebase plugin — 3 skills, 24 commands, 18 agents, 6 hooks, 2 MCP servers shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/cdeust/ai-architect-mcp-codebase/impact-analysis
Any agent
npx skills add cdeust/ai-architect-mcp-codebase --skill impact-analysis
Clone the repo
git clone --depth 1 https://github.com/cdeust/ai-architect-mcp-codebase

Made for: Claude Code, Codex.

Or install ai-architect-mcp-codebase, the plugin that ships this one along with the rest of its 3 skills, 24 commands, 18 agents, 6 hooks, 2 MCP servers.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for impact-analysis

README.md
[![agentmods](https://agentmods.dev/badge/skills/cdeust/ai-architect-mcp-codebase/impact-analysis.svg)](https://agentmods.dev/skills/cdeust/ai-architect-mcp-codebase/impact-analysis)
Your own site
<a href="https://agentmods.dev/skills/cdeust/ai-architect-mcp-codebase/impact-analysis"><img src="https://agentmods.dev/badge/skills/cdeust/ai-architect-mcp-codebase/impact-analysis.svg" alt="Measured on agentmods" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 366 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00055 $0.00366
Opus 5 $0.00028 $0.00183
Sonnet 5 $0.00011 $0.00073
Haiku 4.5 $0.00006 $0.00037

Measured 4d ago against content hash a0052f3b63e9, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

impact-analysis scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/ai-architect-mcp-codebase/skills/impact-analysis/SKILL.md · 23 lines

What it actually says

Impact Analysis

Use the eight-tool core profile. Treat graph results as a lower bound wherever the tool reports heuristic resolution, dynamic dispatch, or coverage gaps.

Workflow

  1. Call health_check. Build or refresh the graph with analyze_codebase, and keep the exact returned graph_path.
  2. If an actual unified diff or base/head refs exist, call detect_changes. Do not invent a diff for a proposal that has not been implemented.
  3. Use search_codebase to resolve every proposed or changed symbol to an exact qualified name. Confirm important targets with get_symbol or get_context.
  4. Call get_impact for each target. Page callers through next_offset. Treat importers, users, and implementors as capped summaries; use query_graph with an explicit ORDER BY when a complete paged list matters.
  5. Call query_graph with graph="missed". Inspect flagged files or ranges before making a negative claim about callers, dependencies, or test coverage.
  6. Follow high-risk dependents with get_context or get_symbol. Use sibling graphs only when the user supplies or authorizes those graph paths.

Deliverable

Separate direct graph evidence from inference. Report affected symbols, callers and dependency types, communities, execution processes, co-change hints, coverage gaps, and unverified risks. Preserve the tool's epistemic qualifier instead of upgrading a lower-bound result into a completeness claim.

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 23 lines · 55 tokens per session scan A a0052f3b63e9

Subscribe to this mod's changes

impact-analysis is a skill published in the GitHub repository cdeust/ai-architect-mcp-codebase (4 stars, last pushed today), licensed MIT. It adds 55 tokens to every session and 366 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

new-skill

Scaffold a new brooks-lint analysis skill so it passes npm run validate and npm run evals on the first try — generates skills/{name}/SKILL.md (with the mandatory "Do NOT trigger for:" clause and a Process section citing guide step ranges) plus skills/{name}/{name}-guide.md (sequentially numbered steps), then appends…

hyhmrright/brooks-lint · 145 tokens

release

Cut a brooks-lint release: set the version in package.json, propagate it across all four plugin manifests and every version-bearing text file (README badges, docs site metadata), write the CHANGELOG entry, validate, then commit, push, tag, and publish the GitHub release. Triggers when the maintainer asks to "release"…

hyhmrright/brooks-lint · 135 tokens

brooks-audit

Architecture audit that maps module dependencies, checks layering integrity, and flags structural decay across a codebase, drawing on twelve classic engineering books. Triggers when: user asks to audit architecture, review folder/module structure, check for circular imports, understand how the codebase is organized…

hyhmrright/brooks-lint · 143 tokens

brooks-review

PR code review that surfaces decay risks, design smells, and maintainability issues with concrete Symptom → Source → Consequence → Remedy findings, drawing on twelve classic engineering books. Triggers when: user asks to review code, check a PR, shares a diff or pastes code asking "does this look right?" / "any issues…

hyhmrright/brooks-lint · 172 tokens

brooks-test

Test quality review drawing on twelve classic engineering books — with primary focus on xUnit Test Patterns, The Art of Unit Testing, How Google Tests Software, and Working Effectively with Legacy Code — that diagnoses structural problems in an existing test suite: brittleness, mock abuse, coverage illusions, slow…

hyhmrright/brooks-lint · 161 tokens

cortex-takeoff

Create or resume a session takeoff baton — a curated, ephemeral, git-ignored hand-off note that lets the next Claude session continue a long-running task. A repo can hold several batons at once, one per work line (topic). Use when the user says "交接", "takeoff", "交棒", "context 快滿了交接給下個 session", "hand off to next…

XBlueSky/cortexes · 131 tokens