agentsclimarketplace

Prek precommit hook

Skill Miyamura80/MCP-Template/.claude/skills/prek-precommit-hook

🏵️ MCP Server with CLI interface ready for distribution

Install
npx -y skills add Miyamura80/MCP-Template --skill prek-precommit-hook

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.

What its author says it does

Copied from the file, not written here

Instructions for managing and running git hooks using `prek`. Use this skill for any mention of pre-commit hooks, as `prek` overrides pre-commit hooks.

SKILL.md

1.5 KB, as published. Nobody here has run it

Prek Pre-commit Hook Skill

This skill provides instructions for using prek, a fast, native pre-commit runner that replaces the traditional Python-based pre-commit. prek should be used for any mention of pre-commit hooks and overrides traditional pre-commit hooks.

Commands

Use the following commands to interact with prek:

  • prek run: Runs the configured hooks on the staged files.
  • prek run --all-files: Runs the configured hooks on all files in the repository.
  • prek install: Installs the git hooks into .git/hooks.
  • prek uninstall: Uninstalls the git hooks.
  • prek list: Lists the configured hooks.

Configuration

The configuration is stored in prek.toml in the root of the repository.

Example prek.toml:

[[repos]]
repo = "https://github.com/pre-commit/pre-commit-hooks"
rev = "v4.6.0"
hooks = [
    { id = "check-added-large-files" },
]

[[repos]]
repo = "local"
hooks = [
    { id = "ruff-check", name = "Run ruff linter", entry = "uv run ruff check", language = "system", pass_filenames = false, always_run = true },
]

Workflow

  1. Before Committing: prek hooks will run automatically if installed via prek install.
  2. Manual Check: You can manually run checks using prek run --all-files.
  3. CI: In CI environments, you can use prek run --all-files to enforce checks.

Keep looking

Skills are one crate of 328,083. 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.