gitnexus-cli

Runs GitNexus CLI commands to index repositories, check status, and generate wikis.

10|3|Updated Mar 7, 2026
One-click install
npx skills add https://github.com/Cynthia1070711/PHYCOOL_Tools --skill gitnexus-cli-cynthia1070711
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gitnexus-cli
Source: https://github.com/Cynthia1070711/PHYCOOL_Tools/tree/main/config-templates/claude/skills/gitnexus/gitnexus-cli
Command: npx skills add https://github.com/Cynthia1070711/PHYCOOL_Tools --skill gitnexus-cli-cynthia1070711

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires gitnexus.

What problem does it solve? Managing a GitNexus code knowledge graph requires knowing the right CLI commands and flags for indexing, freshness checks, cleanup, and documentation generation, which this Skill consolidates into one reference. ## Core Features & Use Cases - Index Management: Build or refresh the repository knowledge graph with npx gitnexus analyze, including optional embedding generation for semantic search. - Status and Cleanup: Check index freshness with status, list all indexed repos with list, and remove corrupt or stale indexes with clean. - Wiki Generation: Generate LLM-based repository documentation from the knowledge graph with configurable model, concurrency, and optional GitHub Gist publishing. - Use Case: After a major refactor, run npx gitnexus analyze --force to rebuild the index, then verify with status before using the exploring or impact-analysis skills. ## Quick Start Ask the AI to index this repository with GitNexus and then check whether the index is up to date.

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. Use --force for a full re-index.

How do I check if my GitNexus index is stale?

Run npx gitnexus status to see when the index was last updated along with symbol and relationship counts. In Claude Code, a PostToolUse hook also detects staleness after git commit or merge and notifies the agent.

Does GitNexus require a global installation?

No, all GitNexus commands work via npx with no global install required. You run commands like npx gitnexus analyze or npx gitnexus status directly from the project root.

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

Run npx gitnexus wiki, which generates documentation from the knowledge graph using an LLM. It requires an API key saved to ~/.gitnexus/config.json, and supports --model, --concurrency, and --gist flags.

Why does GitNexus say the index is stale after re-analyzing?

The MCP server caches the loaded index, so you need to restart Claude Code to reload it after re-analyzing. The new index on disk is correct; only the in-memory view is outdated.

How do I delete a corrupt GitNexus index?

Run npx gitnexus clean to delete the .gitnexus/ directory and unregister the repo from the global registry. Use --force to skip the confirmation prompt or --all to clean every indexed repo.