मुख्य सामग्री पर जाएँ
Skillpedia
सामान्य कोडिंग48k · #3609

gitnexus-impact-analysis

यह क्या करती है

यह आपके एजेंट को किसी चीज़ को संपादित करने से पहले उस पर निर्भर कोड का नक्शा बनाना सिखाती है। यह उन डेवलपर्स के लिए है जो प्रोजेक्ट के दूसरे हिस्सों को तोड़ने से बचना चाहते हैं।

कब इस्तेमाल करें

  • ✓जब आप किसी function को बदलने वाले हैं और जानना चाहते हैं कि उस पर क्या निर्भर है।
  • ✓जब आप commit से पहले किसी बदलाव का असर देखना चाहते हैं।
  • ✓जब आप पूछते हैं कि क्या यह बदलाव सुरक्षित है।

Skill का लिंक

https://github.com/abhigyanpatwari/GitNexus/blob/main/.claude/skills/gitnexus-impact-analysis/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/abhigyanpatwari/GitNexus/blob/main/.claude/skills/gitnexus-impact-analysis/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“क्या इस function के parameters बदलना सुरक्षित है, और इसे और कौन इस्तेमाल करता है?”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

एजेंट पुष्टि करता है कि repository सही है, फिर लक्ष्य को बुलाने या उस पर निर्भर कोड ढूँढता है और जोखिम बताता है। वह स्थानीय बदलावों की भी जाँच करता है, ताकि आप जान सकें कि वे किसे प्रभावित करते हैं।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

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

Bind the repository first

Impact analysis is the gate that authorizes an edit, so it must answer for the repository you are about to edit.

Call list_repos {} before the first tool call. With one indexed repository, use the examples below as written. With more than one, pass repo on every call: an omitted repo normally errors, but under an MCP policy with a configured default it resolves to that default silently. If you cannot tell which repository is meant, stop and ask — every result below an ambiguous identity inherits the ambiguity. list_repos is paginated, so page with offset: pagination.nextOffset until hasMore is false before concluding a repository is absent.

detect_changes takes worktree when your changes are in a linked worktree the MCP server was not launched from. The server auto-detects a worktree only when it was launched from inside one; otherwise git diff runs in the wrong checkout and reports zero changed symbols — a false clean check that carries none of the degradation flags described below. In the CLI fallbacks, --repo . means the current checkout; pass the intended repository path instead when you are not standing in it.

State the bound identity with your risk report:

Repository: <name> (<path>)   Worktree: <path>   Index: <commit>, <n> behind HEAD

Workflow

0. list_repos {}                                           → Bind repo (and worktree)
1. impact({target: "X", direction: "upstream"}) or `node .gitnexus/run.cjs impact "X" --direction upstream --repo .`
2. READ gitnexus://repo/{name}/processes                   → Check affected execution flows
3. detect_changes({scope: "all"}) or `node .gitnexus/run.cjs detect-changes --scope all --repo .`
4. Assess risk and report to user, echoing repo/worktree/index identity

If "Index is stale" → run node .gitnexus/run.cjs analyze in terminal. Hot-tool staleness names which index answered (branch/lastCommit) and how fresh it is (status). Re-analyze only for behind or diverged — current is identity, unknown is unmeasurable. If .gitnexus/run.cjs is missing, replace node .gitnexus/run.cjs with npx gitnexus in the fallback commands.

Checklist

- [ ] list_repos {} — bind repo; explicit repo when >1 indexed, ask if ambiguous
- [ ] impact({target, direction: "upstream"}) or CLI fallback to find dependents
- [ ] Review d=1 items first (these WILL BREAK)
- [ ] Check high-confidence (>0.8) dependencies
- [ ] READ processes to check affected execution flows
- [ ] detect_changes({scope: "all"}) or CLI fallback for pre-commit check
- [ ] Confirm the checkout you edited is the checkout that was diffed
- [ ] Assess risk level and report, stating repo/worktree/index identity

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
Zero callers found UNKNOWN

UNKNOWN is not a low rung on this scale — it means the walk could not answer. An empty caller set is equally consistent with "genuinely unused" and "the callers are not resolvable by the index" (plain-object property access, dynamic dispatch, cross-language calls), so few-callers ⇒ LOW does not apply. The result carries a riskNote saying so. Confirm with a text search before treating the symbol as safe to change or delete.

risk is the edit gate: warn on HIGH/CRITICAL and stop on UNKNOWN until the uncertainty is resolved. Within single-repo mode, compare File and symbol targets with local riskSharedAxes (direct/total only). Within group mode, compare only group results: their riskSharedAxes overlays resolved cross-repo crossings on that local value. Never use either field to waive the

अक्सर पूछे जाने वाले सवाल

क्या यह कोड बदलती है?

इसका मकसद संपादन से पहले विश्लेषण है। यह बदलावों की जानकारी देती है, उन्हें खुद नहीं करती।

यह repository की पुष्टि क्यों करती है?

स्किल कहती है कि गलत repository का वर्णन करने वाले नतीजे भ्रामक होते हैं, इसलिए लक्ष्य साफ़ न हो तो वह पूछती है।

क्या यह किसी branch के बदलाव जाँच सकती है?

हाँ। यह स्थानीय बदलाव जाँच सकती है, जिसमें जुड़ा git worktree भी शामिल है, जब आप उसकी ओर इशारा करें।

जानकारी

लेखक का मूल विवरण

Use when the user wants to know what will break if they change something, or needs safety analysis before editing code. Examples: \"Is it safe to change X?\", \"What depends on this?\", \"What will break?\"

repo: abhigyanpatwari/GitNexus

लोकप्रियता

GitHub स्टार
48k
रैंकिंग में स्थान
#3609
लाइसेंस
—
अपडेट की गई
2/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

gitnexus-cli

48k

आपके एजेंट को GitNexus कमांड चलाने देती है, जो कोड प्रोजेक्ट का index बनाते हैं, उसकी स्थिति जाँचते हैं, index साफ़ करते हैं या wiki बनाते हैं।

कोडिंगसामान्य कोडिंग

gitnexus-debugging

48k

आपके एजेंट को किसी codebase में बग का सुराग लगाने में मदद करती है, यह ढूँढते हुए कि एरर कहाँ से शुरू होता है और कौन सा कोड विफल हिस्से को बुलाता है।

कोडिंगसामान्य कोडिंग

gitnexus-exploring

48k

आपके एजेंट को किसी अनजान codebase को खंगालने में मदद करती है, समझाते हुए कि उसके हिस्से कैसे जुड़े हैं और login जैसी सुविधा कैसे काम करती है।

कोडिंगसामान्य कोडिंग

gitnexus-guide

48k

आपके एजेंट को GitNexus टूल्स, संसाधनों और knowledge graph का त्वरित संदर्भ देती है, और सही गाइड की ओर इशारा करती है।

कोडिंगसामान्य कोडिंग

मिलती-जुलती skills