hygiene▌
microsoft/vscode · updated Apr 8, 2026
VS Code runs a hygiene check as a git pre-commit hook. Commits will be rejected if hygiene fails.
Hygiene Checks
VS Code runs a hygiene check as a git pre-commit hook. Commits will be rejected if hygiene fails.
Running the hygiene check
Always run the pre-commit hygiene check before declaring work complete. This catches issues that would block a commit.
To run the hygiene check on your staged files:
npm run precommit
This executes node --experimental-strip-types build/hygiene.ts, which scans only staged files (from git diff --cached).
To check specific files directly (without staging them first):
node --experimental-strip-types build/hygiene.ts path/to/file.ts
What it checks
The hygiene linter scans staged files for issues including (but not limited to):
- Unicode characters: Non-ASCII characters (em-dashes, curly quotes, emoji, etc.) are rejected. Use ASCII equivalents in comments and code. Suppress with
// allow-any-unicode-next-lineor// allow-any-unicode-comment-file. - Double-quoted strings: Only use
"double quotes"for externalized (localized) strings. Use'single quotes'everywhere else. - Copyright headers: All files must include the Microsoft copyright header.
- Indentation: Tabs only, no spaces for indentation.
- Formatting: TypeScript files must match the formatter output (run
Format Documentto fix). - ESLint: TypeScript files are linted with ESLint.
- Stylelint: CSS files are linted with stylelint.
Discussion
Product Hunt–style comments (not star reviews)- No comments yet — start the thread.
Ratings
4.5★★★★★58 reviews- ★★★★★Dhruvi Jain· Dec 28, 2024
We added hygiene from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
- ★★★★★Arya Kim· Dec 8, 2024
Solid pick for teams standardizing on skills: hygiene is focused, and the summary matches what you get after install.
- ★★★★★Zara Abbas· Dec 4, 2024
Registry listing for hygiene matched our evaluation — installs cleanly and behaves as described in the markdown.
- ★★★★★Dev Choi· Nov 27, 2024
Registry listing for hygiene matched our evaluation — installs cleanly and behaves as described in the markdown.
- ★★★★★Advait Mensah· Nov 23, 2024
Solid pick for teams standardizing on skills: hygiene is focused, and the summary matches what you get after install.
- ★★★★★Oshnikdeep· Nov 19, 2024
hygiene fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
- ★★★★★Isabella Gonzalez· Oct 18, 2024
hygiene fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
- ★★★★★Anaya Chawla· Oct 14, 2024
We added hygiene from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
- ★★★★★Ganesh Mohane· Oct 10, 2024
Registry listing for hygiene matched our evaluation — installs cleanly and behaves as described in the markdown.
- ★★★★★Lucas Huang· Sep 25, 2024
I recommend hygiene for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
showing 1-10 of 58