/configure-plugin:configure-pre-commit [--check-only] [--fix] [--type <frontend|infrastructure|python>]from configure-plugin
Sets up and validates .pre-commit-config.yaml with project-type-specific hooks. Detects project type, checks hook versions, and can auto-update stale revs.
Ships in configure-plugin. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
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'find . -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 dependenciespackage.jsonpyproject.toml or requirements.txt--type flag override if provided.pre-commit-config.yaml is missing: report FAIL, offer to create from templateCRITICAL: Take the latest revs from the tool, not from a pinned list or memory. After writing or auditing the config, run pre-commit autoupdate (it resolves each hook repo's newest tag), then pre-commit validate-config .pre-commit-config.yaml. A new config written from a template with older revs moved pre-commit-hooks v5.0.0 to v6.0.0, conventional-pre-commit v4.3.0 to v4.5.0, gitleaks v8.22.1 to v8.30.0 and actionlint v1.7.7 to v1.7.12 in one run.
autoupdate cannot resolve a repo: local hook; read a local hook's version from where it is pinned (for a Biome hook, package.json). Use WebSearch or WebFetch on a hook repo's releases page only when autoupdate fails for it. For --check-only, run it on a copy (cp .pre-commit-config.yaml tmp/pc.yaml && pre-commit autoupdate --config tmp/pc.yaml) and diff, so the audit writes nothing.
Compare existing configuration against the project standards in REFERENCE.md:
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 stagedefault_install_hook_types listing pre-commit and commit-msg, plus default_stages: [pre-commit] whenever commit-msg is installed. Flag a missing default_stages as WARN: without it every unstaged file hook runs at both installed stages, so each commit runs the hook list twiceFrontend-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])
Hook Types:
default_install_hook_types [pre-commit, commit-msg] [PASS|FAIL]
default_stages [pre-commit] [PASS|WARN] (missing: file hooks run twice per commit)
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-msg, and default_stages: [pre-commit] beside it. Keep the explicit stages: [commit-msg] on conventional-pre-commit or commitizen hooksAfter modification, run pre-commit install --install-hooks. default_install_hook_types makes that one command install both hook types; see REFERENCE.md for why default_stages is needed.
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 overviewWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub laurigates/claude-plugins --plugin configure-plugin49 skills in this plugin
/ci-workflowsReference YAML for the canonical container-build, test, release-please and auto-fix workflow files. Use when another skill or a review needs the standard shape to cite or diff against./claude-security-settingsClaude Code security settings: permission wildcards, shell operator protections, project-level allowlists. Use when auditing or hardening .claude/settings.json permissions./config-syncConfig sync across FVH repos: extract, diff, propagate tooling improvements. Use when syncing workflows or configs across multiple repos./configure-allRun all infrastructure standards checks and fixes. Use when onboarding a new project, doing a full compliance audit, or batch-fixing with --fix./configure-api-testsAPI contract testing: Pact, OpenAPI validation, JSON Schema/Zod. Use when adding consumer/provider contract tests or detecting breaking API changes in CI./configure-argocd-automergeargocd-automerge.yml: auto-create and merge PRs from ArgoCD Image Updater's image-updater-** branches. Use when setting up that workflow or checking its PAT permissions.Other plugins' skills for the same job