pre-commit-standards

Standard pre-commit configuration for repository compliance.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "pre-commit-standards" with this command: npx skills add laurigates/claude-plugins/laurigates-claude-plugins-pre-commit-standards

Pre-commit Standards

Version: 2025.1

Standard pre-commit configuration for repository compliance.

Standard Versions (2025.1)

Hook Version Purpose

pre-commit-hooks v5.0.0 Core hooks (trailing-whitespace, check-yaml, etc.)

conventional-pre-commit v4.3.0 Conventional commit message validation

biome v0.4.0 Code formatting and linting (JS, TS, JSON)

gruntwork pre-commit v0.1.29 helmlint, tflint (infrastructure only)

actionlint v1.7.7 GitHub Actions validation (infrastructure only)

helm-docs v1.14.2 Helm documentation (infrastructure only)

gitleaks v8.22.1 Secret scanning (recommended)

Project Type Configurations

Frontend App (Vue/React)

Required hooks for frontend applications:

default_install_hook_types:

  • pre-commit
  • commit-msg

repos:

Optional: If project has Helm charts

Infrastructure Repository

Required hooks for infrastructure (Terraform, Helm, ArgoCD):

default_install_hook_types:

  • pre-commit
  • commit-msg

repos:

Python Service

Required hooks for Python projects:

default_install_hook_types:

  • pre-commit
  • commit-msg

repos:

Compliance Checking

Required Base Hooks (All Projects)

Every repository MUST have these hooks:

pre-commit-hooks (v5.0.0+)

  • trailing-whitespace

  • end-of-file-fixer

  • check-yaml

  • check-json

  • check-merge-conflict

  • check-added-large-files

conventional-pre-commit (v4.3.0+)

  • conventional-pre-commit in commit-msg stage

Status Levels

Status Meaning

PASS Hook present with compliant version

WARN Hook present but version outdated

FAIL Required hook missing

SKIP Hook not applicable for project type

Version Comparison

When checking versions:

  • Exact match or newer: PASS

  • Older by patch version: WARN (functional but should update)

  • Missing entirely: FAIL (must add)

Exclusion Patterns

Frontend Apps

Exclude Kubernetes/Helm templates from YAML/prettier checks:

exclude: ^(helm/templates/|skaffold/|k8s/).*.ya?ml$

Infrastructure

Exclude ArgoCD and Helm templates:

exclude: argocd/.*templates/|helm/[^/]+/templates/

Python

No special exclusions needed for standard Python projects.

Installation

After configuring .pre-commit-config.yaml :

pre-commit install pre-commit install --hook-type commit-msg

Or simply:

pre-commit install --install-hooks

Updating

To update all hooks to latest versions:

pre-commit autoupdate

Then verify versions match project standards.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

ruff-linting

No summary provided by upstream source.

Repository SourceNeeds Review
General

imagemagick-conversion

No summary provided by upstream source.

Repository SourceNeeds Review
General

jq json processing

No summary provided by upstream source.

Repository SourceNeeds Review