gitnexus-debugging
하는 일
에이전트가 각 부분이 코드에서 어떻게 호출되고 사용되는지 따라가며 버그의 원인을 찾도록 안내합니다. 실패의 근본 원인을 빨리 알고 싶은 개발자를 위한 스킬입니다.
사용하는 경우
- ✓함수가 실패해서 그 이유를 알고 싶을 때.
- ✓오류가 나타나 그 출처를 찾아야 할 때.
- ✓엔드포인트가 오류를 반환해 그 뒤의 코드를 추적하고 싶은 경우.
스킬 링크
https://github.com/abhigyanpatwari/GitNexus/blob/main/.claude/skills/gitnexus-debugging/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“장바구니가 비어 있을 때 결제 함수가 오류를 반환하는 이유를 찾아 주실 수 있나요?”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 저장소를 확인하고 코드 색인을 새로 고친 뒤, 실패한 코드에서 호출 관계를 따라갑니다. 그다음 저장소와 색인의 최신 상태와 함께 가능성이 높은 근본 원인을 보고합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Debugging with GitNexus
When to Use
- "Why is this function failing?"
- "Trace where this error comes from"
- "Who calls this method?"
- "This endpoint returns 500"
- Investigating bugs, errors, or unexpected behavior
Bind the repository first
A root cause traced in the wrong repository is a wrong root cause.
Bind once using a confirmed registry name/path or configured MCP default. Call
list_repos {} if the target is not yet known; reuse that binding across calls. With one indexed repository,
use the examples below as written. With more than one, pass repo on every
call: an omitted repo normally errors, but under an MCP policy with a
configured default it resolves to that default silently. If you cannot tell
which repository is meant, stop and ask. This matters most for cypher, whose
statement carries no in-band hint of which database it ran against.
list_repos is paginated, so page with offset: pagination.nextOffset until
hasMore is false before concluding a repository is absent.
A stale index describes the code from before your bug, so refresh before trusting a trace, and state the repository and index freshness with the diagnosis.
Workflow
0. Bind the repo once (list_repos only if not already known)
1. If the suspect is unknown, query for the error/symptom with small result limits
2. context({name: "<suspect>"}) → See callers/callees/processes
3. Read a process resource only if its trace resolves an open question
4. cypher({statement: "MATCH path..."}) → Custom traces if needed
If "Index is stale" → run
node .gitnexus/run.cjs analyzein terminal. Hot-toolstalenessnames which index answered (branch/lastCommit) and how fresh it is (status). Re-analyze only forbehindordiverged—currentis identity,unknownis unmeasurable.
Checklist
- [ ] Once per session: bind repo; explicit repo when >1 indexed, ask if ambiguous
- [ ] Understand the symptom (error message, unexpected behavior)
- [ ] query for error text or related code
- [ ] Identify the suspect function from returned processes
- [ ] context to see callers and callees
- [ ] Trace execution flow via process resource if applicable
- [ ] cypher for custom call chain traces if needed
- [ ] Read source files to confirm root cause
- [ ] State the repository and index freshness with the diagnosis
Keep investigations focused
Start with a known symbol's context, or a small query (limit: 3,
max_symbols: 3, include_content: false, chain_depth: 0) to discover one.
When the server advertises these single-repository filters, request only the
needed evidence:
context({uid: "<suspect id>", repo: "my-app", include_content: true,
response_sections: ["outgoing"], relationTypes: ["CALLS"]})
trace({from_uid: "<suspect id>", to_uid: "<failure id>", repo: "my-app"})
symbol and completeness/staleness diagnostics remain in a filtered context.
relationTypes filters the returned incoming/outgoing categories only; it does
not expand their existing bounded window or filter an explicitly requested chain.
For callback registration, include USES; for imports or inheritance, request
those relation types or omit the filter. Omitted references are not absent
references. Broaden when the hypothesis needs it, and preserve UNKNOWN/partial
warnings. Confirm source and tests before claiming a root cause. A useful 2–3
call investigation is a goal, not a reason to skip verification or pre-edit impact.
Debugging Patterns
| Symptom | GitNexus Approach |
|---|---|
| Error message | 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 — pass worktree for a linked worktree |
| "How does A reach B?" | trace between the two symbols — shortest call chain in one call |
Tools
query — find code related to error:
query({search_query: "payment validation error", repo: "my-app"})
→ Processes: CheckoutFlow, ErrorHandling
→ Symbols: validatePayment, handlePaymentError, PaymentEx
자주 묻는 질문
왜 먼저 저장소를 확인하나요?
잘못된 저장소에서 추적한 근본 원인은 틀리므로, 대상이 분명하지 않을 때는 스킬이 먼저 묻는다고 설명합니다.
색인을 새로 고치나요?
예. 오래된 색인은 이전 코드를 나타내므로, 추적 결과를 믿기 전에 색인을 새로 고친다고 스킬에 적혀 있습니다.
어떤 메서드를 누가 호출하는지도 찾을 수 있나요?
예. 호출자를 찾는 것은 스킬이 다루는 대표적인 질문 중 하나입니다.
상세 정보
작성자의 원본 설명
Use when the user is debugging a bug, tracing an error, or asking why something fails. Examples: \"Why is X failing?\", \"Where does this error come from?\", \"Trace this bug\"
repo: abhigyanpatwari/GitNexus
인기도
- GitHub 스타
- 48k
- 순위
- #3606
- 라이선스
- —
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
gitnexus-cli
48kGitNexus 명령을 실행해 코드 프로젝트를 색인하고, 상태를 확인하고, 색인을 지우고, 위키를 만들도록 돕습니다.
gitnexus-exploring
48k에이전트가 낯선 코드베이스를 탐색하도록 돕습니다. 주요 부분이 어떻게 연결되는지, 로그인 같은 기능이 어떻게 동작하는지 설명합니다.
gitnexus-guide
48kGitNexus 도구, 리소스, 지식 그래프에 대한 빠른 참고 자료를 제공하고 알맞은 안내서를 알려 줍니다.
gitnexus-impact-analysis
48k함수를 바꾸기 전에 무엇이 깨질지 확인하도록 돕습니다. 어떤 코드가 그 함수에 의존하는지 알 수 있습니다.