configure-plugin/skills/configure-pre-commit/SKILL.md
pre-commit hooks setup and validation. Use when installing hooks, configuring frontend/infrastructure/python project types, or migrating to pre-commit.
npx skillsauth add laurigates/claude-plugins configure-pre-commitInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Check and configure pre-commit hooks against project standards.
| Use this skill when... | Use another approach when... |
|------------------------|------------------------------|
| Setting up or validating pre-commit hooks | Project doesn't use pre-commit framework (use git hooks directly) |
| Checking compliance with project standards | Just running hooks manually (use pre-commit run command) |
| Installing project-type-specific hooks | Hooks are already properly configured |
| Migrating to pre-commit framework | Simple project with no quality checks needed |
| Updating hook configurations for detected tools | Need to disable pre-commit entirely |
find . -maxdepth 1 -name \'.pre-commit-config.yaml\'find . -maxdepth 1 -name \'.project-standards.yaml\'grep -m1 "^project_type:" .project-standards.yamlfind . -maxdepth 2 \( -name '*.tf' -o -type d -name 'terraform' \) -print -quitfind . -maxdepth 2 -type d -name 'helm' -print -quitfind . -maxdepth 1 -name \'package.json\'find . -maxdepth 1 -name \'pyproject.toml\'Parse from $ARGUMENTS:
--check-only: Report status without offering fixes--fix: Apply all fixes automatically without prompting--type <type>: Override project type detection (frontend, infrastructure, python)Execute this pre-commit compliance check:
.project-standards.yaml for project_type field if it existsterraform/, helm/, argocd/, or *.tf filespackage.json with vue/react dependenciespyproject.toml or requirements.txt--type flag override if provided.pre-commit-config.yaml is missing: report FAIL, offer to create from templateCRITICAL: Before flagging outdated hooks, verify latest releases using WebSearch or WebFetch:
Compare existing configuration against project standards (from pre-commit-standards skill):
Required Base Hooks (All Projects):
pre-commit-hooks v5.0.0+ with: trailing-whitespace, end-of-file-fixer, check-yaml, check-json, check-merge-conflict, check-added-large-filesconventional-pre-commit v4.3.0+ with commit-msg stageFrontend-specific:
biome (pre-commit) v0.4.0+helmlint (if helm/ directory exists)Infrastructure-specific:
tflint, helmlint (gruntwork v0.1.29+)actionlint v1.7.7+helm-docs v1.14.2+gitleaks v8.22.1+Python-specific:
ruff-pre-commit v0.8.4+ (ruff, ruff-format)gitleaks v8.22.1+Print a report in this format:
Pre-commit Compliance Report
================================
Project Type: [type] ([detected|override])
Config File: .pre-commit-config.yaml ([found|missing])
Hook Status:
[hook-name] [version] [PASS|WARN|FAIL] ([details])
Outdated Hooks:
- [hook]: [current] -> [standard]
Overall: [N] issues found
If --fix flag is set or user confirms:
rev: values to standard versionsdefault_install_hook_types with pre-commit and commit-msgAfter modification, run pre-commit install --install-hooks to install hooks.
Update or create .project-standards.yaml:
standards_version: "2025.1"
project_type: "[detected]"
last_configured: "[timestamp]"
components:
pre-commit: "2025.1"
| Context | Command |
|---------|---------|
| Check if pre-commit installed | command -v pre-commit >/dev/null 2>&1 && echo "installed" \|\| echo "missing" |
| Validate config syntax | pre-commit validate-config .pre-commit-config.yaml 2>&1 |
| List configured hooks | grep -E '^\s+- id:' .pre-commit-config.yaml 2>/dev/null \| sed 's/.*id:[[:space:]]*//' |
| Check hook versions | pre-commit autoupdate --freeze 2>&1 |
| Quick compliance check | /configure:pre-commit --check-only |
| Auto-fix configuration | /configure:pre-commit --fix |
| Flag | Description |
|------|-------------|
| --check-only | Report status without offering fixes |
| --fix | Apply all fixes automatically without prompting |
| --type <type> | Override project type detection (frontend, infrastructure, python) |
/configure:all - Run all compliance checks/configure:status - Quick compliance overviewpre-commit-standards skill - Standard definitionstools
Scaffold a new ComfyUI custom-node repo (pyproject, CI, release-please, vitest+pytest, JS extension skeleton) in the picker/gesture vein. Use when bootstrapping or init-ing a comfyui node pack.
tools
Orchestrate a ComfyUI node pack from idea to registry: scaffold, create + seed the repo, open the gitops adoption PR. Use when releasing or spinning up a new comfyui node pack.
testing
macOS EndpointSecurity/EDR high CPU & battery drain. Use when Kandji ESF / XProtect pegs a core; trace the exec storm via powermetrics + eslogger.
development
odiff pixel-by-pixel image diffing. Use when comparing screenshots, detecting visual regressions, diffing before/after PNGs, asserting golden images.