prek

Configure prek pre-commit hook manager and migrate pre-commit configs to prek.toml.

2|Updated Sep 12, 2016
One-click install
npx skills add https://github.com/paulnsorensen/dotfiles --skill prek
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prek
Source: https://github.com/paulnsorensen/dotfiles/tree/main/claude/skills/prek
Command: npx skills add https://github.com/paulnsorensen/dotfiles --skill prek

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Onboard prek (Rust-powered pre-commit) into any project and suggest hooks tailored to the language/framework. Use when the user says "add prek", "set up pre-commit hooks", "configure prek", "what hooks should I use", or when you notice a project without a prek.toml that would benefit from pre-commit checks. Also trigger when the user wants to add new hooks to an existing prek.toml, audit their hook config, or migrate from pre-commit to prek. Covers Rust, Python, TypeScript/JavaScript, Go, Ruby, and Shell projects. Do NOT use for husky, lint-staged, or CI pipeline hook configuration — this skill is specifically for prek.

Core Features & Use Cases

  • Onboard and configure prek to automatically detect project type and propose language-aware hooks
  • Migrate existing pre-commit configurations to prek.toml when appropriate
  • Provide comprehensive, language-aware hook recommendations and setup guidance

Quick Start

Onboard prek to my project and generate or update prek.toml with language-aware hooks

Frequently Asked Questions about prek

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up pre-commit hooks for a new project?

Configuring prek involves generating a prek.toml file with language-aware hooks tailored to your project, detecting languages via standard markers for Rust, Python, TypeScript/JavaScript, Go, Ruby, and Shell.

Can I migrate my existing pre-commit configuration to prek?

Yes, you can migrate from pre-commit to prek by translating your existing hook configuration into a prek.toml file, preserving your language-aware checks for supported languages like Rust, Python, Go, and Shell.

What is prek and how does it manage pre-commit hooks?

prek is a fast, Rust-powered pre-commit hook manager that enforces a prek.toml structure and provides language-aware hook recommendations and validation to maintain code quality across multiple programming languages.

Does prek support pre-commit hooks for Python and TypeScript projects?

Yes, prek supports pre-commit hooks for Python and TypeScript/JavaScript projects, detecting languages via standard markers to provide tailored hook recommendations and setup guidance within your prek.toml file.

What languages can prek detect for pre-commit hook recommendations?

prek detects Rust, Python, TypeScript/JavaScript, Go, Ruby, and Shell languages via standard markers to provide comprehensive, language-aware hook recommendations during the prek.toml onboarding process.