pre-commit-validator

Run TypeScript typechecking, ESLint, unit tests, and build checks before commits.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/cityfish91159/maihouses --skill pre-commit-validator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pre-commit-validator
Source: https://github.com/cityfish91159/maihouses/tree/main/.claude/skills/pre-commit-validator
Command: npx skills add https://github.com/cityfish91159/maihouses --skill pre-commit-validator

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Prevents low-quality commits by running comprehensive validations before commits, ensuring only ready-to-merge changes enter the codebase.

Core Features & Use Cases

  • Pre-commit Checks: Type check, lint, build, and optional tests before committing.
  • Guided Corrections: Suggest fixes or auto-apply safe improvements.
  • Use Case: A developer attempts to commit; the skill intercepts and returns a green-lit report or fixes.

Quick Start

Attempt a commit and let the skill execute its pre-commit checks, producing a report of results and any fixes.

Frequently Asked Questions about pre-commit-validator

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

FAQPage Schema
How do I prevent low-quality commits from entering my codebase?

Pre-commit validation automatically runs comprehensive checks—TypeScript type-checking, linting, unit tests, and build verification—before commits are created, blocking changes that fail quality gates and ensuring only production-ready code enters the repository.

Can I automate type-checking and linting before each commit?

Yes. Pre-commit validation integrates into your Git workflow to automatically run TypeScript type-checking, ESLint, and build processes on every commit attempt, catching errors before they reach remote repositories.

What checks does pre-commit validation run on code changes?

Pre-commit validation enforces git status checks, TypeScript type-checking, ESLint rules, unit tests, build success, forbidden-pattern scanning, sensitive data detection, large-file exclusion, and dependency integrity across all commits.

How do I detect and block sensitive data in commits?

Pre-commit validation scans commits for sensitive data patterns and automatically blocks them from being committed, preventing accidental exposure of credentials, API keys, or other confidential information to remote repositories.

Does pre-commit validation work with TypeScript and ESLint?

Yes. Pre-commit validation integrates directly with TypeScript type-checking and ESLint to validate code quality, enforce linting rules, and run build processes as part of Git's commit workflow.

What happens when a commit fails validation checks?

When validation fails, pre-commit validation returns a detailed report of issues and suggests or auto-applies safe fixes, allowing developers to correct problems immediately before attempting to commit again.