hook

Agent ready

pre-commit

Review before use

Framework for managing multi-language pre-commit hooks. GitHub metadata was checked on 2026-06-27; the listed license is no-fee and permissive for review, evaluation, and responsible reuse.

Source review

Source

Open the upstream repository and check maintainers, README scope, examples, and recent activity.

License

Confirm MIT terms fit your project and retain notices when required.

Install behavior

Read commands before running them and start with a low-risk local workspace.

Verification

Check outputs, safety notes, and policy fit before exposing the resource to agent workflows.

Why use it

Use it when a project needs repeatable local hooks before commits leave a workspace and the team wants inspectable provenance before adoption.

When to use

  • You need repeatable local hooks before commits leave a workspace.
  • The upstream README and license fit the target project.
  • You can test the integration on non-production data first.

When not to use

  • The hook would run unreviewed shell commands.
  • Blocking behavior would stop unrelated developer work.

Agent manifest preview

Use the manifest as structured review context before applying local policy.

{ "schemaVersion": "1.0", "slug": "pre-commit", "title": "pre-commit", "kind": "hook", "summary": "Framework for managing multi-language pre-commit hooks.", "sourceUrl": "https://github.com/pre-commit/pre-commit", "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 repeatable local hooks before commits leave a workspace and the team wants inspectable provenance before adoption.", "whenToUse": [ "You need repeatable local hooks before commits leave a workspace.", "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", "stars": 15374, "defaultBranch": "main" }, "lifecycle": { "githubUpdatedAt": "2026-06-27T02:02:27Z", "githubPushedAt": "2026-06-17T01:21:32Z", "lastVerifiedAt": "2026-06-27T00:00:00.000Z" } }