gitnexus-guide
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseGitNexus Guide
GitNexus 使用指南
Quick reference for all GitNexus MCP tools, resources, and the knowledge graph schema.
所有GitNexus MCP工具、资源和知识图谱Schema的快速参考。
Always Start Here
始终从这里开始
For any task involving code understanding, debugging, impact analysis, or refactoring:
- Read — codebase overview + check index freshness
gitnexus://repo/{name}/context - 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, runin the terminal first.npx gitnexus analyze
对于任何涉及代码理解、调试、影响分析或重构的任务:
- 查看—— 代码库概览 + 检查索引新鲜度
gitnexus://repo/{name}/context - 将你的任务与下方的技能匹配,并阅读对应的技能文件
- 遵循技能的工作流和检查清单
如果步骤1提示索引已过期,请先在终端中运行。npx gitnexus analyze
Skills
技能列表
| Task | Skill to read |
|---|---|
| Understand architecture / "How does X work?" | |
| Blast radius / "What breaks if I change X?" | |
| Trace bugs / "Why is X failing?" | |
| Rename / extract / split / refactor | |
| Tools, resources, schema reference | |
| Index, status, clean, wiki CLI commands | |
| 任务 | 需阅读的技能文件 |
|---|---|
| 理解架构 / “X是如何工作的?” | |
| 影响范围 / “如果我修改X,会有哪些东西被破坏?” | |
| 追踪Bug / “X为什么会失败?” | |
| 重命名 / 提取 / 拆分 / 重构 | |
| 工具、资源、Schema参考 | |
| 索引、状态、清理、Wiki CLI命令 | |
Tools Reference
工具参考
| Tool | What it gives you |
|---|---|
| Process-grouped code intelligence — execution flows related to a concept |
| 360-degree symbol view — categorized refs, processes it participates in |
| Symbol blast radius — what breaks at depth 1/2/3 with confidence |
| Git-diff impact — what do your current changes affect |
| Multi-file coordinated rename with confidence-tagged edits |
| Raw graph queries (read |
| Discover indexed repos |
| 工具 | 功能说明 |
|---|---|
| 按流程分组的代码智能 —— 与某个概念相关的执行流 |
| 360度符号视图 —— 分类后的引用、参与的流程 |
| 符号影响范围 —— 深度1/2/3级别的受影响对象及置信度 |
| Git差异影响分析 —— 当前修改会影响哪些内容 |
| 多文件协同重命名,附带置信度标记的编辑 |
| 原生图谱查询(请先查看 |
| 发现已索引的代码库 |
Resources Reference
资源参考
Lightweight reads (~100-500 tokens) for navigation:
| Resource | Content |
|---|---|
| Stats, staleness check |
| All functional areas with cohesion scores |
| Area members |
| All execution flows |
| Step-by-step trace |
| Graph schema for Cypher |
轻量级阅读内容(约100-500个token),用于导航:
| 资源 | 内容 |
|---|---|
| 统计信息、过期检查 |
| 所有功能区域及内聚度评分 |
| 区域成员 |
| 所有执行流程 |
| 分步追踪 |
| 用于Cypher的图谱Schema |
Graph Schema
图谱Schema
Nodes: File, Function, Class, Interface, Method, Community, Process
Edges (via CodeRelation.type): CALLS, IMPORTS, EXTENDS, IMPLEMENTS, DEFINES, MEMBER_OF, STEP_IN_PROCESS
cypher
MATCH (caller)-[:CodeRelation {type: 'CALLS'}]->(f:Function {name: "myFunc"})
RETURN caller.name, caller.filePath节点: File、Function、Class、Interface、Method、Community、Process
边(通过CodeRelation.type): CALLS、IMPORTS、EXTENDS、IMPLEMENTS、DEFINES、MEMBER_OF、STEP_IN_PROCESS
cypher
MATCH (caller)-[:CodeRelation {type: 'CALLS'}]->(f:Function {name: "myFunc"})
RETURN caller.name, caller.filePath