Skip to content
Skills Library
Programming · Analysis

release-diff-reporter

/release-diff-reporter

Compare two codebase snapshots and report what changed between builds \u2014 release diff, zip diff, snapshot diff. Use when the user asks 'what changed between these two builds', 'diff these two releases', 'compare the July and August zips', 'what changed since v1.74', or hands you two archives and asks for the deltas. Produces a categorized change report grouped by feature area, not by file path. Covers the extract-and-hash pipeline (Python zipfile > unzip on macOS for non-ASCII filenames), the added/removed/changed/unchanged classification by SHA-256, the drill-into-changed-not-everything d

Licence
MIT
Last repository change
10.11.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
2
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 10.11.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Compare two codebase snapshots and report what changed between builds \u2014 release diff, zip diff, snapshot diff. Use when the user asks 'what changed between these two builds', 'diff these two releases', 'compare the July and August zips', 'what changed since v1.74', or hands you two archives and asks for the deltas. Produces a categorized change report grouped by feature area, not by file path. Covers the extract-and-hash pipeline (Python zipfile > unzip on macOS for non-ASCII filenames), the added/removed/changed/unchanged classification by SHA-256, the drill-into-changed-not-everything d

Triggers from the description

what changed between these two buildsdiff these two releasescompare the July and August zipswhat changed since v1.74
Original author description

Compare two codebase snapshots and report what changed between builds \u2014 release diff, zip diff, snapshot diff. Use when the user asks 'what changed between these two builds', 'diff these two releases', 'compare the July and August zips', 'what changed since v1.74', or hands you two archives and asks for the deltas. Produces a categorized change report grouped by feature area, not by file path. Covers the extract-and-hash pipeline (Python zipfile > unzip on macOS for non-ASCII filenames), the added/removed/changed/unchanged classification by SHA-256, the drill-into-changed-not-everything d

How it works

  1. Overview
  2. When to Use
  3. The Core Pattern (read this before anything else)
  4. The Output Shape (the user judges you on this)
  5. Pitfalls
  6. Quick Reference
  7. Reference Files
Original SKILL.md headings · 162 lines, 1,561 words
SKILL.md preview
---
name: release-diff-reporter
description: "Compare two codebase snapshots and report what changed between builds \u2014 release diff, zip diff, snapshot diff. Use when the user asks 'what changed between these two builds', 'diff these two releases', 'compare the July and August zips', 'what changed since v1.74', or hands you two archives and asks for the deltas. Produces a categorized change report grouped by feature area, not by file path. Covers the extract-and-hash pipeline (Python zipfile > unzip on macOS for non-ASCII filenames), the added/removed/changed/unchanged classification by SHA-256, the drill-into-changed-not-everything discipline, the feature-grouped report shape, and the 'where to start reading' handoff. NOT for commit-time diff review (use dev-workflow-standards), NOT for auditing a single live repo (use code-audit), NOT for git log dashboards (use git-log-dashboards)."
version: 1.0.0
license: MIT
author: "Hermes Agent"
---
# Snapshot Diff — Compare Two Code Snapshots into a Categorized Change Summary

## Overview

A snapshot diff answers **"what's actually different between these two builds of the same codebase?"** when both builds are handed to you as files (zips, tarballs, S3 exports, GitHub archives) rather than as live repos. The deliverable is a **categorized "what shipped" summary** — not a file-by-file diff the user has to read themselves.

This is **not** a git diff and **not** a code audit:
- `dev-workflow-standards` → commit-time review (small, focused, per-PR)
- `code-audit` → read-only review of a single live repo (build/types/security)
- `git-log-dashboards` → render a git log as a page from a live repo
- **THIS skill** → two archived snapshots of the same repo, compare-and-summarize

## When to Use

Trigger when the user asks any of:

- "What's new between these two builds?" / "What's the difference between the July and August zips?"
- "Compare these two releases" / "Diff these codebases"
- "What changed since v1.74?" (when the answer needs to come from archive comparison, not git)
- "Show me the key changes between these two archives"
- "I have two zips/tarballs/S3 exports — what shipped in the new one?"
- "Compare the staging and prod exports"

**Don't use for:**

- Single-repo audit → `code-audit`
- Commit-time review or PR review → `dev-workflow-standards`
- Visualizing a git log as a dashboard → `git-log-dashboards`
- Two unrelated codebases (not snapshots of the same repo) → wrong tool entirely

## The Core Pattern (read this before anything else)

