gitnexus-impact-analysis

Analyzes code change blast radius using dependency graphs and execution flow mapping.

18|8|Updated Jun 17, 2026
One-click install
npx skills add https://github.com/PyModel/pythinker-code --skill gitnexus-impact-analysis-pymodel
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gitnexus-impact-analysis
Source: https://github.com/PyModel/pythinker-code/tree/main/.agents/skills/gitnexus/gitnexus-impact-analysis
Command: npx skills add https://github.com/PyModel/pythinker-code --skill gitnexus-impact-analysis-pymodel

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Before editing code, developers need to know what will break. This Skill answers questions like "Is it safe to change this function?" by tracing upstream dependencies, mapping affected execution flows, and assigning a risk level to proposed changes. ## Core Features & Use Cases - Blast Radius Analysis: Runs impact queries with configurable direction, depth, and confidence thresholds to list direct callers (d=1, will break) through transitive dependents (d=3). - Execution Flow Mapping: Reads GitNexus process resources to identify which runtime flows (e.g., LoginFlow, TokenRefresh) touch the target symbol. - Pre-Commit Risk Checks: Uses detect_changes on staged git diffs to map pending changes to affected flows and produce a LOW/MEDIUM/HIGH/CRITICAL risk rating. - Use Case: Before renaming a shared validation function, run an upstream impact query to find its direct callers, check affected auth processes, and report a MEDIUM risk with the exact files that need updates. ## Quick Start Ask the agent to analyze what will break if you change a specific function, for example by requesting an impact analysis of validateUser before editing it.

Frequently Asked Questions about gitnexus-impact-analysis

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I check what will break before changing a function?

Run an impact query with the target symbol and direction set to upstream. Direct callers at depth 1 will break, depth 2 items are likely affected, and depth 3 items may need testing. Review high-confidence dependencies above 0.8 first.

How to analyze the risk of staged git changes before committing?

Use detect_changes with the scope set to staged. It maps your git diff to changed symbols and affected execution flows, then returns a risk level such as MEDIUM based on the number of impacted symbols and processes.

What does the impact depth d=1, d=2, d=3 mean?

Depth indicates dependency distance from the target symbol. d=1 items directly call or import the target and will break, d=2 items are indirect dependents likely affected, and d=3 items are transitive effects that may need testing.

Why does the impact analysis say the index is stale?

A stale index means the GitNexus dependency graph no longer matches the current code. Run node .gitnexus/run.cjs analyze in the terminal to rebuild the index, then retry the impact query.

How is the risk level calculated in impact analysis?

Risk is based on affected symbol and process counts: under 5 symbols is LOW, 5-15 symbols with 2-5 processes is MEDIUM, over 15 symbols or many processes is HIGH, and changes touching critical paths like auth or payments are CRITICAL.