gitnexus-cli

Build and refresh repository knowledge graph indexes for Claude Code context.

15|2|Updated May 23, 2026
One-click install
npx skills add https://github.com/VKirill/antigravity-for-claude-code --skill gitnexus-cli-vkirill
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: gitnexus-cli
Source: https://github.com/VKirill/antigravity-for-claude-code/tree/main/skills/gitnexus-cli
Command: npx skills add https://github.com/VKirill/antigravity-for-claude-code --skill gitnexus-cli-vkirill

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It solves the problem of quickly turning a codebase into a searchable knowledge graph so you can guide Claude Code with up-to-date context instead of guessing file structure and relationships.

Core Features & Use Cases

  • Indexing (analyze): Builds a repository knowledge graph and writes it to .gitnexus/, generating CLAUDE.md and AGENTS.md context files.
  • Freshness checks (status): Reports whether the current repo’s index exists and how recently it was updated, helping you decide when re-indexing is needed.
  • Graph documentation (wiki): Generates repository documentation from the graph using an LLM, optionally publishing via a GitHub Gist.
  • Repo management (list/clean): Lists all indexed repos and clears indexes when they’re stale or corrupted.

Quick Start

Run npx gitnexus analyze --force from your project root to rebuild the index and regenerate Claude Code context files.

Frequently Asked Questions about gitnexus-cli

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

FAQPage Schema
How do I generate a knowledge graph for my repository to provide better context for Claude Code?▼

You can build a repository knowledge graph by running `npx gitnexus analyze` from your project root, which indexes the codebase and outputs navigable context files like `CLAUDE.md` and `AGENTS.md` for Claude Code.

What is the best way to check if my repository's code index is fresh or stale?▼

To check your repository index freshness, run the GitNexus status command, which reports whether an index exists and how recently it was updated to help you decide if re-indexing is needed.

How do I automatically generate repository documentation from a code knowledge graph?▼

You can generate repository documentation from the graph by running the wiki command, which uses an LLM to create a wiki from the indexed knowledge graph and optionally publishes it via a GitHub Gist.

Do I need an LLM API key to index my repository and generate Claude Code context files?▼

You do not need an LLM API key for standard indexing and generating `CLAUDE.md` or `AGENTS.md` context files, but an API key is required for optional wiki documentation generation.

How can I clear a corrupted or stale local knowledge graph index for my project?▼

You can clear stale or corrupted indexes by using the GitNexus clean command, which removes the `.gitnexus/` outputs, while the list command shows all currently indexed repositories.