Diff summary

From the-agency-ai/the-agency · View interactive version

Diff summary is an AI agent skill from the GitHub repository the-agency-ai/the-agency. Classify git diffs as formatting-only vs substantive changes.

How to use this skill

Skill file

<!--

Flag #62/#63: allowed-tools removed. Inherits Bash(*) from

.claude/settings.json. Restricting to specific subcommand patterns at the

skill level silently blocks agents on permission prompts the agent cannot

see — see dispatch #171 for the devex incident that surfaced this trap.

-->

Diff Summary

Classify git diffs as formatting-only vs substantive changes. Useful for understanding what actually changed vs what was just reformatted.

Arguments

Steps

Step 1: Get diffs

Run two diffs:

  1. git diff --stat {range} — with whitespace
  2. git diff -w --stat {range} — ignoring whitespace

If --staged: use git diff --cached instead.

Step 2: Compare

For each file:

Step 3: Report

Diff Classification:

SUBSTANTIVE:
  src/parser.ts      | 42 ++++---
  src/types.ts       | 15 +++

FORMATTING ONLY:
  src/utils.ts       | 8 +++---
  src/config.ts      | 3 +--

MIXED:
  src/router.ts      | 25 +++--- (12 substantive, 13 formatting)

Summary: 2 substantive, 2 formatting-only, 1 mixed
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.