pre-commit-validate

Run a 5-step pre-commit checklist covering builds, tests, encoding, model sync, and headers.

Updated Feb 10, 2026
One-click install
npx skills add https://github.com/Jason-hub-star/GameLab --skill pre-commit-validate-jason-hub-star
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pre-commit-validate
Source: https://github.com/Jason-hub-star/GameLab/tree/main/.claude/skills/gamelab-guide/ops/pre-commit-validate
Command: npx skills add https://github.com/Jason-hub-star/GameLab --skill pre-commit-validate-jason-hub-star

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Developers often forget to run build, tests, encoding checks, model synchronization, and header comment enforcement before committing, resulting in broken builds and inconsistent code.

Core Features & Use Cases

  • FE Build Check: Verifies the frontend can compile with npm run build.
  • Backend Test Suite: Executes all pytest tests to ensure backend stability.
  • UTF-8 Validation: Runs scripts/check-utf8.mjs to confirm proper file encoding.
  • Model Synchronization: Optionally checks frontend type definitions against backend model changes.
  • Header Enforcement: Ensures new files contain Korean header comments.

Use case: A developer initiates a commit; this skill runs all five validations and blocks the commit if any step fails, guaranteeing code integrity.

Quick Start

Ask the assistant to run the pre‑commit‑validate skill before committing your changes.

Frequently Asked Questions about pre-commit-validate

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

FAQPage Schema
How do I run pre-commit validation for frontend builds and backend tests?

Pre-commit validation runs a 5-step checklist to verify frontend builds via npm, backend stability via pytest, and file encoding before allowing a code commit in a monorepo environment.

What does a pre-commit hook check for in a monorepo?

A pre-commit hook in a monorepo checks frontend build compilation, backend pytest suites, UTF-8 file encoding, model synchronization, and header comment enforcement to guarantee code integrity before committing.

Do I need npm and Python to run pre-commit validations?

Yes, you need npm for frontend build checks and Python with pytest for backend test execution. Node.js scripts and optional model sync utilities are also required to run all five verification steps.

How do I validate UTF-8 encoding and header comments before committing?

You validate UTF-8 encoding by running scripts/check-utf8.mjs and enforce header comments by checking that new files contain Korean header comments as part of a pre-commit validation checklist.

Can I check frontend type definitions against backend model changes before a commit?

Yes, model synchronization is an optional step in the pre-commit validation process that checks frontend type definitions against backend model changes to ensure consistency across the monorepo before committing.

Why does my pre-commit validation block the commit?

Pre-commit validation blocks a commit if any of its five verification steps fail, including frontend build errors, failing pytest tests, incorrect UTF-8 encoding, or missing header comments, ensuring broken code is never committed.