Status

GitNexus Status

Roxabi e21abe6 1.1 KB Updated

File contents

GitNexus Status

Check if the current repository is indexed and whether the index is stale (behind HEAD).

Entry

/gitnexus-status

Step 1 — Run Status

gitnexus status

Step 2 — Parse JSON Output

{
  "indexed": true,
  "repo": "my-project",
  "path": "/home/user/projects/my-project",
  "last_commit": "abc123",
  "head_commit": "def456",
  "stale": true,
  "stats": {
    "symbols": 1234,
    "relationships": 5678,
    "processes": 42,
    "embeddings": 0
  }
}

Step 3 — Present Results

Repo my-project
Indexed ✅ Yes
Stale ⚠️ Yes (3 commits behind)
Symbols 1,234
Relationships 5,678
Processes 42
Embeddings No

Stale index detected → recommend: /gitnexus-analyze to refresh.

Not indexed → recommend: /gitnexus-analyze to create index.

Edge Cases

  • indexed: false → repo not indexed, suggest /gitnexus-analyze
  • stale: true → graph is behind HEAD, warn user
  • Outside git repo → error message, suggest cd to repo

$ARGUMENTS

Roxabi/roxabi-plugins/tree/main/plugins/gitnexus/skills/status commit e21abe670c

Frequently asked questions

npx skillmds@latest add roxabi/status