prek
Skill1 starsChanged 3 months agoMITView on GitHub
Preserve hook coverage and behavior before optimizing runner performance. - Prefer prek run --all-files in CI over pre-commit run --all-files. - Keep hook definitions in existing .pre-commit-config.yaml unless migration requested. - Use SKIP=hook1,hook2 for temporary CI partitioning. - Preserve behavior first when migrating from pre-commit; optimize only after matching hook coverage. 1. Confirm the hook entrypoint and scope: local git hooks, CI job, migration, or flaky hook investigation. 2. Read existing hook config and nearby CI definitions before changing commands.…
6 other projects use a version of this.
Adopted by
Most recently taken up by
- bmsuisse/skillstheir own version, first seen Nov 6, 2026
- bastani-inc/atomictheir own version, first seen Oct 8, 2026
- flora131/atomictheir own version, first seen Oct 8, 2026
- carbon-language/carbon-langtheir own version, first seen Oct 8, 2026
- j178/prektheir own version, first seen Oct 8, 2026
- kelvincushman/orphustheir own version, first seen Jul 30, 2026
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 6
- carbon-language/carbon-lang★ 34ksame name
- j178/prek★ 8.8ksame name
- bastani-inc/atomic★ 881same name
- flora131/atomic★ 881same name
- kelvincushman/orphus★ 4same name
- bmsuisse/skills★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository14 other files it gives its agents.
- audit-pi-sessionSkill
- bash-scriptSkill
- cli-uxSkill
- code-quality-gateSkill
- docs-pesapSkill
- external-reviewSkill
- githubSkill
- gitlabSkill
- good-apiSkill
- pythonSkill
- rust-pesapSkill
- tdd-pesapSkill
- torcSkill
- uvSkill
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 4 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 19
Prefer prek run --all-files in CI over pre-commit run --all-files.
- Very specific: line 20
Keep hook definitions in existing .pre-commit-config.yaml unless migration requested.
- Very specific: line 22
Use SKIP=hook1,hook2 for temporary CI partitioning.
- Distinctive: line 30
Read existing hook config and nearby CI definitions before changing commands.
- Distinctive: line 33
Prefer the smallest reliable change: command swap, cache fix, install step, or hook selection change.
- Very specific: line 74
Keep hook pipeline simple: install deps once, then run prek.
- Distinctive: line 76
Avoid duplicate hook execution across parallel jobs.
- Distinctive: line 77
Prefer read-mostly caches and a single writer job.
“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
prek
Preserve hook coverage and behavior before optimizing runner performance.
Defaults
- Prefer
prek run --all-filesin CI overpre-commit run --all-files. - Keep hook definitions in existing
.pre-commit-config.yamlunless migration requested. - Use
SKIP=hook1,hook2for temporary CI partitioning. - Preserve behavior first when migrating from
pre-commit; optimize only after matching hook coverage.
Workflow
- Confirm the hook entrypoint and scope: local git hooks, CI job, migration, or flaky hook investigation.
- Read existing hook config and nearby CI definitions before changing commands.
- Determine whether the task is behavioral parity, performance improvement, or failure diagnosis.
- Prefer the smallest reliable change: command swap, cache fix, install step, or hook selection change.
- Validate with the narrowest useful command (
prek run <hook> --all-filesbefore full runs when possible). - Report any intentional behavior differences from
pre-commit.
Common gotchas
prekis a drop-in replacement for many flows, but surrounding install/cache steps may still be Python- or language-specific.- CI slowdowns often come from repeated environment setup, duplicate hook runs, or path-agnostic jobs rather than from the hook runner itself.
- Temporary
SKIP=usage is fine for partitioning, but leaving it baked into CI can silently reduce coverage. - Migration requests should preserve existing hook semantics unless the user explicitly asks to prune or redesign hooks.
Quick reference
# Install git hooks
prek install -f --install-hooks
# Run all hooks
prek run --all-files
# Run one hook
prek run ruff-check --all-files
# Skip specific hooks for one run
SKIP=julia-format,julia-lint prek run --all-files
# Update hook revisions
prek auto-update
# Validate updates in CI without rewriting files
prek auto-update --checkCI guidance
- Keep hook pipeline simple: install deps once, then run
prek. - Split language-heavy hooks into dedicated jobs with path-based rules.
- Avoid duplicate hook execution across parallel jobs.
- Prefer read-mostly caches and a single writer job.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

