code-graph-review

A code-review aid that maps how a proposed change may affect the rest of a codebase. It examines changed files, connected code paths, architecture, dead code, and possible rename effects.

In plain words
What is it for?
Use it before committing or reviewing a change when you need to assess its impact, affected user flows, architectural connections, dead code, or rename risks.
Why use it?
It helps reveal breakage outside the files you edited and points out areas where tests or understanding may be missing.

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/oleg494/coding-kit/code-graph-review
Any agent
npx skills add oleg494/coding-kit --skill code-graph-review
Clone the repo
git clone --depth 1 https://github.com/oleg494/coding-kit

Made for: Claude Code, Codex.

Per session 71 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 618 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.00071 $0.00618
Opus 5 $0.00036 $0.00309
Sonnet 5 $0.00014 $0.00124
Haiku 4.5 $0.00007 $0.00062

Measured yesterday against content hash 7520d44f02d7, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

code-graph-review 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 yesterday.

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.

skills/code-graph-review/SKILL.md · 37 lines

What it actually says

Code graph review: what will the change break

The code-review-graph MCP server answers "what will this N-file change break" — impact/blast radius over the DIFF, dead-code, communities, flows.

Workflow (order of application)

  1. Changes ready → diagnose first (lsp): 0 errors before any linter.
  2. Rebuild the graphbuild_or_update_graph_tool (incrementally). A stale graph = false analysis.
  3. Run detect_changes — diff → risk score, priorities (what to look at first), test gaps. This is the main review tool.
  4. Assess blast radiusget_impact_radius (BFS depth over the diff), get_review_context (code snippets). Ask: "what will the N-file change break".
  5. Check affected flowsget_affected_flows/list_flows: which user paths pass through the changed files.
  6. Architecture (if needed)get_hub_nodes (who is a hub), get_bridge_nodes (bridges), get_surprising_connections, get_architecture_overview, get_knowledge_gaps.
  7. Dead code / renamerefactor_tool(mode="dead_code"); refactor_tool(mode="rename")apply_refactor_tool.
  8. Verify dead-code false positives via lsp (find_references), don't delete blindly.

Table: task → tool

Task Tool
change review (diff → risk → priorities) detect_changes
blast radius of an N-file change get_impact_radius, get_review_context
affected execution paths get_affected_flows, list_flows
dead code refactor_tool(mode="dead_code")
hubs/bridges/unexpected coupling get_hub_nodes, get_bridge_nodes, get_surprising_connections
weak spots get_knowledge_gaps, get_suggested_questions
rename with preview refactor_tool(mode="rename")apply_refactor_tool

Pitfalls

  • dead-code produces false positives on callback patterns and Thread(target=...) — verify via lsp, don't delete blindly.
  • The graph builds/updates incrementally: build_or_update_graph_tool after changes — otherwise the data is stale.
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. yesterday First seen · 37 lines · 71 tokens per session scan A 7520d44f02d7

Subscribe to this mod's changes

code-graph-review is a skill published in the GitHub repository oleg494/coding-kit (1 stars, last pushed yesterday), licensed MIT. It adds 71 tokens to every session and 618 once invoked, about $0.0004 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

run

Execute a named agent role with optimized instructions. Explicit invocation only ($run). Never trigger implicitly.

mystilleef/spae-framework · 21 tokens

tip

Deliver a transformative life perspective shift and a productivity tip. Use when the user invokes /tip or wants non-technical inspiration or a fresh mental model.

mystilleef/spae-framework · 32 tokens

agentic-security-review

Run a security and dependency audit for agent systems, tool-using AI apps, MCP/A2A integrations, or security-sensitive AI-generated code. Check slopsquatting risk, tool shadowing, rug pulls, memory/context poisoning, secrets, unsafe permissions, and common CWE patterns. Use when asked for security review, dependency…

browoz/agentic-sdlc-skills · 106 tokens

agentic-spec

Create a structured specification before agentic coding work. Assemble the six context types, scale rigor for prototype/internal/production tasks, produce SPEC.md, and configure focused AGENTS.md boundaries. Use when asked to write a spec, plan a feature, design an agent/system, define architecture, or create…

browoz/agentic-sdlc-skills · 91 tokens

agentic-evals

Design evaluation contracts and test plans for agentic systems. Create deterministic tests, trajectory evals, quality dimensions, gold-set criteria, and CI gates before or after implementation. Use when asked for tests first, an eval plan, success criteria, non-deterministic testing, LLM-as-judge setup, or…

browoz/agentic-sdlc-skills · 95 tokens

agentic-production-readiness

Prepare an AI agent system for production operation. Cover SHIELD controls, sandbox/canary/production rollout, OpenTelemetry observability with GenAI semantic conventions, Agent Card drafting, governance, and post-deploy monitoring. Use for production readiness checks, go-live checklists, agent monitoring, agent…

browoz/agentic-sdlc-skills · 97 tokens