gitnexus-cli

Index a repository into a GitNexus knowledge graph and generate CLAUDE.md and AGENTS.md files.

31|18|Updated Oct 15, 2024
One-click install
npx skills add https://github.com/grafana/metrics-drilldown --skill gitnexus-cli-grafana
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gitnexus-cli
Source: https://github.com/grafana/metrics-drilldown/tree/main/.claude/skills/gitnexus/gitnexus-cli
Command: npx skills add https://github.com/grafana/metrics-drilldown --skill gitnexus-cli-grafana

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

GitNexus CLI streamlines repository management by enabling you to build and refresh a knowledge graph of codebases directly from the command line, without global installs, and generate contextual guidance files for AI-assisted analysis.

Core Features & Use Cases

  • Analyze and index a codebase to create a searchable knowledge graph in .gitnexus/
  • Execute common GitNexus CLI commands (analyze, status, clean, wiki, list) via npx with zero global installs
  • Generate contextual CLAUDE.md / AGENTS.md context files to support AI workflows

Quick Start

Index the repository to build the GitNexus knowledge graph and enable CLI usage via npx.

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 codebase to build a knowledge graph from the command line?

To index a codebase and build a knowledge graph, run the GitNexus CLI from your project root via npx. This requires no global installation and writes the resulting graph output directly to the .gitnexus/ directory.

Can I generate AI context files like CLAUDE.md without globally installing a CLI?

Yes, you can generate CLAUDE.md and AGENTS.md context files without global installs by running GitNexus CLI commands with npx. This approach supports AI workflows by providing contextual guidance directly from your indexed repository.

What commands are available to manage a repository knowledge graph?

Available commands to manage a repository knowledge graph include analyze, status, clean, wiki, and list. These are executed via npx to control reindexing, generate embeddings, and refresh the .gitnexus/ output.

Do I need a global installation to refresh the repository knowledge graph?

No global installation is needed to refresh the repository knowledge graph. GitNexus CLI leverages npx to execute commands directly from the project root, allowing you to keep your index current with zero setup overhead.

How does npx execute GitNexus commands for codebase analysis?

npx executes GitNexus commands for codebase analysis by running them directly from the project root without requiring a global install. This mechanism builds the knowledge graph and generates contextual files while offering options to control reindexing and embeddings.

When should I clean or reindex a repository knowledge graph?

You should clean or reindex a repository knowledge graph when you need to update the .gitnexus/ output after significant codebase changes. Using the clean and analyze commands via npx ensures your index stays current and your context files remain accurate.