gitnexus-cli

Runs GitNexus CLI commands to index repositories and generate wikis.

Updated May 28, 2026
One-click install
npx skills add https://github.com/changfengpro/agent-skills --skill gitnexus-cli-changfengpro
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gitnexus-cli
Source: https://github.com/changfengpro/agent-skills/tree/main/skills/gitnexus-cli
Command: npx skills add https://github.com/changfengpro/agent-skills --skill gitnexus-cli-changfengpro

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Managing a GitNexus code index requires knowing the right CLI commands and flags for analyzing repositories, checking index freshness, cleaning stale indexes, and generating documentation, which is easy to get wrong without a reference. ## Core Features & Use Cases - Repository Indexing: Run npx gitnexus analyze to parse source files, build the knowledge graph, and generate CLAUDE.md / AGENTS.md context files, with optional embedding support. - Index Maintenance: Check index freshness with status, remove corrupt indexes with clean, and list all registered repos with list. - Wiki Generation: Produce LLM-generated repository documentation from the knowledge graph via wiki, with configurable model, concurrency, and GitHub Gist publishing. - Use Case: After cloning a new project, ask the assistant to index the repo; it runs npx gitnexus analyze, then verifies the index loaded via the gitnexus://repo/{name}/context resource. ## Quick Start Ask the assistant to index this repository with GitNexus and confirm the index status afterward.

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 repository with GitNexus?

Run `npx gitnexus analyze` from the project root. It parses all source files, builds the knowledge graph into `.gitnexus/`, and generates CLAUDE.md and AGENTS.md context files. No global install is required.

How do I check if my GitNexus index is stale?

Run `npx gitnexus status` to see whether the current repo has an index, when it was last updated, and symbol and relationship counts. Use this to decide whether re-indexing with `analyze` is needed.

Does GitNexus require a global installation?

No, all GitNexus commands work via `npx`, so no global install is required. Commands like `npx gitnexus analyze` and `npx gitnexus status` run directly from the project root.

Why does GitNexus say "Not inside a git repository"?

This error occurs when the command is run from a directory that is not inside a git repository. Change into a directory within a git repo and rerun the command.

How do I generate a wiki from my codebase with GitNexus?

Run `npx gitnexus wiki` after indexing. It generates documentation from the knowledge graph using an LLM and requires an API key, which is saved to `~/.gitnexus/config.json` on first use. Use `--gist` to publish as a GitHub Gist.

When should I use gitnexus clean instead of analyze?

Use `npx gitnexus clean` when the index is corrupt or when removing GitNexus from a project, since it deletes `.gitnexus/` and unregisters the repo. Use `analyze --force` for a normal full re-index.