hygiene

Enforce VS Code hygiene checks on commits for TS/JS/CSS files.

Updated Mar 18, 2026
One-click install
npx skills add https://github.com/colajacquin-e/ephcode --skill hygiene-colajacquin-e
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hygiene
Source: https://github.com/colajacquin-e/ephcode/tree/main/.github/skills/hygiene
Command: npx skills add https://github.com/colajacquin-e/ephcode --skill hygiene-colajacquin-e

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill ensures code changes comply with VS Code's hygiene checks, preventing issues during commits and review.

Core Features & Use Cases

  • Pre-commit validation to reject commits that fail hygiene checks.
  • Unicode restrictions and string quoting enforcement to maintain consistency.
  • Indentation, formatting, and header compliance with ESLint and Stylelint.

Quick Start

Run the pre-commit hygiene check before declaring work complete.

Frequently Asked Questions about hygiene

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

FAQPage Schema
How do I automate code hygiene checks before commits in VS Code?

Automating code hygiene checks before commits in VS Code uses a pre-commit hook to validate Unicode usage, quote rules, header compliance, indentation, formatting, and linting across TS/JS/CSS files. The hook rejects non-compliant changes automatically.

What do pre-commit hygiene checks enforce for TypeScript and CSS files?

Pre-commit hygiene checks enforce Unicode restrictions, string quoting rules, header compliance, indentation, and formatting for TypeScript, JavaScript, and CSS files. They use ESLint and Stylelint to validate code standards during the commit workflow.

Can I use ESLint and Stylelint together in a pre-commit hook?

Yes, you can use ESLint and Stylelint together in a pre-commit hook to enforce coding standards across TS/JS and CSS files. The hook runs both linters to validate formatting, indentation, and string rules before allowing a commit to proceed.

What is the best way to prevent non-compliant code from being committed?

The best way to prevent non-compliant code from being committed is automating a pre-commit hook that validates hygiene checks including Unicode usage, quote rules, and formatting. Only changes passing ESLint and Stylelint validation are recorded in the repository.

Does the pre-commit hygiene check work without any additional dependencies?

Yes, the pre-commit hygiene check operates without additional dependencies, using exposed optional directories like scripts, references, and assets to drive deterministic checks. It runs directly within VS Code projects to validate code compliance.

Why do my commits fail when code formatting or quote rules are inconsistent?

Commits fail when code formatting or quote rules are inconsistent because the pre-commit hook enforces hygiene checks for indentation, Unicode usage, and string quoting. The hook validates these rules via ESLint and Stylelint to maintain consistent coding standards.