gitnexus-cli

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

18|8|Updated Jun 17, 2026
One-click install
npx skills add https://github.com/PyModel/pythinker-code --skill gitnexus-cli-pymodel
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gitnexus-cli
Source: https://github.com/PyModel/pythinker-code/tree/main/.agents/skills/gitnexus/gitnexus-cli
Command: npx skills add https://github.com/PyModel/pythinker-code --skill gitnexus-cli-pymodel

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires gitnexus.

What problem does it solve? Managing a GitNexus code index requires knowing the right commands, flags, and recovery steps when the index is missing, stale, or corrupt. This Skill provides the exact command reference for analyzing repositories, checking index freshness, cleaning indexes, and generating documentation wikis. ## Core Features & Use Cases - Index Management: Build or refresh the knowledge graph with analyze, verify freshness with status, and remove corrupt indexes with clean. - Wiki Generation: Produce LLM-generated repository documentation from the knowledge graph, with options for model selection, concurrency, and publishing as a GitHub Gist. - Recovery Guidance: Handles common failure cases such as a missing project-local runner after a fresh clone, npm 11.x npx crashes, and stale indexes after commits or merges. - Use Case: After cloning a repository, ask the agent to index the codebase; it regenerates the missing runner, runs analyze, and confirms the index loaded so downstream exploration and debugging skills can use it. ## Quick Start Ask the agent to index this repository with GitNexus and then check the index status.

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 node .gitnexus/run.cjs analyze from the project root. It parses all source files, builds the knowledge graph into .gitnexus/, and generates AGENTS.md context files. Use --force to re-index even when up to date.

How do I check if my GitNexus index is stale?

Run node .gitnexus/run.cjs status to see whether the repo has an index, when it was last updated, and symbol and relationship counts. Re-run analyze if the index is stale after major code changes.

Why does node .gitnexus/run.cjs report Cannot find module?

The project-local runner is gitignored, so it is missing after a fresh clone or git clean. Regenerate it by running npx gitnexus analyze from the project root, which recreates the runner next to the index.

Does GitNexus work with npm 11.x when npx crashes?

On npm 11.x, npx may crash during install with a node.target is null error. Install once with npm i -g gitnexus and run gitnexus analyze, or use pnpm dlx with the documented allow-build flags.

How do I generate a wiki from a GitNexus index?

Run node .gitnexus/run.cjs wiki to generate documentation from the knowledge graph using an LLM. It requires an API key saved to ~/.gitnexus/config.json, with flags for model, base URL, concurrency, and publishing as a GitHub Gist.