gitnexus-cli

Index code repositories and generate knowledge graphs with gitnexus CLI.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/MDLDev-site/mdl-brand-website --skill gitnexus-cli-mdldev-site
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gitnexus-cli
Source: https://github.com/MDLDev-site/mdl-brand-website/tree/main/.claude/skills/gitnexus/gitnexus-cli
Command: npx skills add https://github.com/MDLDev-site/mdl-brand-website --skill gitnexus-cli-mdldev-site

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The CLI simplifies the management of code repositories by enabling quick indexing, knowledge graph generation, and automated wiki creation from a single, consistent workflow.

Core Features & Use Cases

  • Analyze: Build or refresh the index from the project root using npx gitnexus analyze to parse source files, build the knowledge graph, write to .gitnexus, and generate CLAUDE.md / AGENTS.md context files.
  • Wiki and documentation: Generate repository documentation from the graph with npx gitnexus wiki.
  • Status and management: Check index freshness with npx gitnexus status and remove indices with npx gitnexus clean.

Quick Start

From the project root, run npx gitnexus analyze to build the index and generate 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 wiki documentation from a code repository?

To generate repository documentation, run `npx gitnexus wiki` from your project root after building the index. This command analyzes the knowledge graph stored in the `.gitnexus` directory and creates contextual wiki documentation from your source files.

How does code indexing and knowledge graph generation work for multiple repos?

Code indexing parses source files to build a knowledge graph and writes output to a `.gitnexus` directory. Running `npx gitnexus analyze` from the project root builds or refreshes this index, while `npx gitnexus list` helps manage multiple repositories.

Do I need Node.js and npm to run repository indexing and documentation tasks?

Yes, you need Node.js with npm installed to access `npx` for executing gitnexus commands. The CLI relies on `npx` to run `analyze`, `status`, `clean`, `wiki`, and `list` commands directly from your project root.

What is the best way to check index freshness and remove stale repository indices?

To check index freshness, run `npx gitnexus status`. To remove stale indices and clean up the generated context files, execute `npx gitnexus clean`, which clears the `.gitnexus` directory data.

Does indexing generate context files for AI agents alongside wiki documentation?

Yes, running `npx gitnexus analyze` generates `CLAUDE.md` and `AGENTS.md` context files alongside the knowledge graph. These files provide contextual documentation directly from your parsed source code.