{
  "schemaVersion": "1.0",
  "slug": "pre-commit-hooks",
  "title": "pre-commit-hooks",
  "kind": "hook",
  "summary": "Maintained collection of useful hooks for common repository hygiene checks.",
  "sourceUrl": "https://github.com/pre-commit/pre-commit-hooks",
  "agentAccess": "approved",
  "license": {
    "spdx": "MIT",
    "allowsClosedSourceUse": true,
    "requiresNotice": true,
    "noLicenseFee": true
  },
  "install": {
    "steps": [
      "Inspect the hook command and arguments.",
      "Run it locally on sample changes.",
      "Enable it only after expected false positives are understood."
    ]
  },
  "outputs": [
    "hook result",
    "scan finding",
    "blocked-change reason"
  ],
  "usage": {
    "whyUse": "Use it when a project needs standard whitespace, merge-conflict, and syntax hygiene hooks and the team wants inspectable provenance before adoption.",
    "whenToUse": [
      "You need standard whitespace, merge-conflict, and syntax hygiene hooks.",
      "The upstream README and license fit the target project.",
      "You can test the integration on non-production data first."
    ],
    "whenNotToUse": [
      "The hook would run unreviewed shell commands.",
      "Blocking behavior would stop unrelated developer work."
    ],
    "safetyNotes": [
      "Keep required license notices when redistributing copied source or bundled code.",
      "Use dry-run or warn mode first.",
      "Keep bypass and rollback steps documented."
    ]
  },
  "repository": {
    "owner": "pre-commit",
    "name": "pre-commit-hooks",
    "stars": 6598,
    "defaultBranch": "main"
  },
  "lifecycle": {
    "githubUpdatedAt": "2026-06-26T07:01:55Z",
    "githubPushedAt": "2026-05-19T19:20:03Z",
    "lastVerifiedAt": "2026-06-27T00:00:00.000Z"
  }
}