Réindexer GraphNexus

VérifiéPrudence

Réindexe le graphe de connaissances GitNexus du dépôt courant via la commande CLI 'npx gitnexus@latest analyze'. À utiliser après des refontes majeures, des fusions importantes, ou lorsque l'index n'est plus à jour. Permet une reconstruction complète avec l'option '--force' si l'index semble corrompu.

Spar Skills Guide Bot
DeveloppementIntermédiaire
7002/06/2026
Claude CodeCursorWindsurf
#reindex#gitnexus#knowledge-graph#cli-tool

Recommandé pour

Notre avis

Réindexe le graphe de connaissances GitNexus d'un dépôt via la ligne de commande.

Points forts

  • Opération locale sans appel réseau
  • Analyse incrémentale ou complète avec --force
  • Fournit des statistiques détaillées avant/après

Limites

  • Nécessite que GitNexus soit configuré au préalable
  • Peut prendre 2+ minutes sur les gros dépôts (10k+ fichiers)
  • Ne fonctionne que via CLI, pas d'intégration MCP
Quand l'utiliser

Après un refactoring important, une fusion de PR volumineuse, ou lorsque l'index est signalé comme obsolète.

Quand l'éviter

Pour des modifications triviales (1-2 fichiers) où l'index est probablement encore à jour.

Analyse de sécurité

Prudence
Score qualité88/100

The skill uses a network-dependent command (npx) to fetch and run a third-party package. While the purpose is legitimate, this introduces a supply chain risk that requires caution.

Points d'attention
  • The skill instructs running 'npx gitnexus@latest', which downloads and executes JavaScript code from npm. If the package is compromised, it could introduce malicious code. No sandboxing mentioned.

Exemples

Check and Reindex
Run npx gitnexus@latest status, if not current run npx gitnexus@latest analyze, then show updated stats.
Force Rebuild
The GitNexus index seems corrupted. Force reindex the repository and show the before/after stats.

name: reindex description: "Re-index the GitNexus knowledge graph via CLI (npx gitnexus@latest). CLI ONLY - NO MCP server exists, never use readMcpResource with gitnexus:// URIs. TRIGGERS - reindex, refresh index, update knowledge graph, gitnexus analyze." allowed-tools: Bash, Read model: haiku

GitNexus Reindex

CLI ONLY — no MCP server exists. Never use readMcpResource with gitnexus:// URIs.

Re-index the current repository's GitNexus knowledge graph and verify the updated stats.

When to Use

  • After significant refactors (5+ files changed)
  • When staleness hook reports index is behind
  • After merging a large PR
  • "Refresh the knowledge graph"

Workflow

Step 1: Check Current Status

Run from the repo root (the CLI auto-detects the repo from cwd):

npx gitnexus@latest status

If already current (lastCommit matches HEAD), report "Index is up to date" and stop.

Step 2: Run Indexer

npx gitnexus@latest analyze

Use --force if the index appears corrupted or if a normal analyze doesn't pick up changes:

npx gitnexus@latest analyze --force

This may take 30–120 seconds depending on codebase size.

Step 3: Verify New Index

npx gitnexus@latest status

Step 4: Report Stats

Present the updated stats:

## GitNexus Reindex Complete

| Metric      | Before | After |
| ----------- | ------ | ----- |
| Nodes       | ...    | ...   |
| Edges       | ...    | ...   |
| Communities | ...    | ...   |
| Flows       | ...    | ...   |
| Last Commit | ...    | ...   |

Index is now current with HEAD.

Notes

  • The analyze command runs locally — no network calls
  • KuzuDB database is stored in .gitnexus/ at the repo root
  • Large codebases (10k+ files) may take 2+ minutes
  • The --force flag rebuilds from scratch; without it, incremental analysis is used
Skills similaires