Enforce repo hygiene with pre-commit hooks
Run a repeatable pre-commit gate that catches formatting, lint, secret, and policy issues before they land in the repo.
npx skills add agentskillexchange/skills --skill enforce-repo-hygiene-with-pre-commit-hooks
Use this skill when an agent needs to wire up or run a repo-wide pre-commit gate before code review, CI, or handoff. It is a good fit for projects that need one repeatable command to run formatters, linters, secret checks, and other file hygiene rules across many file types.
What this skill actually does
Invoke it instead of using pre-commit as a raw product when the job is operational and bounded: install the hook stack, run it against staged files or the full repo, interpret failures, and help repair the repository until the hook suite passes.
This stays skill-shaped because the scope is not โuse the pre-commit framework in general.โ The job is specifically to enforce repo hygiene through hook execution and remediation loops.