git-diff-summariser

git-diff-summariser is a skill for Claude Code, Codex from jezweb/vite-flare-starter. It costs 55 tokens per session (633 once invoked), scanned A, original, MIT.

A skill that turns a git diff—the record of changes between code versions—into a summary, risk assessment, and suggested commit message.

In plain words
What is it for?
Reviewing pull-request changes, grouping edits by purpose, counting file changes, assessing risks, and drafting commit messages.
Why use it?
It gives you the meaning and likely risks of a change without requiring you to inspect every edited line yourself.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/jezweb/vite-flare-starter/git-diff-summariser
Any agent
npx skills add jezweb/vite-flare-starter --skill git-diff-summariser
Clone the repo
git clone --depth 1 https://github.com/jezweb/vite-flare-starter

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-diff-summariser

README.md
[![agentmods](https://agentmods.dev/badge/skills/jezweb/vite-flare-starter/git-diff-summariser.svg)](https://agentmods.dev/skills/jezweb/vite-flare-starter/git-diff-summariser)
Your own site
<a href="https://agentmods.dev/skills/jezweb/vite-flare-starter/git-diff-summariser"><img src="https://agentmods.dev/badge/skills/jezweb/vite-flare-starter/git-diff-summariser.svg" alt="Measured on agentmods" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 633 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00055 $0.00633
Opus 5 $0.00028 $0.00316
Sonnet 5 $0.00011 $0.00127
Haiku 4.5 $0.00006 $0.00063

Measured 3d ago against content hash 8c83ee5e8fc2, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

git-diff-summariser 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.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/count.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/git-diff-summariser/SKILL.md · 62 lines

How it starts

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

Git diff summariser

When to use

The user pastes or points at a git diff and wants a summary rather than reading it line-by-line.

Examples:

  • "Summarise this diff"
  • "Draft a commit message for these changes"
  • "What changed in this PR?"

Steps

  1. Get the diff content. Either the user pasted it, or they point at a file — use fs_read on a .diff / .patch file. If you have sandbox access and a git repo cloned in /workspace, the shell script below can regenerate the diff.

  2. Run the bundled counter (optional quick-stats pass). This gives accurate line/file counts without the model having to count manually:

    run_skill_script({
      name: "git-diff-summariser",
      path: "scripts/count.sh",
      stdin: <the diff content>
    })
    

    Returns stdout like:

    files_changed: 7
    insertions: 142
    deletions: 38
    binary_files: 1
    
  3. Read the diff yourself. The stats tell you the shape; now actually read the diff to understand what changed. Group changes by file or by logical theme (not by commit).

  4. Produce four sections.

    • Summary — one paragraph: what was the goal of these changes?
    • Changes — bullet list grouped by theme, each with the file(s) affected
    • Risk — anything that could break? (migrations, auth, public API, env vars, cron schedules)
    • Commit message — a single-line subject + optional body, conventional-commits style (feat(module): …, fix(module): …, refactor(module): …)
  5. Offer next steps. offer_choices:

    • "Write this as a PR description"
    • "Generate a test plan for these changes"
    • "Flag any missing tests"

Style

  • For the commit subject line, imperative mood, ≤72 chars.
  • Risk section should be honest — if there's no risk, say "Low — isolated changes to X".
  • Don't restate what the stats already show; the reader has them.
  • Reference files by relative path — src/foo.ts not a/src/foo.ts.

What not to do

  • Don't invent file names. If you're unsure, re-read the diff headers.
  • Don't mark changes as "probably safe" without having read them.
  • Don't produce a 20-bullet change list for a 50-line diff. Be proportional.

Read the full file on GitHub · 62 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 First seen · 62 lines · 55 tokens per session scan A 8c83ee5e8fc2

Subscribe to this mod's changes

git-diff-summariser is a skill published in the GitHub repository jezweb/vite-flare-starter (48 stars, last pushed 8d ago), licensed MIT. It adds 55 tokens to every session and 633 once invoked, about $0.0003 per session on Opus 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-30.

Related

Other skills, from other repositories