1. **Extract both archives to separate directories.** On macOS/Linux, the system `unzip` fails silently with "Illegal byte sequence" errors on filenames containing non-ASCII characters (em-dashes, smart quotes, CJK chars) — common in test-results dirs, emoji-named files, i18n assets. **Always use Python's `zipfile.ZipFile.extractall()` instead.** See `references/python-zipfile-extract.md` for the 5-line recipe.
2. **Discover each archive's actual root directory.** Both archives may strip the version tag from their root folder and land as the same name (e.g. both extract to `repo-name/`), so don't assume the archive filename corresponds to the inner root.
3. **SHA-256 every file in both roots.** Record `(relpath, sha256, size)` for each. Hashing (not just comparing mtimes or sizes) catches content-identical files that moved between snapshots and rules out mtime-only false positives from the zip writer.
4. **Classify into four buckets:**
   - **added** — only in the new snapshot
   - **removed** — only in the old snapshot
   - **changed** — both contain the path but with different hashes
   - **unchanged** — both contain the path with the same hash (the 80%+ majority)
5. **Report scope numbers first** — `X added / Y removed / Z modified / N unchanged / M total` — before any file-by-file breakdown. The user needs to know the magnitude before the detail.
6. **Drill into the changed/added buckets, not the unchanged bucket.** Never try to read every file in the diff. Pick by **size heuristic** (biggest added files = new products/features), **path heuristic** (new top-level directories = new products), and **keyword heuristic** (route handlers, schema files, config files carry the design intent).
7. **Group the drilled-into findings by feature/area, not by file path.** The user wants "FX Trend Wave shipped" not "src/app/api/fx-trend-wave/webhook/route.ts was modified." The grouped report is the deliverable; the per-file diff is a secondary detail.
8. **Hand off with a "where to start reading" pointer.** If the user wants to dig deeper in a follow-up, name the 3-5 most important files to open in priority order.

## The Output Shape (the user judges you on this)

```markdown
## Scope
N total files in old, M in new. **A added / B removed / C modified / D unchanged.**

## 1. [Feature/Area Name]
[2-5 bullets describing what shipped. Bullet = user-visible change, not file count.]

## 2. [Feature/Area Name]
[2-5 bullets.]

## 3. [Feature/Area Name]
...

## What's Unchanged
[One-line summary of the stable surface — usually the marketing pages, auth core, UI primitives.]

## Where to Start Reading (if you want to dig in)
1. `path/to/most-important-file` — why
2. `path/to/second-most` — why
3. ...
```

Group by **what the user would recognize as a feature**, not by directory layout. Two related changes under `src/app/api/x/` and `src/lib/x/` belong in the same group.

## Pitfalls

### `unzip` fails silently on non-ASCII filenames

**Symptom (real, the client org v2-live Aug 2026):** the archive contained hundreds of test-results directories named like `affiliate-onboarding-Partn-3987e-Step-3-broker-link-→-Step-4-chromium` (em-dash). Running `unzip` produced dozens of `Illegal byte sequence` errors and silently dropped those entries. A subsequent `ls` showed them missing — false sense of having a complete extract.

**Fix:** Always use Python:

```python
import zipfile
with zipfile.ZipFile('archive.zip') as z:
    z.extractall('/tmp/extract-target')
```

The stdlib `zipfile` reads UTF-8 filenames natively; no locale dance required. Run `python3 -c "import zipfile; print(len(zipfile.ZipFile('archive.zip').namelist()))"` to get the true entry count vs. what `unzip` reports.

### Don't trust the archive filename as the inner root name

The zip's filename was `release-2026-08.zip` but the inner root directory in the zip was `release-2026-08/` — the `( Aug )` suffix was stripped. If you `extractall` to a folder called `release ( Aug )/release-2026-08/`, your scan target works either way, but if you write a Python scan that builds the root path from the zip filename you'll point at a folder that doesn't exist.

**Fix:** After extract, inspect the top of the file list:

```python
from pathlib import Path
root = Path('/tmp/extract-target')
top_dirs = [p for p in root.iterdir() if p.is_dir()]
# top_dirs[0] is the actual inner root — scan relative to THAT
```

### Don't scan both directories side-by-side by zip filename

If both archives extract to the same inner root name (common when version-suffix stripping happens at the source), your scan path should be identical for both: `extract-target/<inner_root>/`. Forgetting this means scanning against an empty folder and getting 2000 "removed" entries — wrong answer that wastes an iteration.

### Hashing, not just size comparison

Two zip snapshots written by different CI runs will have different mtimes for every file even when content is identical. Comparing sizes alone gives 2000+ false-positive "changed" entries. Comparing SHA-256 is O(file-size) but correct.

For very large trees (>100K files), `hashlib.sha256()` on disk content is fine. For truly huge trees, sample or hash by path+size first, then re-hash only the ambiguous bucket.

