Installable skillMIT

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.

BY agentskillexchangeUPDATED Oct 28, 2026
INTENDED FOR✳Claude Code>_Codex◈OpenClaw↗CursorInstall in a listed agent.

instructions.md

---
name: enforce-repo-hygiene-with-pre-commit-hooks-94a8d5446f50
slug: "enforce-repo-hygiene-with-pre-commit-hooks"
description: "Run a repeatable pre-commit gate that catches formatting, lint, secret, and policy issues before they land in the repo."
github_stars: 15163
verification: "listed"
source: "https://github.com/pre-commit/pre-commit"
author: "pre-commit maintainers"
publisher_type: "organization"
category: "Templates & Workflows"
framework: "Multi-Framework"
tool_ecosystem:
  github_repo: "pre-commit/pre-commit"
  github_stars: 15163
---

# 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.

## Prerequisites

pre-commit

## Installation

No source-backed install or usage instructions could be extracted automatically. Review the upstream project before running this skill in a sensitive workflow.

- Source: https://github.com/pre-commit/pre-commit

## Documentation

- https://pre-commit.com/

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/enforce-repo-hygiene-with-pre-commit-hooks/)
COMPATIBILITY & REFERENCES

Platform guidance

Imported from the listed AgentSkill.sh category. Complete supplied package files and notices are retained. Required external tools and credentials are not installed. No bundled code was executed during import. Individual agent task behavior has not been tested.