Prevents repository bloat by blocking oversized files and unauthorized binaries from being committed to Git.
This skill automates the enforcement of file size limits during the pre-commit stage to keep repositories lean and performant. It scans staged files, compares their sizes against configurable thresholds for various file types—such as binaries, PDFs, and source code—and blocks commits that exceed these limits unless they are specifically allowlisted. By providing clear, actionable error messages and local prevention, it helps developers avoid CI/CD failures and the accidental inclusion of generated assets, dependency fragments, or large logs in the version history.
主な機能
01Built-in allowlist system for authorized large assets and encrypted files
02Configurable byte thresholds for specific file types and directories
031 GitHub stars
04Automated file size validation for Git staged changes
05Native integration with Git hooks to prevent accidental commits
06Actionable error messages with Git commands for remediation
ユースケース
01Preventing the accidental commit of compiled binaries or large log files
02Automating the rejection of oversized assets that would otherwise fail CI pipeline checks
03Enforcing a strict 'no node_modules' policy at the local commit level