| created | "2025-12-16T00:00:00.000Z" |
| modified | "2026-07-05T00:00:00.000Z" |
| reviewed | "2026-07-05T00:00:00.000Z" |
| description | pre-commit hooks setup and validation. Use when installing hooks, configuring frontend/infrastructure/python project types, or migrating to pre-commit. |
| allowed-tools | Glob, Grep, Read, Write, Edit, Bash, AskUserQuestion, TodoWrite, WebSearch, WebFetch |
| args | [--check-only] [--fix] [--type <frontend|infrastructure|python>] |
| argument-hint | [--check-only] [--fix] [--type <frontend|infrastructure|python>] |
| name | configure-pre-commit |
/configure:pre-commit
Check and configure pre-commit hooks against project standards.
When to Use This Skill
| 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 |
Context
- Pre-commit config: !
find . -maxdepth 1 -name \'.pre-commit-config.yaml\'
- Project standards: !
find . -maxdepth 1 -name \'.project-standards.yaml\'
- Project type in standards: !
find . -maxdepth 1 -name '.project-standards.yaml' -exec grep -m1 "^project_type:" {} +
- Has terraform: !
find . -maxdepth 2 \( -name '*.tf' -o -type d -name 'terraform' \) -print -quit
- Has helm: !
find . -maxdepth 2 -type d -name 'helm' -print -quit
- Has package.json: !
find . -maxdepth 1 -name \'package.json\'
- Has pyproject.toml: !
find . -maxdepth 1 -name \'pyproject.toml\'
Parameters
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)
Execution
Execute this pre-commit compliance check:
Step 1: Detect project type
- Read
.project-standards.yaml for project_type field if it exists
- If not found, auto-detect:
- infrastructure: Has
terraform/, helm/, , or files