git-review-context

git-review-context is a skill for Claude Code, Codex from scroogy-dev/scroogy-agent-skills. It costs 71 tokens per session (2,703 once invoked), scanned A, original, Apache-2.0.

A preparation step for code reviews that analyzes the current Git changes and records the important context in a temporary Markdown file. Git is a system for tracking code changes, and a code review checks those changes before they are accepted.

In plain words
What is it for?
Use it before running a Git review to summarize changed files, group changes by function, inspect relevant project documentation, and identify affected contracts, domain rules, and code paths.
Why use it?
Reviewers often need to reconstruct what changed, why it changed, and which parts of the codebase are involved. This gathers that information before the review begins.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it before running a Git review to summarize changed files, group changes by function, inspect relevant project documentation, and identify affected contracts, domain rules, and code paths.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/scroogy-dev/scroogy-agent-skills/git-review-context
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add scroogy-dev/scroogy-agent-skills --skill git-review-context
Clone the repo
git clone --depth 1 https://github.com/scroogy-dev/scroogy-agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for git-review-context

README.md
[![agentmods](https://agentmods.dev/badge/skills/scroogy-dev/scroogy-agent-skills/git-review-context/github.svg)](https://agentmods.dev/skills/scroogy-dev/scroogy-agent-skills/git-review-context)
Your own site
<a href="https://agentmods.dev/skills/scroogy-dev/scroogy-agent-skills/git-review-context"><img src="https://agentmods.dev/badge/skills/scroogy-dev/scroogy-agent-skills/git-review-context/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for git-review-context

Your own site · 80×15
<a href="https://agentmods.dev/skills/scroogy-dev/scroogy-agent-skills/git-review-context"><img src="https://agentmods.dev/badge/skills/scroogy-dev/scroogy-agent-skills/git-review-context.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 71 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,703 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00071 $0.02703
Opus 5.5 $0.00028 $0.01081
Sonnet 5.5 $0.00014 $0.00541
Haiku 4.5 $0.00007 $0.00270

Measured 3d ago against content hash 1347ca236ab9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

git-review-context scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

git-review-context/SKILL.md · 177 lines

How it starts

The opening of the file, as written. The whole thing — 177 lines — stays where its author put it; the contents beside it link to each section on GitHub.

개요

사람(PR 리뷰어 또는 작성자 본인)이 리뷰할 때 병목을 줄이고 생산성을 높이기 위해, AI가 변경 사항을 사전 분석하여 리뷰에 필요한 핵심 정보를 .ai/99_workspace/temp_review_context.md에 정리합니다.

관련 skill

  • git-review (권장): 컨텍스트 빌드 후 이어서 리뷰를 진행할 수 있습니다.
  • ai-workspace (권장): .ai/99_workspace/ 경로에 결과를 기록합니다. 구조가 없으면 필요한 디렉토리를 직접 생성합니다.

참조 문서

  • 공통 규칙: .ai/10_rules/context-loading.md — 있으면 따르며, 이미 적재되어 있으면 재로딩하지 않습니다.
  • 스킬 고유 추가 참조:
    • .ai/60_codebase/index.md — 호출 흐름 파악
    • .ai/30_contract/index.md, .ai/40_domain/index.md — 리뷰 포인트 도출 (계약·정책 영향 확인)
    • .ai/10_rules/writing-principles.md·.ai/10_rules/writing-principles-local.md — 있으면 산출물 작성 원칙으로 참조 (충돌 시 local 우선; 없으면 본문의 "산출물 접기 기준"이 기본값)

실행 조건

사용자가 명시적으로 요청한 경우에만 실행합니다. 다른 skill(git-review 등)이 자동으로 호출하지 않습니다.


분석 절차

1단계: 변경 사항 수집

git diff 또는 PR 정보를 통해 변경된 파일 목록과 diff를 수집합니다.

  • 변경된 파일 수, 추가/삭제 라인 수를 파악합니다.
  • 파일을 기능 단위(도메인, 레이어, 모듈 등)로 그룹화합니다.

2단계: 변경 요약 작성

각 파일 그룹을 기준으로 변경 내용을 한눈에 파악할 수 있도록 요약합니다.

  • 무엇이 추가·수정·삭제되었는지 서술합니다.
  • 변경 의도(왜 변경했는가)를 코드와 커밋 메시지를 통해 추정합니다.

3단계: 코드베이스 색인 참조

.ai/60_codebase/index.md에 내용이 있으면 참고하여 변경 사항과 관련된 기능의 엔트리포인트와 호출 흐름을 빠르게 파악한다. 단, 색인을 신뢰하지 않고 SSoT를 직접 확인한다. SSoT는 AI-CONTEXT.md 본문 2번째 줄(H1 제목과 그 뒤 빈 줄 제외)의 > SSoT: <값>. 선언을 따른다. 값은 소스 코드 또는 원본 문서이며 그 외 값은 선언으로 보지 않는다. 선언을 찾지 못하면 소스 코드를 SSoT로 본다. AI-CONTEXT.md는 있는데 선언을 찾지 못해 소스 코드로 진행하면 그 사실을 사용자에게 한 줄로 알리고, ai-workspace update로 선언을 보강할 수 있다고 안내한다. AI-CONTEXT.md가 없으면 알리지 않는다. 분석 과정에서 색인과 실제 코드가 다른 부분을 발견하면, 결과 기록에 "코드베이스 색인 갱신이 필요해 보입니다 (/code-map)" 의견을 남긴다.

4단계: 기능별 엔트리 포인트 식별

변경 사항에서 외부에서 진입 가능한 엔트리 포인트를 기능 단위로 정리합니다.

엔트리 포인트 유형 예시:

  • API 엔드포인트 (REST, GraphQL 등)
  • 이벤트 핸들러 / 메시지 컨슈머
  • CLI 커맨드
  • UI 컴포넌트 / 페이지
  • 공개 함수·클래스·모듈

5단계: 호출 흐름 분석

3단계에서 식별한 각 엔트리 포인트를 기준으로 코드 흐름을 추적합니다.

  • 엔트리 포인트 → 핵심 로직 → 외부 의존성(DB, 외부 API 등) 순서로 흐름을 정리합니다.
  • 변경된 파일이 흐름의 어느 지점에 위치하는지 명시합니다.
  • 호출 흐름은 디렉토리 트리 형태의 ASCII 다이어그램으로 시각화하여 가시성을 높입니다.
    • 각 노드에 클래스명과 메서드명을 명시합니다(예: ClassName#methodName).
    • 들여쓰기와 트리 기호(├──, └──)로 호출 계층을 표현합니다.
    • 핵심 로직은 노드 옆에 # 설명 주석 형태로 간략히 기재합니다.
  • 아래 기준에 해당하는 엔트리 포인트는 트리 코드 블록 바로 다음에 같은 흐름을 Mermaid 시퀀스 다이어그램으로 그리고, 해당하지 않는 엔트리 포인트는 트리만 둡니다. 작성법은 시퀀스 다이어그램 작성 규칙을 따릅니다.
    • 엔트리포인트 → 핵심 로직 → 외부 의존성(DB, 외부 API 등) 사이에 2단계 이상의 호출 계층이 존재하는 경우
    • 외부 서비스 호출(HTTP 클라이언트, 메시지 발행 등)이 포함된 경우
    • 트랜잭션 경계, 이벤트 발행, 비동기 처리 등 흐름 분기가 있는 경우

Read the full file on GitHub · 177 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago Changed · +53 lines 1347ca236ab9
  2. 7d ago Changed 4ec702f324be
  3. 11d ago Changed 342ce3faa7b5
  4. 2mo ago First seen · 124 lines · 71 tokens per session scan A ce4a7a3386a4

Subscribe to this mod's changes

git-review-context is a skill published in the GitHub repository scroogy-dev/scroogy-agent-skills (2 stars, last pushed 2d ago), licensed Apache-2.0. It adds 71 tokens to every session and 2,703 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

pr

Draft a PR body from OMC's paper trail — the smallest visual that proves the change, evidence consumed from the verify protocol (never re-collected), reversibility from the ADR test on the diff, glossary language throughout.

Yeachan-Heo/oh-my-claudecode · 47 tokens

merge-batch

Prepare and merge an owner-selected PR batch with contributor credit and exact-candidate admission. Use for a pasted PR list; combined focused validation is diagnostic, and every actual landing still requires its applicable checks and authorization.

diegosouzapw/OmniRoute · 46 tokens

otto-pr-review-loop

Run Polly and OCR on a PR until all findings settle.

omnigent-ai/omnigent · 17 tokens

engram-branch-pr

PR creation workflow for Engram following the issue-first enforcement system. Trigger: When creating a pull request, opening a PR, or preparing changes for review.

Gentleman-Programming/engram · 37 tokens

github-contributor

A step-by-step guide for contributing code, tests, documentation, or build changes to open-source projects you do not maintain. It explains how to prepare a pull request that follows the project’s rules and is easier for maintainers to review.

daymade/claude-code-skills · 105 tokens

revdiff

Review diffs, files, and documents with inline annotations in a TUI overlay, or answer questions about revdiff usage, configuration, themes, and keybindings. Opens revdiff in agterm/tmux/zellij/herdr/kitty/wezterm/cmux/ghostty/iterm2/emacs-vterm, captures annotations, and addresses them. Works in git, hg, and jj repos…

umputun/revdiff · 248 tokens