|
| 1 | +<!-- gitnexus:start --> |
| 2 | +# GitNexus — Code Intelligence |
| 3 | + |
| 4 | +This project is indexed by GitNexus as **NEAT** (2742 symbols, 5450 relationships, 62 execution flows). Use the GitNexus MCP tools to understand code, assess impact, and navigate safely. |
| 5 | + |
| 6 | +> If any GitNexus tool warns the index is stale, run `npx gitnexus analyze` in terminal first. |
| 7 | +
|
| 8 | +## Always Do |
| 9 | + |
| 10 | +- **MUST run impact analysis before editing any symbol.** Before modifying a function, class, or method, run `gitnexus_impact({target: "symbolName", direction: "upstream"})` and report the blast radius (direct callers, affected processes, risk level) to the user. |
| 11 | +- **MUST run `gitnexus_detect_changes()` before committing** to verify your changes only affect expected symbols and execution flows. |
| 12 | +- **MUST warn the user** if impact analysis returns HIGH or CRITICAL risk before proceeding with edits. |
| 13 | +- When exploring unfamiliar code, use `gitnexus_query({query: "concept"})` to find execution flows instead of grepping. It returns process-grouped results ranked by relevance. |
| 14 | +- When you need full context on a specific symbol — callers, callees, which execution flows it participates in — use `gitnexus_context({name: "symbolName"})`. |
| 15 | + |
| 16 | +## Never Do |
| 17 | + |
| 18 | +- NEVER edit a function, class, or method without first running `gitnexus_impact` on it. |
| 19 | +- NEVER ignore HIGH or CRITICAL risk warnings from impact analysis. |
| 20 | +- NEVER rename symbols with find-and-replace — use `gitnexus_rename` which understands the call graph. |
| 21 | +- NEVER commit changes without running `gitnexus_detect_changes()` to check affected scope. |
| 22 | + |
| 23 | +## Resources |
| 24 | + |
| 25 | +| Resource | Use for | |
| 26 | +|----------|---------| |
| 27 | +| `gitnexus://repo/NEAT/context` | Codebase overview, check index freshness | |
| 28 | +| `gitnexus://repo/NEAT/clusters` | All functional areas | |
| 29 | +| `gitnexus://repo/NEAT/processes` | All execution flows | |
| 30 | +| `gitnexus://repo/NEAT/process/{name}` | Step-by-step execution trace | |
| 31 | + |
| 32 | +## CLI |
| 33 | + |
| 34 | +| Task | Read this skill file | |
| 35 | +|------|---------------------| |
| 36 | +| Understand architecture / "How does X work?" | `.claude/skills/gitnexus/gitnexus-exploring/SKILL.md` | |
| 37 | +| Blast radius / "What breaks if I change X?" | `.claude/skills/gitnexus/gitnexus-impact-analysis/SKILL.md` | |
| 38 | +| Trace bugs / "Why is X failing?" | `.claude/skills/gitnexus/gitnexus-debugging/SKILL.md` | |
| 39 | +| Rename / extract / split / refactor | `.claude/skills/gitnexus/gitnexus-refactoring/SKILL.md` | |
| 40 | +| Tools, resources, schema reference | `.claude/skills/gitnexus/gitnexus-guide/SKILL.md` | |
| 41 | +| Index, status, clean, wiki CLI commands | `.claude/skills/gitnexus/gitnexus-cli/SKILL.md` | |
| 42 | + |
| 43 | +<!-- gitnexus:end --> |
0 commit comments