When to Use This Skill
- A developer accidentally staged a compiled binary, database file, or generated PDF in a commit
- The repo is growing at an abnormal rate due to committed log files,
.enc artifacts, or node_modules fragments
- A pre-commit hook is needed to block files above a configurable byte threshold with an actionable error message
- Encrypted asset files (
.enc) are being committed without going through the license server's key-generation flow
- A CI pipeline is rejecting pushes due to large files and the root cause needs a preventive local gate
Not for: secret scanning or credential detection — use precommit-quality-enforcement-framework for that.
Threshold and Allowlist Reference
| File Type | Default Block Threshold | Allowlisted Extensions | Action |
|---|
| General binary | 1 MB | (with owner approval) |