gitnexus-debugging by abhigyanpatwari/gitnexus
npx skills add https://github.com/abhigyanpatwari/gitnexus --skill gitnexus-debugging1. gitnexus_query({query: "<error or symptom>"}) → 查找相关的执行流程
2. gitnexus_context({name: "<suspect>"}) → 查看调用者/被调用者/进程
3. READ gitnexus://repo/{name}/process/{name} → 追踪执行流程
4. gitnexus_cypher({query: "MATCH path..."}) → 如有需要,进行自定义追踪
如果出现"索引已过期" → 在终端中运行
npx gitnexus analyze。
- [ ] 理解症状(错误信息、意外行为)
- [ ] 使用 gitnexus_query 搜索错误文本或相关代码
- [ ] 从返回的进程中识别可疑函数
- [ ] 使用 gitnexus_context 查看调用者和被调用者
- [ ] 如果适用,通过进程资源追踪执行流程
- [ ] 如有需要,使用 gitnexus_cypher 进行自定义调用链追踪
- [ ] 阅读源文件以确认根本原因
| 症状 |
|---|
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| GitNexus 方法 |
|---|
| 错误信息 | 使用 gitnexus_query 搜索错误文本 → 在抛出位置使用 context |
| 返回值错误 | 在函数上使用 context → 追踪被调用者以分析数据流 |
| 间歇性失败 | 使用 context → 查找外部调用、异步依赖 |
| 性能问题 | 使用 context → 查找具有许多调用者的符号(热点路径) |
| 近期回归 | 使用 detect_changes 查看您的更改影响了什么 |
gitnexus_query — 查找与错误相关的代码:
gitnexus_query({query: "payment validation error"})
→ Processes: CheckoutFlow, ErrorHandling
→ Symbols: validatePayment, handlePaymentError, PaymentException
gitnexus_context — 为可疑对象提供完整上下文:
gitnexus_context({name: "validatePayment"})
→ Incoming calls: processCheckout, webhookHandler
→ Outgoing calls: verifyCard, fetchRates (external API!)
→ Processes: CheckoutFlow (step 3/7)
gitnexus_cypher — 自定义调用链追踪:
MATCH path = (a)-[:CodeRelation {type: 'CALLS'}*1..2]->(b:Function {name: "validatePayment"})
RETURN [n IN nodes(path) | n.name] AS chain
1. gitnexus_query({query: "payment error handling"})
→ Processes: CheckoutFlow, ErrorHandling
→ Symbols: validatePayment, handlePaymentError
2. gitnexus_context({name: "validatePayment"})
→ Outgoing calls: verifyCard, fetchRates (external API!)
3. READ gitnexus://repo/my-app/process/CheckoutFlow
→ Step 3: validatePayment → calls fetchRates (external)
4. Root cause: fetchRates calls external API without proper timeout
每周安装量
121
代码仓库
GitHub 星标数
19.0K
首次出现
2026年2月25日
安全审计
安装于
gemini-cli120
github-copilot120
kimi-cli120
cursor120
opencode120
amp120
1. gitnexus_query({query: "<error or symptom>"}) → Find related execution flows
2. gitnexus_context({name: "<suspect>"}) → See callers/callees/processes
3. READ gitnexus://repo/{name}/process/{name} → Trace execution flow
4. gitnexus_cypher({query: "MATCH path..."}) → Custom traces if needed
If "Index is stale" → run
npx gitnexus analyzein terminal.
- [ ] Understand the symptom (error message, unexpected behavior)
- [ ] gitnexus_query for error text or related code
- [ ] Identify the suspect function from returned processes
- [ ] gitnexus_context to see callers and callees
- [ ] Trace execution flow via process resource if applicable
- [ ] gitnexus_cypher for custom call chain traces if needed
- [ ] Read source files to confirm root cause
| Symptom | GitNexus Approach |
|---|---|
| Error message | gitnexus_query for error text → context on throw sites |
| Wrong return value | context on the function → trace callees for data flow |
| Intermittent failure | context → look for external calls, async deps |
| Performance issue | context → find symbols with many callers (hot paths) |
| Recent regression | detect_changes to see what your changes affect |
gitnexus_query — find code related to error:
gitnexus_query({query: "payment validation error"})
→ Processes: CheckoutFlow, ErrorHandling
→ Symbols: validatePayment, handlePaymentError, PaymentException
gitnexus_context — full context for a suspect:
gitnexus_context({name: "validatePayment"})
→ Incoming calls: processCheckout, webhookHandler
→ Outgoing calls: verifyCard, fetchRates (external API!)
→ Processes: CheckoutFlow (step 3/7)
gitnexus_cypher — custom call chain traces:
MATCH path = (a)-[:CodeRelation {type: 'CALLS'}*1..2]->(b:Function {name: "validatePayment"})
RETURN [n IN nodes(path) | n.name] AS chain
1. gitnexus_query({query: "payment error handling"})
→ Processes: CheckoutFlow, ErrorHandling
→ Symbols: validatePayment, handlePaymentError
2. gitnexus_context({name: "validatePayment"})
→ Outgoing calls: verifyCard, fetchRates (external API!)
3. READ gitnexus://repo/my-app/process/CheckoutFlow
→ Step 3: validatePayment → calls fetchRates (external)
4. Root cause: fetchRates calls external API without proper timeout
Weekly Installs
121
Repository
GitHub Stars
19.0K
First Seen
Feb 25, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
gemini-cli120
github-copilot120
kimi-cli120
cursor120
opencode120
amp120
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
116,600 周安装