pre_commit
Configures and runs pre-commit hooks for project quality. Validates code style, configurations, and scripts automatically.
Install
mkdir -p .claude/skills/pre-commit && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/9871" && unzip -o skill.zip -d .claude/skills/pre-commit && rm skill.zipInstalls to .claude/skills/pre-commit
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Standardized pre-commit workflow for linting, formatting, and local quality gates.Key capabilities
- →Linting and formatting
- →Config validation
- →Shell script hygiene
- →Rust-specific quality gates
How it works
It automates linting, formatting, and quality checks before commits using a standardized pre-commit workflow.
Inputs & outputs
When to use pre_commit
- →Running linting hooks on demand
- →Validating config file syntax
- →Ensuring executable bits on shell scripts
About this skill
Pre-commit Skill
This skill defines the standard pre-commit workflow for pw-ac3-live.
Core Commands
1. Run all hooks on demand
Run the full hook suite on all tracked files.
UV_CACHE_DIR=/tmp/uv-cache uvx pre-commit run -a
2. Run one hook during debugging
Use this when a single hook fails and you want fast iteration.
UV_CACHE_DIR=/tmp/uv-cache uvx pre-commit run <hook-id> -a
Hook Coverage in This Project
- File hygiene: trailing whitespace, EOF, line endings, merge/case conflicts, large files.
- Config validation: YAML, TOML, JSON.
- Shell scripts:
shfmtandshellcheck. - Rust:
cargo fmt,cargo clippy -D warnings,cargo test(pre-push).
Practical Notes
- If
uvxcache permission fails in restricted environments, setUV_CACHE_DIR=/tmp/uv-cache. check-shebang-scripts-are-executableuses the executable bit from Git index; set it with:
git add --chmod=+x <script>
When not to use it
- →Manual linting
Prerequisites
Limitations
- →Requires pre-commit configuration
How it compares
It provides a project-wide standardized quality gate.
Compared to similar skills
pre_commit side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| pre_commit (this skill) | 0 | 5mo | Review | Beginner |
| check-code-quality | 1 | 29d | Review | Advanced |
| verifier | 0 | 2mo | Caution | Intermediate |
| verify | 0 | 2mo | Review | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
check-code-quality
r3bl-org
Run comprehensive Rust code quality checks including compilation, linting, documentation, and tests. Use after completing code changes and before creating commits.
verifier
oleyna80
Pre-merge quality gate. Use to verify code is ready to ship: route contracts (status, Content-Type, body), TypeScript, tests, CSP/CSRF headers, schema alignment, secret leak scan. Issues structured READY or BLOCKED verdict with file:line evidence. Read-only. Для верификации, проверки перед мержем, и
verify
RickyMillar
Run the full CI quality gate locally before committing
feature-flags
Use when feature flag tests fail, flags need updating, understanding @gate pragmas, debugging channel-specific test failures, or adding new flags to React.
rust-tests-guidelines
RediSearch
Guidelines for writing Rust tests.
check-rust-coverage
RediSearch
Check which Rust lines are not covered by Rust tests.