
Description
hygiene is an agent skill from the Microsoft VS Code repository, listed on skills.sh. It helps contributors make code changes that pass VS Code's hygiene checks. Those checks run as a git pre-commit hook, and a commit is rejected if hygiene fails. The skill covers the pre-commit hook itself, the restrictions on unicode characters, the rules for string quoting and copyright headers. It explains how to run the check on staged files through the project's precommit script, which scans only what git diff reports as staged, and how to check specific files without staging them first. The skill tells the agent to run the hygiene check before declaring work complete, since it catches problems that would otherwise block a commit. A skill is a SKILL.md file of instructions that an AI agent loads when a task calls for it. It is free and open source, and the skills.sh listing shows all three security audits passing.…
Highlights
- Runs VS Code's pre-commit hygiene checks
- Unicode and string quoting rules
- Copyright header checks
- Checks staged or specific files
Ratings & Reviews
No ratings yet
Be the first to rate hygiene.
People also visit
hygiene FAQ
What does the hygiene skill do?
It helps you make changes that pass VS Code's pre-commit hygiene checks, so the commit is not rejected.
What do the checks cover?
The pre-commit hook, unicode restrictions, string quoting rules and copyright headers.
Can I check files before staging them?
Yes. The skill explains how to check specific files directly.
How do I install it?
Run: npx skills add https://github.com/microsoft/vscode --skill hygiene
Is it free?
Yes. It is free and open source.
Are there security findings?
The skills.sh listing shows Gen Agent Trust Hub, Socket and Snyk all passing.
What are the best hygiene alternatives?
Popular alternatives to hygiene include sessions, code-tour and extract-errors. See all hygiene alternatives







