impact-analysis

impact-analysis is a skill for Claude Code, Codex from MarcinHamiga/code-indexing-mcp. It costs 27 tokens per session (1,203 once invoked), scanned A, original, MIT.

A code-change analysis workflow that maps where a symbol, module, or API is defined and used before it is edited. An API is an interface that other code can call.

In plain words
What is it for?
Use it to inspect a target, find its structural references, and assess the likely effects of a refactor.
Why use it?
It reduces the risk of missing callers or breaking related code when changing shared functionality.

Skill for Claude CodeCodex

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/marcinhamiga/code-indexing-mcp/impact-analysis
Any agent
npx skills add MarcinHamiga/code-indexing-mcp --skill impact-analysis
Clone the repo
git clone --depth 1 https://github.com/MarcinHamiga/code-indexing-mcp

Made for: Claude Code, Codex.

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/marcinhamiga/code-indexing-mcp/impact-analysis.svg)](https://agentmods.dev/skills/marcinhamiga/code-indexing-mcp/impact-analysis)
Your own site
<a href="https://agentmods.dev/skills/marcinhamiga/code-indexing-mcp/impact-analysis"><img src="https://agentmods.dev/badge/skills/marcinhamiga/code-indexing-mcp/impact-analysis.svg" alt="Measured on agentmods" height="20"></a>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,203 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.00027 $0.01203
Opus 5 $0.00014 $0.00602
Sonnet 5 $0.00005 $0.00241
Haiku 4.5 $0.00003 $0.00120

Measured 3d ago against content hash 6586d735a8fc, 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 3d 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.

src/code_indexing_mcp/skills/impact-analysis/SKILL.md · 52 lines

How it starts

The opening of the file, as written. The whole thing — 52 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are analyzing the impact of changing: $target (a symbol, module, or API plus the intended change). If the target or the intended change is unclear, ask the user with the AskUserQuestion tool before starting.

The core rule of this skill: map usages with the index tools, not with grep.

1. Ensure the index is ready

  1. Call mcp__code-indexing-mcp__project_status for the target project. If the project is unknown, call mcp__code-indexing-mcp__list_projects and, if needed, mcp__code-indexing-mcp__init_project.
  2. If the index is missing or stale relative to the files the change touches, call mcp__code-indexing-mcp__index_project first. Tell the user if indexing will take a moment.

2. Resolve the target

  • mcp__code-indexing-mcp__find_symbol with an exact match on the target name to locate every definition. If several unrelated symbols match, ask the user which one is meant — do not guess.
  • mcp__code-indexing-mcp__get_chunk — read the definition itself so the analysis is grounded in what the symbol actually does and exposes.

3. Map direct usages and refactor impact

  • mcp__code-indexing-mcp__find_references and mcp__code-indexing-mcp__analyze_refactor only understand C#, Go, Java, JavaScript, Python, Rust, TSX, and TypeScript declarations; selecting a declaration in any other language returns UNSUPPORTED_LANGUAGE rather than an empty (and misleadingly clean) result. If the target lives in another language, say so and fall back to search_code/grep for that part of the analysis.
  • mcp__code-indexing-mcp__find_references — pass the selected declaration's chunk_id, or its project/path/qualified-symbol tuple, to retrieve structural uses. Treat exact as binding evidence, likely as a required review, and unresolved plus limitations as blind spots; do not promote them to exact yourself.
  • mcp__code-indexing-mcp__analyze_refactor — for a rename or signature proposal, use its discriminated operation input before planning edits. must_change is deterministic, likely_change and review need human inspection, and evidence can show aliases that bind the target but need no spelling edit (or, for a signature change, compatible call sites).
  • mcp__code-indexing-mcp__emit_refactor_patch — after reviewing an analyze_refactor result, call it with the same selector and rename operation to turn the deterministic must_change subset into a byte-exact unified diff the user can apply with git apply. It never edits source files: likely_change/review findings and stale or unverifiable files come back in unapplied and conflicted instead of the patch, so keep them on the review checklist. Signature changes return UNSUPPORTED_OPERATION.
  • Read completeness.state before you characterise the blast radius. Only complete means every indexed file was analyzed; complete_with_dynamic_limitations means everything was analyzed but some findings rest on conservative, non-structural evidence; incomplete means whole files were not analyzed at all. The named limitations (other languages, parse failures, stale files) name the gap in either non-complete case. Report that gap to the user instead of presenting the finding list as exhaustive.
  • If you apply the edits, use each finding's edit_start_byte/edit_end_byte, which cover just the identifier. The wider start_byte/end_byte span the whole reference, so replacing that range turns auth.authorize(u) into permit(u) and drops the alias from import authorize as check. Null edit offsets mean edit that site by hand.
  • For each distinct file in the results, mcp__code-indexing-mcp__file_outline to place the usage in context, and mcp__code-indexing-mcp__get_chunk where the exact call matters (signature changes, argument reordering).

Read the full file on GitHub · 52 lines

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. 3d ago First seen · 52 lines · 27 tokens per session scan A 6586d735a8fc

Subscribe to this mod's changes

impact-analysis is a skill published in the GitHub repository MarcinHamiga/code-indexing-mcp (0 stars, last pushed 4d ago), licensed MIT. It adds 27 tokens to every session and 1,203 once invoked, about $0.0001 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

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.

obra/superpowers · 37 tokens

auto-perf-optimize

Run agent-driven VS Code performance or memory investigations. Use when asked to launch Code OSS, automate a VS Code scenario, run the Chat memory smoke runner, capture renderer heap snapshots, take workflow screenshots, compare run summaries, or drive a repeatable scenario before heap-snapshot analysis.

microsoft/vscode · 62 tokens

chat-perf

Run chat perf benchmarks and memory leak checks against the local dev build or any published VS Code version. Use when investigating chat rendering regressions, validating perf-sensitive changes to chat UI, or checking for memory leaks in the chat response pipeline.

microsoft/vscode · 51 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens