gitnexus-cli

Index and analyze local Git repositories into a searchable knowledge graph.

Updated Mar 19, 2026
One-click install
npx skills add https://github.com/shysssthanhtri/AI-tools --skill gitnexus-cli-shysssthanhtri
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gitnexus-cli
Source: https://github.com/shysssthanhtri/AI-tools/tree/main/skills/gitnexus-cli
Command: npx skills add https://github.com/shysssthanhtri/AI-tools --skill gitnexus-cli-shysssthanhtri

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Enables fast creation and management of a repository-level knowledge index so developers and AI assistants can reason over a project's code, symbols, and relationships instead of raw files alone.

Core Features & Use Cases

  • Indexing and Analysis: Build or refresh a knowledge graph of source files and relationships to power semantic search and agent context.
  • Maintenance & Status: Check index freshness, clean corrupted or stale indexes, and list registered repositories.
  • Documentation Generation: Produce a repository wiki and context files using an LLM, with optional embedding generation for improved search relevance.
  • Use Case: Run an index after a large refactor to regenerate context files for AI copilots and to surface up-to-date architecture and symbol information.

Quick Start

Run npx gitnexus analyze from the repository root to build or refresh the project's index.

Frequently Asked Questions about gitnexus-cli

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

FAQPage Schema
How do I index a local git repository for AI codebase analysis?

To index a local git repository for AI codebase analysis, run `npx gitnexus analyze` from the repository root to build a searchable knowledge graph of source files and relationships. This requires Node.js and npx to execute the CLI.

What is a repository knowledge graph and why do I need it?

A repository knowledge graph maps source files and symbol relationships, enabling developers and AI assistants to reason over project architecture instead of raw files. It powers semantic search and provides context for AI copilots.

Can I generate documentation and wiki files from my source code?

Yes, you can generate documentation and wiki files from source code by invoking the wiki generation feature via an LLM. This requires optional LLM API credentials and produces context files with optional embeddings for improved search relevance.

How do I check and clean up a stale codebase index?

To check and clean up a stale codebase index, use the GitNexus CLI to perform status checks and remove corrupted or outdated indexes. The index state is written to a `.gitnexus directory` for periodic maintenance and reindexing.

Do I need LLM API credentials to build a codebase index?

No, you do not need LLM API credentials to build a codebase index. LLM credentials are only optional for generating repository wiki documentation and context files with embeddings, while standard indexing requires just Node.js and npx.

When should I reindex a codebase after refactoring?

You should reindex a codebase after a large refactor to regenerate context files for AI copilots. This refreshes the knowledge graph to surface up-to-date architecture and symbol information for semantic search.