gitnexus-impact-analysis

abhigyanpatwari/gitnexus · updated Apr 28, 2026

$npx skills add https://github.com/abhigyanpatwari/gitnexus --skill gitnexus-impact-analysis
0 commentsdiscussion
summary

If "Index is stale" → run npx gitnexus analyze in terminal.

skill.md

Impact Analysis with GitNexus

When to Use

  • "Is it safe to change this function?"
  • "What will break if I modify X?"
  • "Show me the blast radius"
  • "Who uses this code?"
  • Before making non-trivial code changes
  • Before committing — to understand what your changes affect

Workflow

1. gitnexus_impact({target: "X", direction: "upstream"})  → What depends on this
2. READ gitnexus://repo/{name}/processes                   → Check affected execution flows
3. gitnexus_detect_changes()                               → Map current git changes to affected flows
4. Assess risk and report to user

If "Index is stale" → run npx gitnexus analyze in terminal.

Checklist

- [ ] gitnexus_impact({target, direction: "upstream"}) to find dependents
- [ ] Review d=1 items first (these WILL BREAK)
- [ ] Check high-confidence (>0.8) dependencies
- [ ] READ processes to check affected execution flows
- [ ] gitnexus_detect_changes() for pre-commit check
- [ ] Assess risk level and report to user

Understanding Output

Depth Risk Level Meaning
d=1 WILL BREAK Direct callers/importers
d=2 LIKELY AFFECTED Indirect dependencies
d=3 MAY NEED TESTING Transitive effects

Risk Assessment

Affected Risk
<5 symbols, few processes LOW
5-15 symbols, 2-5 processes MEDIUM
>15 symbols or many processes HIGH
Critical path (auth, payments) CRITICAL

Tools

gitnexus_impact — the primary tool for symbol blast radius:

gitnexus_impact({
  target: "validateUser",
  direction: "upstream",
  minConfidence: 0.8,
  maxDepth: 3
})

→ d=1 (WILL BREAK):
  - loginHandler (src/auth/login.ts:42) [CALLS, 100%]
  - apiMiddleware (src/api/middleware.ts:15) [CALLS, 100%]

→ d=2 (LIKELY AFFECTED):
  - authRouter (src/routes/auth.ts:22) [CALLS, 95%]

gitnexus_detect_changes — git-diff based impact analysis:

gitnexus_detect_changes({scope: "staged"})

→ Changed: 5 symbols in 3 files
→ Affected: LoginFlow, TokenRefresh, APIMiddlewarePipeline
→ Risk: MEDIUM

Example: "What breaks if I change validateUser?"

1. gitnexus_impact({target: "validateUser", direction: "upstream"})
   → d=1: loginHandler, apiMiddleware (WILL BREAK)
   → d=2: authRouter, sessionManager (LIKELY AFFECTED)

2. READ gitnexus://repo/my-app/processes
   → LoginFlow and TokenRefresh touch validateUser

3. Risk: 2 direct callers, 2 processes = MEDIUM

Discussion

Product Hunt–style comments (not star reviews)
  • No comments yet — start the thread.
general reviews

Ratings

4.670 reviews
  • Chaitanya Patil· Dec 28, 2024

    Useful defaults in gitnexus-impact-analysis — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

  • Nikhil Sanchez· Dec 28, 2024

    I recommend gitnexus-impact-analysis for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.

  • Diego Lopez· Dec 16, 2024

    gitnexus-impact-analysis fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.

  • Camila Singh· Dec 12, 2024

    Registry listing for gitnexus-impact-analysis matched our evaluation — installs cleanly and behaves as described in the markdown.

  • Hassan Tandon· Dec 8, 2024

    Useful defaults in gitnexus-impact-analysis — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

  • Camila Sharma· Dec 4, 2024

    We added gitnexus-impact-analysis from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.

  • Arjun Harris· Dec 4, 2024

    Solid pick for teams standardizing on skills: gitnexus-impact-analysis is focused, and the summary matches what you get after install.

  • Liam Kapoor· Nov 27, 2024

    gitnexus-impact-analysis is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.

  • Aanya Bhatia· Nov 23, 2024

    gitnexus-impact-analysis reduced setup friction for our internal harness; good balance of opinion and flexibility.

  • Piyush G· Nov 19, 2024

    gitnexus-impact-analysis is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.

showing 1-10 of 70

1 / 7