hygiene

Validates code changes against VS Code hygiene checks before committing.

1|Updated Apr 8, 2026
One-click install
npx skills add https://github.com/voidful/Aixlarity --skill hygiene-voidful
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hygiene
Source: https://github.com/voidful/Aixlarity/tree/main/aixlarity-ide/.github/skills/hygiene
Command: npx skills add https://github.com/voidful/Aixlarity --skill hygiene-voidful

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Code changes in the VS Code repository get rejected at commit time when they fail the pre-commit hygiene checks, forcing developers to debug failures after the fact. This Skill ensures changes pass hygiene validation before work is declared complete. ## Core Features & Use Cases - Pre-commit Hygiene Validation: Runs npm run precommit to scan staged files via build/hygiene.ts before committing. - Targeted File Checks: Checks specific files directly with node --experimental-strip-types build/hygiene.ts <file> without staging them first. - Rule Coverage: Enforces ASCII-only characters, single-quote strings, Microsoft copyright headers, tab indentation, formatter output, ESLint, and stylelint compliance. - Use Case: After editing TypeScript source files in the VS Code codebase, run the hygiene check to catch unicode characters or double-quoted strings that would otherwise block the commit. ## Quick Start Run the hygiene check on my staged changes and fix any violations it reports.

Frequently Asked Questions about hygiene

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

FAQPage Schema
How do I run the VS Code hygiene check before committing?

Run npm run precommit to execute the hygiene check on all staged files. It invokes node --experimental-strip-types build/hygiene.ts, which scans files from git diff --cached and reports violations that would block the commit.

How to check hygiene on specific files without staging them?

Run node --experimental-strip-types build/hygiene.ts followed by the file path, such as build/hygiene.ts path/to/file.ts. This checks the file directly without requiring it to be staged in git first.

Why does the VS Code hygiene check reject my commit?

Commits are rejected for non-ASCII unicode characters, double-quoted non-localized strings, missing Microsoft copyright headers, space indentation instead of tabs, formatting mismatches, or ESLint and stylelint violations in staged files.

How do I allow unicode characters in VS Code source files?

Add the comment // allow-any-unicode-next-line above the line containing unicode, or // allow-any-unicode-comment-file for the whole file. Otherwise, replace em-dashes, curly quotes, and emoji with ASCII equivalents.

When should I use double quotes in VS Code TypeScript code?

Use double quotes only for externalized (localized) strings. All other strings must use single quotes, and the hygiene linter rejects double-quoted strings that are not localization strings.