run-precommit

Run pre-commit hooks on staged or all files to validate code quality.

18|5|Updated Nov 3, 2025
One-click install
npx skills add https://github.com/mvillmow/ml-odyssey --skill run-precommit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: run-precommit
Source: https://github.com/mvillmow/ml-odyssey/tree/main/.claude/skills/run-precommit
Command: npx skills add https://github.com/mvillmow/ml-odyssey --skill run-precommit

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pre-commit, just, and includes scripts (resource) components.

What problem does it solve?

This Skill helps you run pre-commit hooks locally or in CI to catch code quality issues before commits, ensuring cleaner histories and faster CI passes.

Core Features & Use Cases

  • Install and run pre-commit: One-time setup and quick checks on your codebase.
  • Staged vs. all-files checks: Run hooks on staged files or the entire codebase to catch edge cases.
  • Auto-fix and guidance: Some hooks fix issues automatically; others provide guidance for manual fixes.

Quick Start

Install the hooks with: pixi run pre-commit install Run all hooks on all files: just pre-commit-all Run hooks on staged files: just precommit Never bypass hooks: do not use --no-verify; fix issues instead If a hook fails, stage fixes and commit again

Frequently Asked Questions about run-precommit

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

FAQPage Schema
How do I catch code quality issues before committing to git?

Pre-commit hooks automatically validate code quality on your local machine before commits are allowed. This Skill runs pre-commit to enforce formatting, whitespace, YAML syntax, and line-ending consistency, catching issues early and preventing them from entering your repository.

Can I run pre-commit hooks on staged files only or on my entire codebase?

Pre-commit supports both modes. Run hooks on staged files alone for quick validation of your current changes, or run on all files to catch edge cases across the full codebase. This Skill provides both workflows to fit your development needs.

How do I set up pre-commit locally and integrate it into CI?

Install pre-commit hooks once with a setup command, then run them locally before each commit. This Skill documents the installation workflow and CI integration steps so hooks enforce code quality consistently across local development and continuous integration pipelines.

Do pre-commit hooks auto-fix issues or require manual intervention?

Some pre-commit hooks automatically fix eligible issues like formatting and whitespace; others provide guidance for manual fixes. This Skill supports auto-fix for eligible hooks and documents which issues require your attention versus which are resolved automatically.

What should I do when a pre-commit hook fails during commit?

Address the issues the hook flagged—either by letting auto-fix handle them or manually correcting them—then stage the fixes and commit again. Never bypass hooks with flags; this Skill enforces fixing root causes to maintain code quality standards.