validating-pre-commit

Automate pre-commit quality checks with lint fixes, TypeScript compilation, tests, and CI validation.

29|5|Updated Jan 21, 2025
One-click install
npx skills add https://github.com/saleor/configurator --skill validating-pre-commit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: validating-pre-commit
Source: https://github.com/saleor/configurator/tree/main/.claude/skills/validating-pre-commit
Command: npx skills add https://github.com/saleor/configurator --skill validating-pre-commit

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Ensures code quality before commits by running a comprehensive quality gate, including auto-fix, build, tests, type checks, and CI validation.

Core Features & Use Cases

  • Auto-fix lint issues: Prepares clean code automatically.
  • TypeScript compilation: Ensures code compiles before committing.
  • Full test suite: Runs tests locally to reproduce CI failures.
  • Strict type checks: Executes a thorough TypeScript check.
  • CI validation: Reproduces CI checks locally for early feedback.

Quick Start

Run the pre-commit quality script to validate your changes: .claude/skills/pre-commit-quality/scripts/validate-all.sh

Frequently Asked Questions about validating-pre-commit

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

FAQPage Schema
How do I automate pre-commit quality checks to catch issues before pushing code?

Pre-commit quality gates automate lint fixes, TypeScript compilation, tests, and CI validation in a ordered checklist before commits. This Skill runs validate-all.sh to execute the full quality gate locally, catching failures early and preventing broken code from reaching CI.

Can I reproduce CI failures locally before committing?

Yes. This Skill reproduces CI checks locally by running auto-fix linting, TypeScript compilation, full test suite, strict type checks, and final CI validation in sequence, giving you early feedback on the exact checks your CI pipeline will run.

What's the best way to ensure TypeScript code compiles and passes type checks before committing?

This Skill includes TypeScript compilation and strict type checking as part of its pre-commit workflow. It verifies your code compiles and meets type standards, then runs tests and CI validation, ensuring quality gates pass before your commit is made.

Do I need to run linting, tests, and type checks separately or can they run together?

This Skill combines auto-fix linting, TypeScript compilation, full tests, strict type checks, and CI validation into a single ordered checklist. Run validate-all.sh once to execute all quality gates in sequence without manual steps.

What happens if my code fails the pre-commit quality gate?

The Skill stops at the first failing check in the sequence: auto-fix linting, TypeScript compilation, tests, strict type checks, or CI validation. You can fix the issue and re-run the gate to validate your changes before committing.