{"data":{"slug":"discovered-6760d0c76a099b74d9f4457d0d0ee2904d44ae525d16dc61","title":"Devxkit Gitnexus Recovery","summary":"Diagnose and recover GitNexus MCP and pending index refresh without auto-killing processes. The user receives structured status output and can clear pending markers to restore index freshness.","url":"https:\/\/skillshunter.net\/skills\/discovered-6760d0c76a099b74d9f4457d0d0ee2904d44ae525d16dc61","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/discovered-6760d0c76a099b74d9f4457d0d0ee2904d44ae525d16dc61","markdown_url":"https:\/\/skillshunter.net\/skills\/discovered-6760d0c76a099b74d9f4457d0d0ee2904d44ae525d16dc61.md","download_url":"https:\/\/skillshunter.net\/skills\/discovered-6760d0c76a099b74d9f4457d0d0ee2904d44ae525d16dc61\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Run from the indexed repository root. Use read-only commands first; mutating refresh\/analyze is human-initiated unless explicitly delegated. Do not delete lock files or kill processes unless the user authorizes it.","instructions":"---\nname: devxkit-gitnexus-recovery\ndescription: Diagnose and recover GitNexus MCP and pending index refresh without auto-killing processes.\nscope: global\ndevxkit_commands:\n  - devxkit gitnexus mcp-status\n  - devxkit gitnexus mcp-dedupe\n  - devxkit gitnexus refresh-pending\n  - devxkit gitnexus analyze\n---\n\n# devxkit gitnexus recovery\n\n## When to use\n\n- GitNexus index is STALE, post-commit refresh was skipped, or `.git\/gitnexus-refresh-pending` exists\n- Duplicate GitNexus MCP clients may be running (Cursor + other IDE)\n- Agent needs read-only status before suggesting human recovery\n- For MCP tool usage policy, consult the consumer project's GitNexus documentation\n\n## Preconditions\n\n- Run from the indexed repository root\n- Prefer read-only commands first; mutating refresh\/analyze is **human-initiated** unless user explicitly delegates\n\n## Commands\n\n```bash\ndevxkit gitnexus mcp-status\ndevxkit gitnexus mcp-dedupe\ndevxkit gitnexus refresh-pending\ndevxkit gitnexus analyze\n```\n\nTypical recovery sequence (human):\n\n```bash\ndevxkit gitnexus mcp-status\n# Several MCP clients may legitimately share the registry; CWD is not index ownership\ndevxkit gitnexus refresh-pending || devxkit gitnexus analyze\ndevxkit gitnexus status    # structured freshness cross-check\n```\n\n## Validation\n\n- `mcp-status` lists zero or known-safe MCP processes before analyze\n- After successful refresh: pending marker cleared, index FRESH in status output\n- `devxkit gitnexus refresh-pending` exit 0 when recovery completes\n\n## Common failures\n\n- **BUSY** \u2192 an exact holder (lsof) or a writer targeting *this* repository was found; `refresh-pending` keeps the marker. Unrelated MCP servers and other indexes do not block\n- **UNKNOWN** \u2192 inspection incomplete (lsof missing\/failed, unverifiable writer); fail closed, inspect manually\n- **STALE_LOCK** \u2192 a recovery sidecar (`lbug.lock`, `lbug.wal`, \u2026) exists without a holder; quiesce clients and recover by hand. DevXKit never removes it\n- **Several MCP clients** \u2192 `mcp-dedupe` reports only; it never suggests termination from CWD and agents **never auto-kill**\n- **analyze blocked** \u2192 wait for lock release; do not delete `.gitnexus\/` locks without explicit instruction\n- **Node\/runtime mismatch** \u2192 human runs install\/update per `gitnexus\/gitnexus-cli`\n\n## Stop conditions\n\n- **Agents:** use `devxkit gitnexus status` \/ `devxkit gitnexus mcp-status` read-only; do not auto-refresh on STALE\n- Do **not** run `analyze` while this index is BUSY, UNKNOWN or STALE_LOCK\n- Do **not** delete lock files or kill processes unless the user explicitly authorizes it\n- Do **not** run raw `gitnexus analyze` \/ `npx gitnexus` when policy says `gnx-analyze-here`\n\n## Related skills\n\n- `gitnexus\/gitnexus-cli`, `gitnexus\/gitnexus-debugging`, `gitnexus\/gitnexus-guide`\n","use_cases":["Recover a GitNexus index that is STALE or has a pending refresh marker","Identify and deduplicate duplicate GitNexus MCP clients","Check the status of GitNexus processes before initiating recovery","Ensure index freshness after recovery"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/jesuserro\/devxkit\/blob\/0380bd30488627f7232a08c38ebc0c7dd9a66dc3\/src\/devxkit\/assets\/skills\/devxkit\/devxkit-gitnexus-recovery\/SKILL.md","source_commit":"0380bd30488627f7232a08c38ebc0c7dd9a66dc3","license":null,"version":null,"listing_approved_at":"2026-11-29","created_at":"2026-11-28T18:48:45.000000Z","updated_at":"2026-11-29T10:53:27.000000Z","seo_title":"Devxkit Gitnexus Recovery Tool","seo_description":"A tool for diagnosing and recovering GitNexus MCP and pending index refreshes without auto-killing processes. Use read-only commands and follow structured recovery steps.","seo_keywords":["GitNexus recovery","devxkit gitnexus","MCP status","index refresh","repository diagnostics"]}}