agentsclimarketplace

Prek

Skill MAHDTech/agent-skills/skills/tooling/prek

Run pre-commit hooks using the prek CLI tool. Differentiates between 'pre-commit' (the git hooks concept/lifecycle stage) and 'prek' (the actual binary command; pre-commit CLI is deprecated, use prek). Use when you need to run, configure, check, or troubleshoot git pre-commit hooks.From its SKILL.md

Install
npx -y skills add MAHDTech/agent-skills --skill prek

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

1.7 KB, 387 tokens by cl100k_base, as published. Nobody here has run it

Prek (Pre-commit)

prek is a fast Git hook manager written in Rust, designed as a drop-in replacement for the deprecated pre-commit CLI tool.

[!IMPORTANT] Command Line & Package Discrepancy: The CLI binary is prek, NOT pre-commit. The pre-commit CLI tool is deprecated and MUST NOT be used.

Key Differences

  • Git concept / stage: "pre-commit" refers strictly to the Git lifecycle hook stage (e.g. .pre-commit-config.yaml).
  • Legacy CLI Tool (DEPRECATED): The Python-based pre-commit CLI tool is deprecated. NEVER add pkgs.pre-commit or pre-commit package/input to devenv.nix or package managers.
  • Active Hook Runner: prek is the CLI binary used to run and configure pre-commit hooks.

Running Hooks

When working inside a devenv shell, run:

SECRETSPEC_REASON="running pre-commit hooks" devenv --no-tui shell -- prek run -a

If not using devenv, run:

prek run -a

Use -a or --all-files to run hooks against all files in the repository.

Commands

  • prek run: Run hooks against modified files.
  • prek run -a: Run hooks against all files.
  • prek install: Install prek Git shims into Git's hooks directory.
  • prek uninstall: Uninstall prek Git shims.
  • prek validate-config: Validate configuration files (prek.toml or .pre-commit-config.yaml).
  • prek cache: Manage the prek cache (e.g., prek cache clean).

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 625,150. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.