### Don't read every changed file

The naive temptation is "the user asked what changed, let me read every changed file." For a 600-file diff that's hundreds of tool calls and a context window full of irrelevant detail. **Drill by heuristic:**

| Heuristic | What it surfaces |
|---|---|
| Biggest N added files (by size) | New products/features (large TSX pages, big lib modules) |
| New top-level directories | New product surfaces |
| Config file changes (next.config, package.json, vercel.json, tailwind.config) | Stack upgrades, deploy changes, build infrastructure |
| Migration file additions (under `supabase/`, `prisma/`) | Schema changes |
| Cron route additions | New background work |
| i18n locale size deltas | Translation coverage pass |
| Path keywords: `api/`, `lib/`, `migrations/` | Real product work; deprioritize `assets/`, `public/icons/` |

Read 5-15 high-signal files. Group them by feature. Stop.

### Group by feature, not by path

The report shape should map to **how the user thinks about the product**, not the directory tree:

- ❌ "src/app/api/x/webhook/route.ts changed AND src/lib/x/client.ts changed AND src/components/x/page.tsx changed"
- ✅ "FX Trend Wave shipped — server-side hit detection, marked-up chart images, new cron monitor"

The user reads the second form and immediately understands what happened. The first form is just a `git diff --stat` they could have run themselves.

### Don't pad the report with unchanged files

The unchanged bucket is the answer to "what's stable," not the body of the report. List it as a single line. The user knows their marketing pages didn't change.

### Mention what you didn't read

If the diff is 600+ files and you only drilled into 15, say so explicitly. The user may want you to read more in a follow-up. "I read the highest-signal 15 files. The remaining ~600 are documented in the Scope section above — want me to drill into any specific area?"

## Quick Reference

| User says | Use this skill? |
|---|---|
| "Compare these two zips" | ✅ Yes |
| "What changed between v1.74 and v1.75?" (archives) | ✅ Yes |
| "Diff the July and August releases" | ✅ Yes |
| "What's new in the staging vs prod export?" | ✅ Yes |
| "Audit the org OS" (live repo) | ❌ Use `code-audit` |
| "Review this PR" | ❌ Use `dev-workflow-standards` |
| "Show me what shipped this quarter as a dashboard" | ❌ Use `git-log-dashboards` |
| "Compare two unrelated repos" | ❌ Wrong tool — there's no shared baseline to diff against |
| "Read these two folders and tell me what's in them" | ❌ Different task — that wants summarization, not diffing |

## Reference Files

- **`references/python-zipfile-extract.md`** — The 5-line Python recipe for archive extraction that survives non-ASCII filenames, plus the SHA-256 scan template that produces the (added/removed/changed/unchanged) classification.
- **`[removed: internal file]`** — Worked example from the the client org v2-live Aug 2026 snapshot diff (2,003 files old vs 2,619 files new). Shows the actual report shape, the heuristic drill-into-picks, and the failure mode where scanning against the wrong inner root produces 2,000 phantom "removed" entries.
Files in this package (2)
  • SKILL.md 11 KB
  • references/python-zipfile-extract.md 5 KB

Versions

The database has no other skills named release-diff-reporter.

Database snapshot: 13.11.2026 · package version d6a85b45f263 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 2 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100diff-files
    This skill should be used when the user asks to "compare files", "diff these files", "what changed between", "show differences between", "compare versions", or mentions keywords related to file comparison and difference analysis.
  • 90changelog
    Generates or updates CHANGELOG.md from conventional commits since the last tag, grouped into Added, Changed, Fixed, Security, Removed, with story and bug IDs linked. Use when preparing a release or when asked what changed.
  • 100write-a-changelog-entry
    Writes a changelog entry for a release or a change, in plain words for the people who use the software, grouped as Added, Changed, Fixed, Removed and Security. Use when the owner asks for release notes, a changelog line or what changed in a version.
  • 100summarize-diff
    Summarizes a git diff in simple language: what changed and why it matters. Use when the user asks to summarize a diff, explain current changes, or describe what a branch or working tree changed.
  • 100c4-diff
    Generate before/after/diff C4 component diagrams (Mermaid) between two git commits so reviewers can see architectural change at a glance. Use whenever someone wants to visualize how a change, PR, branch, or range of commits altered the structure of the code —…
  • 100ha-automation-diff
    Report which Home Assistant automations were added, removed, edited, enabled, or disabled since the last snapshot — change memory across sessions, including UI edits that bypass this plugin. Read-only. Use when the operator asks "what changed", "what moved since last time", or…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.