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

gitnexus-cli

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

यह स्किल आपके एजेंट को GitNexus command-line टूल से codebase का index बनाना और उसे अद्यतन रखना सिखाती है। यह उन डेवलपर्स के लिए है जो चाहते हैं कि उनका एजेंट प्रोजेक्ट की संरचना समझे।

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

  • ✓जब आप चाहते हैं कि कोई कोड प्रोजेक्ट index हो, ताकि आपका एजेंट उसे खंगाल सके।
  • ✓जब index पुराना लगे और उसे ताज़ा करना हो।
  • ✓जब आप index किए codebase से wiki बनवाना चाहते हैं।

Skill का लिंक

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

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

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

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

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

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

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

“क्या आप इस प्रोजेक्ट फ़ोल्डर को GitNexus से index कर सकते हैं, ताकि मैं पूछ सकूँ कि यह कैसे काम करता है?”

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

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

एजेंट प्रोजेक्ट का GitNexus runner चलाता है, जो सोर्स फ़ाइलें पढ़ता है, एक knowledge graph बनाता है और उसे एक छिपे फ़ोल्डर में सेव करता है। वह स्थिति जाँच सकता है या index साफ़ कर सकता है।

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

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

GitNexus CLI Commands

Commands below use node .gitnexus/run.cjs <command> — the project-local runner gitnexus analyze drops next to the index. It auto-selects an available runner at call time (global gitnexus, else pnpm dlx, else bunx, else npx), so no package-manager assumption and no global install is required — including on a bun-only machine, which has no npm, npx or pnpm at all.

Not analyzed yet, or node .gitnexus/run.cjs reports Cannot find module (the gitignored runner is absent — e.g. a fresh clone or git clean)? (Re)generate it with npx gitnexus analyze from the project root, or bunx gitnexus@latest analyze on a bun-only machine. On npm 11.x, if npx crashes during install (node.target is null), install once with npm i -g gitnexus (then gitnexus analyze), or use bunx gitnexus@latest analyze, or pnpm --allow-build=@ladybugdb/core --allow-build=gitnexus --allow-build=tree-sitter dlx gitnexus@latest analyze. See #1939.

Commands

analyze — Build or refresh the index

node .gitnexus/run.cjs analyze

Run from the project root. This parses all source files, builds the knowledge graph, writes it to .gitnexus/, and generates CLAUDE.md / AGENTS.md context files.

Flag Effect
--watch Keep a Git repository index current with serialized refreshes
--debounce <ms> Watch quiet period before refresh (default: 300 ms)
--force Force full re-index even if up to date
--embeddings Enable embedding generation for semantic search (off by default)
--drop-embeddings Drop existing embeddings on rebuild. By default, an analyze without --embeddings preserves them.
--pdg Build the program-dependence layers used by explain and pdg_query (taint, CDG, and REACHING_DEF).
--spring-actuator <path> Import opt-in Spring Boot Actuator mappings, beans, conditions, configprops, and env snapshots. Forces a full rebuild; unsupported with --watch.
--asyncapi-spec <path> Read opt-in AsyncAPI 3.x documents (directory or single file) and mint Destination nodes from their operations. 2.x is refused, not mapped. Unsupported with --watch.

When to run: First time in a project, after major code changes, or when gitnexus://repo/{name}/context reports the index is stale. In Claude Code, a PostToolUse hook detects staleness after git commit and git merge and notifies the agent to run analyze — the hook does not run analyze itself, to avoid blocking the agent for up to 120s and risking KuzuDB corruption on timeout.

For Spring runtime enrichment, pass a JSON bundle, one endpoint JSON file, or a directory containing endpoint files. Route evidence is authoritative only when runtimeConfirmed === true; runtimeSource records provenance and may also accompany handler-conflict. Env/configprops values are never persisted.

Index storage and retention

Default location is <repo>/.gitnexus/. Override with environment variables (also documented in README):

Env Effect
GITNEXUS_STORAGE_PATH One complete external index directory. Wins if both storage vars are set.
GITNEXUS_STORAGE_ROOT Absolute root; GitNexus creates an isolated <repo-basename>-<12-hex>/ slot per repository.
GITNEXUS_CONTENT_RETENTION full (default) keeps file text; symbol keeps snippets; none keeps the graph only.

list_repos, gitnexus://repo/{name}/context, and HTTP GET /api/repos / GET /api/repo expose storagePath, contentRetention, and sourceAvailable. HTTP /api/file and /api/grep return 410 unless retention is full. MCP include_content may still return symbol spans when retention is symbol.

Use node .gitnexus/run.cjs analyze --watch for a long-lived local Git repository. It performs an initial analysis, queues scanner-admitted file changes, and retries intact failed batches with bounded backoff. Watch refreshes update only the graph: they skip AGENTS.md / CLAUDE.md injection and standard skill installation, so run a one-shot analyze when those generated files need updating. Watch rejects one-shot or context-output flags including --force, embedding flags, --skills, --default-branch, `

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

क्या इसे global इंस्टॉल करना होगा?

नहीं। स्किल कहती है कि runner चलते समय उपलब्ध टूल चुन लेता है, इसलिए global इंस्टॉल ज़रूरी नहीं।

index बनाने से क्या बनता है?

यह .gitnexus फ़ोल्डर में knowledge graph लिखता है और CLAUDE.md व AGENTS.md जैसी context फ़ाइलें बनाता है।

अगर runner गायब हो तो?

स्किल कहती है कि प्रोजेक्ट के मूल फ़ोल्डर से npx gitnexus analyze चलाकर उसे दोबारा बनाएँ।

जानकारी

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

Use when the user needs to run GitNexus CLI commands like analyze/index a repo, check status, clean the index, generate a wiki, or list indexed repos. Examples: \"Index this repo\", \"Reanalyze the codebase\", \"Generate a wiki\"

repo: abhigyanpatwari/GitNexus

लोकप्रियता

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

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

0

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

कमेंट

  • …

इस repository की और skills

gitnexus-debugging

48k

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

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

gitnexus-exploring

48k

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

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

gitnexus-guide

48k

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

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

gitnexus-impact-analysis

48k

किसी function को बदलने से पहले आपके एजेंट को जाँचने देती है कि क्या टूटेगा, ताकि आप जान सकें कि कौन सा कोड उस पर निर्भर है।

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

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