pre-commit

... (please answer in English only, and in fewer than 200 characters)

3|Updated Feb 7, 2026
One-click install
npx skills add https://github.com/Develonaut/bnto --skill pre-commit-develonaut
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pre-commit
Source: https://github.com/Develonaut/bnto/tree/main/.claude/skills/pre-commit
Command: npx skills add https://github.com/Develonaut/bnto --skill pre-commit-develonaut

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Pre-commit checks catch issues before they reach the repository, saving time and preventing broken builds.

Core Features & Use Cases

  • Mandatory checks run automatically on commit, ensuring coding standards, formatting, and security hooks.
  • Prevents regressions by catching common mistakes early during local development.
  • Use Case: A developer commits code and the pre-commit process blocks if lint errors or tests fail, ensuring only clean changes are pushed.

Quick Start

Install the pre-commit hooks and run pre-commit on your changes before committing.

Frequently Asked Questions about pre-commit

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

FAQPage Schema
How do I enforce code quality checks before a git commit?

You can enforce code quality by running a mandatory pre-commit checklist that automatically executes linting, formatting, and security hooks on local changes. This blocks the commit process if any defined checks fail.

What is the best way to prevent broken builds from local git commits?

Pre-commit checks prevent broken builds by catching issues early in local development. They automatically run a mandatory checklist of tests and linting before changes are committed to the repository.

Can I run lint and security hooks automatically on every git commit?

Yes, you can run lint and security hooks automatically by installing pre-commit hooks in your repository. They execute mandatory checks on your local changes to ensure coding standards are met before committing.

How do I set up a mandatory checklist to run tests before committing code?

To set up a mandatory pre-commit checklist, you install the hooks in your local repository. They will then automatically run defined tests, formatting checks, and dependency validation when you attempt to commit changes.

Does a pre-commit hook block commits if linting errors are found?

Yes, pre-commit hooks block the commit if lint errors or tests fail. This prevents regressions and ensures only clean changes that satisfy repository standards are pushed.

When do I need to use pre-commit hooks in my development workflow?

You need pre-commit hooks when your development workflow requires code quality, formatting, and security checks to be enforced before every commit. They are essential for preventing risky commits and catching mistakes early.