gitnexus-guide
它能做什么
这是一份参考资料,告诉你的智能体每项任务应使用哪种 GitNexus 工具或指南。适合使用 GitNexus 并想了解其功能的人。
适用场景
- ✓当你询问有哪些 GitNexus 工具可用的时候。
- ✓当你想知道如何查询知识图谱的时候。
- ✓当你需要为某项任务选择合适的 GitNexus 指南,例如影响分析或重构的时候。
技能链接
https://github.com/abhigyanpatwari/GitNexus/blob/main/.claude/skills/gitnexus-guide/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我可以用哪些 GitNexus 工具来了解我的项目?应该先用哪一个?”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会阅读这份参考资料,把你的任务与合适的指南匹配,并遵循该指南的步骤。在信任结果之前,它还会检查索引是否是最新的。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
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:
- Bind the repository once — use a confirmed registry name/path or configured default; call
list_reposif unknown. Read hot-toolstaleness; usegitnexus://repo/{name}/contextwhen an overview is needed. - 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
node .gitnexus/run.cjs analyzein the terminal first. Onquery/context/impact/cypher, readstaleness.statusandstaleness.branch/lastCommitbefore using the answer. Re-analyze only forbehindordiverged.
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 |
trace |
Shortest path between two symbols — "how does A reach B?" in one call |
detect_changes |
Git-diff impact — what do your current changes affect |
rename |
Semantic rename: previews by default (dry_run omitted/true), applies with dry_run: false and the preview's plan_token; inspect application status and failures |
cypher |
Raw graph queries (read gitnexus://repo/{name}/schema first) |
explain |
Persisted taint findings — source→sink data flows (needs analyze --pdg) |
pdg_query |
Control/data dependence — what gates X (CDG) / where Y flows (REACHING_DEF); needs analyze --pdg |
check |
Check graph invariants such as circular imports |
route_map |
API route map — which components/hooks fetch which endpoints, and the handler files that serve them |
shape_check |
Response-shape drift — keys each route returns vs keys its consumers access (flags MISMATCH) |
api_impact |
Pre-change report for an API route — consumers, middleware, shape mismatches, risk level |
tool_map |
MCP/RPC tool definitions and the files that handle them |
group_list |
List configured multi-repo groups, or one group's config |
group_sync |
Rebuild a group's Contract Registry (cross-repo HTTP contract links); run after group.yaml changes or member re-index |
list_repos |
Discover indexed repos (paginated — limit/offset) |
Choose a focused response
Use the connected server's schema; older servers may not advertise the new filters. All options below are explicit: omitting them preserves existing output. Use filters for bulky unwanted sections; on an already-small response, omission metadata can outweigh the bytes saved.
| Question | Options |
|---|---|
| Which symbols implement this? | query: limit: 3, max_symbols: 3, include_content: false, chain_depth: 0, response_sections: ["process_symbols", "definitions"] |
| Which execution flows match? | query: keep processes in response_sections; join its id to process_symbols[].process_id |
| Who calls this exact symbol? | context: uid, response_sections: ["incoming"], relationTypes: ["CALLS"] |
| What does it call, with source? | context: uid, include_content: true, response_sections: ["outgoing"], relationTypes: ["CALLS"] |
| What is the impact summary? | impact: `direction: " |
常见问题
这是我可以单独运行的东西吗?
不是。它是一份参考资料,会针对具体任务指向其他 GitNexus 指南。
它会解释图谱的结构吗?
会。它包含知识图谱结构的参考说明。
如果索引已过时怎么办?
该技能说明,在信任结果之前,应先在终端中运行 analyze 命令。
详情
作者的原始描述
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?\"
repo: abhigyanpatwari/GitNexus
热度
- GitHub 星标
- 48k
- 排名
- #3608
- 许可证
- —
- 更新时间
- 2026/11/2
评论
- …