Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Documents GitNexus CLI commands to index a repo, check index status, clean the index, generate wikis, and list indexed repos.
Use this skill ↓61% 96%+35 ptsof test cases passed
Passed 22 of 23 test cases with the skill, and 14 of 23 without it.
3 of 3 safety checks passed
Not used yet
All commands work via npx — no global install required.
npx gitnexus analyze
Run from the project root. This parses all source files, builds the knowledge graph, writes it to .gitnexus/, and generates CLAUDE.md / AGENTS.md context files.
| Flag | Effect |
|---|---|
--force | Force full re-index even if up to date |
--embeddings | Enable embedding generation for semantic search (off by default) |
When to run: First time in a project, after major code changes, or when gitnexus://repo/{name}/context reports the index is stale. In Claude Code, a PostToolUse hook runs analyze automatically after git commit and git merge, preserving embeddings if previously generated.
npx gitnexus status
Shows whether the current repo has a GitNexus index, when it was last updated, and symbol/relationship counts. Use this to check if re-indexing is needed.
npx gitnexus clean
Deletes the .gitnexus/ directory and unregisters the repo from the global registry. Use before re-indexing if the index is corrupt or after removing GitNexus from a project.
| Flag | Effect |
|---|---|
--force | Skip confirmation prompt |
Next to this one in the catalogue, plus more from the same author.