GitNexus Guide
Quick reference for all GitNexus MCP tools, resources, and the knowledge graph schema.
Always Start Here
For any task involving code understanding, debugging, impact analysis, or refactoring:
- Read
gitnexus://repo/{name}/context — codebase overview + check index freshness
- Match your task to a skill below and read that skill file
- Follow the skill's workflow and checklist
If step 1 warns the index is stale, run npx gitnexus analyze in the terminal first.
Skills
| Task |
Skill to read |
| Understand architecture / "How does X work?" |
gitnexus-exploring |
| Blast radius / "What breaks if I change X?" |
gitnexus-impact-analysis |
| Trace bugs / "Why is X failing?" |
gitnexus-debugging |
| Rename / extract / split / refactor |
gitnexus-refactoring |
| Tools, resources, schema reference |
gitnexus-guide (this file) |
| Index, status, clean, wiki CLI commands |
gitnexus-cli |
Tools Reference
| Tool |
What it gives you |
query |
Process-grouped code intelligence — execution flows related to a concept |
context |
360-degree symbol view — categorized refs, processes it participates in |
impact |
Symbol blast radius — what breaks at depth 1/2/3 with confidence |
detect_changes |
Git-diff impact — what do your current changes affect |
rename |
Multi-file coordinated rename with confidence-tagged edits |
cypher |
Raw graph queries (read gitnexus://repo/{name}/schema first) |
list_repos |
Discover indexed repos |
Resources Reference
Lightweight reads (~100-500 tokens) for navigation:
| Resource |
Content |
gitnexus://repo/{name}/context |
Stats, staleness check |
gitnexus://repo/{name}/clusters |
All functional areas with cohesion scores |
gitnexus://repo/{name}/cluster/{clusterName} |
Area members |
gitnexus://repo/{name}/processes |
All execution flows |
gitnexus://repo/{name}/process/{processName} |
Step-by-step trace |
gitnexus://repo/{name}/schema |
Graph schema for Cypher |
Graph Schema
Nodes: File, Function, Class, Interface, Method, Community, Process
Edges (via CodeRelation.type): CALLS, IMPORTS, EXTENDS, IMPLEMENTS, DEFINES, MEMBER_OF, STEP_IN_PROCESS
MATCH (caller)-[:CodeRelation {type: 'CALLS'}]->(f:Function {name: "myFunc"})
RETURN caller.name, caller.filePath
1---2name: gitnexus-guide-23description: Use when the user asks about GitNexus itself — available tools, how to query the knowledge graph, MCP resources, graph schema, or workflow reference. Examples: "What GitNexus tools are available?", "How do I use GitNexus?"4---5# GitNexus Guide67Quick reference for all GitNexus MCP tools, resources, and the knowledge graph schema.89## Always Start Here1011For any task involving code understanding, debugging, impact analysis, or refactoring:12131. **Read `gitnexus://repo/{name}/context`** — codebase overview + check index freshness142. **Match your task to a skill below** and **read that skill file**153. **Follow the skill's workflow and checklist**1617> If step 1 warns the index is stale, run `npx gitnexus analyze` in the terminal first.1819## Skills2021| Task | Skill to read |22| -------------------------------------------- | ------------------- |23| Understand architecture / "How does X work?" | `gitnexus-exploring` |24| Blast radius / "What breaks if I change X?" | `gitnexus-impact-analysis` |25| Trace bugs / "Why is X failing?" | `gitnexus-debugging` |26| Rename / extract / split / refactor | `gitnexus-refactoring` |27| Tools, resources, schema reference | `gitnexus-guide` (this file) |28| Index, status, clean, wiki CLI commands | `gitnexus-cli` |2930## Tools Reference3132| Tool | What it gives you |33| ---------------- | ------------------------------------------------------------------------ |34| `query` | Process-grouped code intelligence — execution flows related to a concept |35| `context` | 360-degree symbol view — categorized refs, processes it participates in |36| `impact` | Symbol blast radius — what breaks at depth 1/2/3 with confidence |37| `detect_changes` | Git-diff impact — what do your current changes affect |38| `rename` | Multi-file coordinated rename with confidence-tagged edits |39| `cypher` | Raw graph queries (read `gitnexus://repo/{name}/schema` first) |40| `list_repos` | Discover indexed repos |4142## Resources Reference4344Lightweight reads (~100-500 tokens) for navigation:4546| Resource | Content |47| ---------------------------------------------- | ----------------------------------------- |48| `gitnexus://repo/{name}/context` | Stats, staleness check |49| `gitnexus://repo/{name}/clusters` | All functional areas with cohesion scores |50| `gitnexus://repo/{name}/cluster/{clusterName}` | Area members |51| `gitnexus://repo/{name}/processes` | All execution flows |52| `gitnexus://repo/{name}/process/{processName}` | Step-by-step trace |53| `gitnexus://repo/{name}/schema` | Graph schema for Cypher |5455## Graph Schema5657**Nodes:** File, Function, Class, Interface, Method, Community, Process58**Edges (via CodeRelation.type):** CALLS, IMPORTS, EXTENDS, IMPLEMENTS, DEFINES, MEMBER_OF, STEP_IN_PROCESS5960```cypher61MATCH (caller)-[:CodeRelation {type: 'CALLS'}]->(f:Function {name: "myFunc"})62RETURN caller.name, caller.filePath63```