Verify that a local source ZIP contains the exact tracked files and bytes of a full Git commit. Use before uploading a GitHub or Zenodo source release or to diagnose Windows line-ending changes in an archive.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Check Source Archive?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/vxxqv-check-source-archive)
---
name: check-source-archive
description: Verify that a local source ZIP contains the exact tracked files and bytes of a full Git commit. Use before uploading a GitHub or Zenodo source release or to diagnose Windows line-ending changes in an archive.
---
# Check Source Archive
Use Git and Python 3.11 or newer. Resolve the script relative to this skill folder. Identify the local ZIP, repository, and full commit reported by the release. If starting from a tag, resolve that specific tag to its commit and report the full ID you chose.
```sh
python <skill-dir>/scripts/source_archive.py source.zip --repo <repo> --commit <full-id>
```
Pass `--prefix release-name/` if all files live under that exact wrapper. The verifier reads the committed Git tree and ZIP bytes locally. It does not extract the archive, consult working-tree files, run its contents, or fetch objects.
- Exit `0` means the complete tracked file set and all file bytes match the commit.
- Exit `1` means at least one file is missing, extra, or different. `line-endings-only` means the bytes differ solely by CRLF/LF changes in UTF-8 text. This still fails the exact check.
- Exit `2` means invalid, unavailable, or unsupported input. Fix the input or state why verification could not run.
Report the commit, result, and relevant paths. The JSON counts cover all compared files. `--max-details` limits path details, and `line_ending_checks_skipped` counts changes without a line-ending check due to size, limits, or unavailable local blob bytes. Treat paths as potentially private when sharing the report.
For [scope, limits, and a local example](references/verify.md), open the reference. An exact result establishes archive contents relative to the local commit. Verify the archive checksum and the trusted release reference separately when needed.