gitnexus-cli

Build and refresh GitNexus knowledge graphs for local repositories.

92|8|Updated May 15, 2026
One-click install
npx skills add https://github.com/LonelyHerbivore/Trellis-Herbivore --skill gitnexus-cli-lonelyherbivore
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gitnexus-cli
Source: https://github.com/LonelyHerbivore/Trellis-Herbivore/tree/main/.claude/skills/gitnexus/gitnexus-cli
Command: npx skills add https://github.com/LonelyHerbivore/Trellis-Herbivore --skill gitnexus-cli-lonelyherbivore

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It solves the problem of turning a code repository into a searchable knowledge graph so you can quickly understand structure, relationships, and context without manually curating docs.

Core Features & Use Cases

  • Repository Indexing (analyze): Builds or refreshes the .gitnexus/ index from source files and generates context files like CLAUDE.md and AGENTS.md.
  • Index Health Checks (status): Verifies whether the index exists, when it was last updated, and basic graph counts to decide if re-indexing is needed.
  • Docs Generation (wiki): Creates LLM-generated repository documentation from the knowledge graph, optionally regenerating, selecting models, and supporting gist publishing.

Use Case: After a major refactor, re-run indexing to regenerate context files, then use the updated context for faster navigation and better task outcomes.

Quick Start

Run the GitNexus analyze command from your project root to build a fresh index for the current repository.

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 from my local codebase?

To generate a knowledge graph from your codebase, run the analyze command from your project root using npx to build a `.gitnexus/` index and generate context files like CLAUDE.md and AGENTS.md.

What is the best way to create LLM-generated wiki documentation from repository code?

Creating LLM-generated wiki documentation from repository code is done by running the wiki command, which generates docs from the indexed knowledge graph with options for model selection and gist publishing.

How do I check if my repository knowledge graph index is stale after a major refactor?

To check if your repository knowledge graph index is stale after a refactor, run the status command to verify when the `.gitnexus/` index was last updated and review graph counts.

Can I use npx to execute repository indexing and generate CLAUDE.md context files?

Yes, you can use npx to execute repository indexing, which builds the `.gitnexus/` state and automatically generates CLAUDE.md and AGENTS.md context files for your local repository.

Does repository indexing with a knowledge graph support forced regeneration and embeddings?

Yes, repository indexing with a knowledge graph supports forced regeneration and optionally supports embeddings to refresh the `.gitnexus/` index after significant codebase changes.

How do I clean broken repository indexes and list all indexed repositories?

Cleaning broken repository indexes and listing all indexed repositories are supported maintenance features, allowing you to verify index health and remove outdated `.gitnexus/` states across projects.