ci-run-precommit

Run pre-commit hooks to validate code before committing in local or CI workflows.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? This Skill automates the execution of pre-commit hooks locally or in CI, ensuring code quality standards are met before commits are pushed, preventing common issues like trailing whitespace or unformatted code. It streamlines quality checks, saving time and preventing CI failures.

Core Features & Use Cases:

  • Automated Code Checks: Runs various hooks including Mojo formatting, whitespace trimming, and YAML validation for comprehensive quality assurance.
  • Auto-Fix Capabilities: Many hooks automatically fix issues, requiring only a re-commit, simplifying the developer workflow.
  • Use Case: Before committing your changes, use this skill to run all pre-commit hooks. It will automatically fix minor issues like trailing whitespace and report any major problems, ensuring your commit is clean and passes CI.

Quick Start: Use the ci-run-precommit skill to run all pre-commit hooks on all files in the repository.

Frequently Asked Questions about ci-run-precommit

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

FAQPage Schema
How do I run pre-commit hooks to catch code quality issues before committing?

Pre-commit hooks automate code quality checks locally or in CI by running validators like formatters, linters, and YAML checkers before commits. This Skill executes all configured hooks on your repository files, automatically fixing issues like trailing whitespace and reporting problems that need manual attention, preventing CI failures and ensuring clean commits.

Can pre-commit hooks automatically fix formatting and linting errors?

Many pre-commit hooks, including mojo-format and trailing-whitespace removal, automatically fix issues in place. When hooks make changes, you simply re-commit the corrected files. Others report violations that require manual fixes, giving you immediate feedback on code quality problems.

What's the difference between running pre-commit on all files versus staged files?

Running on all files validates your entire repository for consistency, while running on staged files checks only changes you're about to commit. Both approaches enforce the same hooks—mojo-format, YAML validation, whitespace checks—but staged-file mode integrates tightly with your commit workflow, catching issues before they enter the repository.

Do I need to install pre-commit separately before using this Skill?

Yes, pre-commit and mojo-sdk are dependencies required before running this Skill. Installation and setup guidance are provided, and this Skill enforces required hook configurations including mojo-format, trailing-whitespace, end-of-file-fixer, check-yaml, check-added-large-files, and mixed-line-ending validators.

How does the no-bypass policy (--no-verify) work in CI and local development?

The no-verify flag prevents developers from skipping pre-commit hooks during commits. This Skill mandates this policy with clear instructions for both local and CI contexts, ensuring code quality standards are consistently enforced and no unvalidated code reaches the repository.

Why would pre-commit hooks fail, and how do I troubleshoot commit failures?

Pre-commit hooks fail when code violates configured standards—unformatted Mojo code, trailing whitespace, invalid YAML, oversized files, or mixed line endings. This Skill covers troubleshooting by identifying which hook failed, reviewing the violation, applying automatic fixes where available, or making manual corrections before re-committing.