hygiene

Enforce code quality rules on staged TypeScript and CSS files before commits.

Updated Mar 15, 2026
One-click install
npx skills add https://github.com/DevFlex-AI/devonz-editor-web --skill hygiene-devflex-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hygiene
Source: https://github.com/DevFlex-AI/devonz-editor-web/tree/main/.github/skills/hygiene
Command: npx skills add https://github.com/DevFlex-AI/devonz-editor-web --skill hygiene-devflex-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Ensures that code changes conform to project hygiene rules by validating Unicode usage, quoting, headers, indentation, and formatting before commits.

Core Features & Use Cases

  • Pre-commit hygiene checks: Runs checks on staged files to catch issues before committing.
  • Comprehensive rules: Enforces Unicode restrictions, string quoting, copyright headers, indentation with tabs, and formatting with ESLint and Stylelint.
  • Use Case: When preparing a code change in a TS/CSS project, run the hygiene check to ensure the commit will pass CI.

Quick Start

Run the hygiene pre-commit check on your staged changes.

Frequently Asked Questions about hygiene

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

FAQPage Schema
How do I run pre-commit hygiene checks on staged TypeScript and CSS files?

To run pre-commit hygiene checks on staged files, execute the npm precommit script, which invokes node --experimental-strip-types build/hygiene.ts to validate staged code against project quality rules.

What code formatting rules does a pre-commit hygiene checker enforce?

A pre-commit hygiene checker enforces formatting rules covering Unicode usage, string quoting, copyright headers, tab indentation, and linting via ESLint and Stylelint for TypeScript and CSS projects.

Why use a pre-commit hook for code linting instead of just running ESLint manually?

Using a pre-commit hook for code linting automatically catches formatting, quoting, and indentation violations on staged files before they enter the repository, ensuring commits pass CI without manual intervention.

Can I use pre-commit checks to enforce Unicode restrictions and string quoting in TypeScript?

Yes, you can use pre-commit checks to enforce Unicode restrictions and string quoting standards in TypeScript by running a hygiene checker that targets staged files and reports violations before committing.

Does the hygiene checker require a specific Node.js script to run?

Yes, the hygiene checker requires running the npm precommit script and executing node --experimental-strip-types build/hygiene.ts to process staged files and report any code quality violations.

What happens if staged files fail the pre-commit code quality rules?

When staged files fail the pre-commit code quality rules, the hygiene checker reports violations for Unicode, quoting, headers, indentation, and formatting, blocking the commit until the issues are resolved.