What problem does it solve?
This Skill automates code quality, linting, formatting, and security checks directly within your Git workflow, ensuring code standards are met before commits are even made.
Core Features & Use Cases
- Pre-commit Hooks: Integrates with popular hook frameworks like
pre-commit (Python), husky + lint-staged (Node.js), and lefthook (Go).
- Multi-language Support: Provides configurations for Python, JavaScript/TypeScript, Go, and Terraform projects.
- Security Scanning: Includes hooks for detecting secrets and vulnerabilities (e.g.,
detect-secrets, gitleaks, trivy).
- CI Integration: Offers examples for GitHub Actions and
pre-commit.ci for consistent checks in CI environments.
- Use Case: Ensure all Python code adheres to PEP 8, all JavaScript is linted by ESLint, and no secrets are accidentally committed, all before a commit is finalized.
Quick Start
Run pre-commit install in your repository to set up the Git hooks.