mcpField
G
gitnexus-exploring

gitnexus-exploring

github.com/arenukvern开发39447 次安装2 周前更新
代码仓库

关于 gitnexus-exploring

利用 GitNexus 探索已索引代码库的技能,通过图谱查询、符号上下文和执行轨迹理解项目结构与行为。适合调查陌生代码或追踪功能实现的开发者。

主要功能

  1. 01发现已索引的仓库
  2. 02查看代码库上下文与新鲜度
  3. 03搜索相关执行流程
  4. 04检查符号的调用方与被调用方
  5. 05读取分步执行轨迹

适用场景

  1. 01了解陌生项目的结构
  2. 02追踪身份验证或支付流程
  3. 03定位数据库相关逻辑
  4. 04检查符号的调用方与依赖

MCP 相关

使用 `gitnexus://repo/{name}/context` 等 GitNexus MCP 资源和流程轨迹,并通过 `query` 与 `context` 工具探索代码及执行流程。

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/arenukvern/mcp_flutter --skill gitnexus-exploring

安装后在 Claude Code 中输入/gitnexus-exploring确认已加载。

详细介绍

使用 GitNexus 探索代码库

适用场景

  • “身份验证是如何实现的?”
  • “项目结构是什么样的?”
  • “展示主要组件”
  • “数据库逻辑在哪里?”
  • 了解以前没看过的代码

工作流

1. READ gitnexus://repos                          → Discover indexed repos
2. READ gitnexus://repo/{name}/context             → Codebase overview, check staleness
3. query({search_query: "<what you want to understand>"})  → Find related execution flows
4. context({name: "<symbol>"})            → Deep dive on specific symbol
5. READ gitnexus://repo/{name}/process/{name}      → Trace full execution flow

如果步骤 2 显示“索引已过期”,请在终端中运行 node .gitnexus/run.cjs analyze。

检查清单

- [ ] READ gitnexus://repo/{name}/context
- [ ] query for the concept you want to understand
- [ ] Review returned processes (execution flows)
- [ ] context on key symbols for callers/callees
- [ ] READ process resource for full execution traces
- [ ] Read source files for implementation details

资源

资源可获取内容
gitnexus://repo/{name}/context统计信息、过期警告(约 150 个 token)
gitnexus://repo/{name}/clusters所有功能区域及其内聚度评分(约 300 个 token)
gitnexus://repo/{name}/cluster/{name}区域成员及文件路径(约 500 个 token)
gitnexus://repo/{name}/process/{name}分步执行跟踪(约 200 个 token)

工具

query — 查找与某个概念相关的执行流程:

query({search_query: "payment processing"})
→ Processes: CheckoutFlow, RefundFlow, WebhookHandler
→ Symbols grouped by flow with file locations

context — 全方位查看某个符号:

context({name: "validateUser"})
→ Incoming calls: loginHandler, apiMiddleware
→ Outgoing calls: checkToken, getUserById
→ Processes: LoginFlow (step 2/5), TokenRefresh (step 1/3)

示例:“支付处理是如何实现的?”

1. READ gitnexus://repo/my-app/context       → 918 symbols, 45 processes
2. query({search_query: "payment processing"})
   → CheckoutFlow: processPayment → validateCard → chargeStripe
   → RefundFlow: initiateRefund → calculateRefund → processRefund
3. context({name: "processPayment"})
   → Incoming: checkoutHandler, webhookHandler
   → Outgoing: validateCard, chargeStripe, saveTransaction
4. Read src/payments/processor.ts for implementation details

评论

支持 Markdown