gitnexus-review
하는 일
에이전트가 코드 변경을 검토하고 병합해도 안전해 보이는지 판단하도록 안내합니다. 병합 전에 풀 리퀘스트나 로컬 변경을 한 번 더 확인하고 싶은 개발자를 위한 스킬입니다.
사용하는 경우
- ✓풀 리퀘스트를 검토해 버그와 병합 위험을 확인하고 싶을 때.
- ✓커밋하기 전에 로컬, 스테이징, 커밋되지 않은 변경을 확인하고 싶을 때.
- ✓변경에 빠진 테스트가 있는지 알고 싶은 경우.
스킬 링크
https://github.com/abhigyanpatwari/GitNexus/blob/main/.claude/skills/gitnexus-review/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“42번 풀 리퀘스트를 버그 관점에서 검토하고, 병합해도 안전한지 알려 주실 수 있나요?”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 변경 내용을 읽고, 색인으로 영향을 받는 부분을 살핀 뒤, 소스로 각 발견 사항을 확인합니다. 근거와 함께 판정을 제시합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
GitNexus review
Review the requested change surface without editing source, committing, pushing, posting, or resolving threads. A later explicit request may authorize those actions. Use GitNexus for structural evidence and source inspection for proof; neither substitutes for the other.
Resolve the target
Accept these forms:
| Input | Review surface |
|---|---|
PR URL, owner/repo#42, #42, or bare number |
GitHub PR |
base...head |
Merge-base range |
base..head |
Exact two-dot range |
| Branch, tag, or commit | Ref against the repository default branch |
local, staged, unstaged, or working-tree wording |
Local changes |
| No target | Current branch's open PR; otherwise local changes; otherwise current branch |
An explicit target always wins. Interpret a bare number as a PR only in a
GitHub repository with working gh authentication; otherwise ask for a ref or
URL. If implicit mode finds both branch commits and local changes, review them
as two labeled surfaces rather than silently dropping or blending either one.
Record the resolved target kind, repository root, default branch, base SHA,
head SHA, merge-base when applicable, and included local states. Resolve the
default branch from remote metadata (refs/remotes/<remote>/HEAD or GitHub
repository metadata); use main or master only as an explicit fallback and
say when doing so.
PR
Use gh pr view/gh api to pin the PR number, repository, title, URL, base
ref, base SHA, head ref, and head SHA. Fetch those exact commits without
switching the user's branch. Compute git merge-base <base> <head> and use
that SHA as the review base: GitHub PR diffs are merge-base diffs, while
detect_changes(scope: "compare") is a two-dot comparison.
Use the local git diff <merge-base> <head> as the complete diff source of
truth; use GitHub metadata for PR facts and review state. For fork PRs, fetch
the pull ref or the contributor remote instead of assuming the head branch
exists on origin.
Branch, ref, or range
Resolve every ref to a commit before reviewing. For a branch or A...B, use
the merge-base as the comparison base. For an explicit A..B, honor A as
the exact base. Do not compare a feature branch directly with a moving default
branch tip when merge-base semantics were intended.
Local changes
Inspect git status --short, the staged diff, the unstaged diff, and every
untracked file. Use detect_changes with staged, unstaged, or all as
requested. Untracked files are not guaranteed to appear in Git diff or graph
mapping, so read them directly and list them in the review provenance.
Align the checkout and index
The graph and diff must describe the same head. Reuse an existing worktree only when it is at the exact target SHA. Otherwise create a temporary detached worktree for the PR/ref head, review there, and remove only that temporary worktree afterward. Never switch or reset the user's current worktree.
Check GitNexus status in the target worktree. If stale, run
node .gitnexus/run.cjs analyze --index-only before trusting graph results
(temporary worktrees never carry the gitignored run.cjs — fall back to the
installed gitnexus CLI, then npx gitnexus), and include --pdg in that
same refresh when the diff plausibly touches trust or data-flow boundaries,
so the taint pass below doesn't pay a second full analyze. Taint and
dependence evidence needs that PDG layer: when the workflow's taint pass
finds it missing, rebuild with analyze --pdg --index-only and record the
rebuild in provenance. For local changes, refresh the index so new or
modified source is represented.
If an exact target checkout/index cannot be established, state the limitation
and do not claim a complete graph-backed review.
Review workflow
- Read the fu
자주 묻는 질문
풀 리퀘스트에 댓글을 달나요?
아니요. 기본적으로 스킬은 게시, 커밋, 스레드 해결 없이 검토만 합니다.
어떤 변경을 검토할 수 있나요?
GitHub 풀 리퀘스트, 브랜치나 커밋 범위, 로컬 스테이징 또는 비스테이징 변경을 받을 수 있습니다.
색인에만 의존하나요?
아니요. 구조는 색인으로 보고, 사실 여부는 소스 파일로 확인합니다.
상세 정보
작성자의 원본 설명
Review code changes with GitNexus from a GitHub PR URL or number, a branch/ref or commit range, or local staged, unstaged, and untracked changes. Use when the user asks for a code review, merge-risk assessment, regression hunt, missing-test analysis, or a verdict on whether a PR, branch, commit range, or local diff is safe.
repo: abhigyanpatwari/GitNexus
인기도
- GitHub 스타
- 48k
- 순위
- #3613
- 라이선스
- —
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
gitnexus-cli
48kGitNexus 명령을 실행해 코드 프로젝트를 색인하고, 상태를 확인하고, 색인을 지우고, 위키를 만들도록 돕습니다.
gitnexus-debugging
48k코드베이스에서 버그를 추적해 오류가 시작된 곳과 실패한 부분을 호출하는 코드를 찾도록 돕습니다.
gitnexus-exploring
48k에이전트가 낯선 코드베이스를 탐색하도록 돕습니다. 주요 부분이 어떻게 연결되는지, 로그인 같은 기능이 어떻게 동작하는지 설명합니다.
gitnexus-guide
48kGitNexus 도구, 리소스, 지식 그래프에 대한 빠른 참고 자료를 제공하고 알맞은 안내서를 알려 줍니다.