pre-commit

Run pre-commit checks for PNPM, TypeScript, ESLint, and tests.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Run code hygiene checks before committing to ensure clean, maintainable code.

Core Features & Use Cases

  • Quick Check Commands: Type check, lint, and test commands to validate changes.
  • Manual Checklist: Pre-commit hygiene steps to ensure codebase quality.

Quick Start

Run the quick check commands and follow the manual checklist 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 run code hygiene checks before committing?

Pre-commit checks validate your code before commits by running build, lint, and test commands. Execute pnpm build, pnpm lint, and pnpm test to enforce code quality, catch errors early, and prevent broken code from entering the repository.

What hygiene rules does pre-commit enforce?

Pre-commit enforces multiple hygiene rules: prohibits console.log except in CLI apps, disallows commented-out code and unreferenced TODOs, requires Effect-TS patterns and proper error handling, ensures barrel exports are updated, and mandates CLAUDE.md updates for new patterns.

Can I auto-fix linting issues before committing?

Yes, run pnpm lint --fix to automatically fix linting violations and sort imports and objects. This auto-correction streamlines the pre-commit workflow by resolving common issues without manual intervention.

Does pre-commit work with TypeScript and ESLint?

Pre-commit integrates with TypeScript type checking and ESLint linting as part of its hygiene validation pipeline. It runs type checks and lint rules alongside build and test commands to ensure code quality across your PNPM-based project.

What should I check before committing code?

Follow the manual pre-commit checklist: verify builds pass, linting passes, tests pass, console.log is removed except in CLI apps, commented code and TODOs without issues are removed, and barrel exports and CLAUDE.md are updated if patterns changed.

When do I need pre-commit validation in my workflow?

Pre-commit validation is essential before pushing code to prevent hygiene violations from entering the codebase. It catches type errors, lint violations, test failures, and convention breaches early, reducing code review friction and maintaining consistent code quality.