Dev & Engineering ✓ Microsoft · Official git-hookscode-hygieneeslintstylelinttypescriptcode-formatting

VS Code Hygiene Checks

Catch VS Code commit-blocking style and hygiene issues before the work is declared complete.

FollowSkills review · FSRS-2.0
Use with care
48/ 100 5-point scale 2.4 / 5
1 2 3 4 5 6
1Trust15 / 25 · 3.0/5

The skill only invokes a repository-local hygiene script against staged files, with no evidence of credential theft, covert exfiltration, or malicious dependencies. It does not disclose data flow, user confirmation, permission boundaries, or rollback behavior, so points are deducted.

2Reliability8 / 20 · 2.0/5

The commands, script path, and staged-file scope are internally consistent, and package.json exposes the referenced script. However, this is a static-only review with no skill-specific tests, abnormal-input handling, or clearly documented diagnostic behavior, so the score remains conservative.

3Adaptability8 / 15 · 2.7/5

The trigger scenario and main checks are clear for VS Code contributors before committing. Non-fit cases, workflow boundaries, failure-repair guidance, and Chinese-language usage support are not specified, so points are deducted. The core function does not depend on an overseas online service.

4Convention7 / 15 · 2.3/5

The document is readable and includes execution commands, a direct-file example, and a check summary. It lacks skill versioning, changelog, maintenance ownership, update path, FAQ, dependency-installation notes, and fuller limitation disclosure, so points are deducted. Repository evidence supplies MIT licensing and Microsoft attribution.

5Effectiveness6 / 15 · 2.0/5

It can guide users to run the pre-commit hygiene check, and the command matches the repository script. However, expected output and remediation steps are not explained; failures still require substantial user diagnosis, and comparative benefit over manual checking is not evidenced, so points are deducted.

6Verifiability4 / 10 · 2.0/5

The instructions are auditable against package.json and the referenced repository hygiene script. No skill-specific tests, CI coverage, or independently reproducible execution evidence is supplied, so the static evidence is limited and points are deducted.

Evidence confidence:Low Reviewed Jul 20, 2026 Reviewed revision 5b3e1be7be9e
The upstream repository has new commits since this review. The score still applies to the reviewed revision shown and may not cover the latest changes.
Before you use it
  • The skill executes a repository script but does not document its full side effects, data flow, or required permissions; review build/hygiene.ts before first use.
  • It requires running the check before declaring work complete but does not explain failure output, remediation, or how files outside the staged set are handled.
  • This static review did not execute the command and cannot confirm runtime behavior for the assessed revision.
See the full review method →

What does this skill do, and when should you use it?

Hygiene is the skill at `.github/skills/hygiene/SKILL.md` in the microsoft/vscode repository. It guides agents through VS Code's pre-commit hygiene check while changing code. The check scans staged files, or a specified file path, for repository rules covering Unicode, quoting, copyright headers, indentation, formatting, ESLint, and stylelint. It is best suited to contributors working inside the VS Code source tree, not as a standalone quality platform with its own documented installer.

It instructs the user to run npm run precommit, which executes node --experimental-strip-types build/hygiene.ts and scans staged files obtained from git diff --cached. It also supports direct checks with node --experimental-strip-types build/hygiene.ts path/to/file.ts. The checks reject non-ASCII Unicode characters, reserve double-quoted strings for externalized localized strings, require Microsoft copyright headers, require tabs for indentation, verify TypeScript formatting, run ESLint on TypeScript files, and run stylelint on CSS files. A failed hygiene check causes the Git commit to be rejected.

  1. A VS Code contributor who has staged source changes can run the full pre-commit hygiene check before committing.
  2. A developer who wants to inspect one TypeScript file before staging it can pass that file path directly to the hygiene script.
  3. A contributor investigating a rejected commit can use the listed checks to locate Unicode, quoting, header, indentation, formatting, ESLint, or stylelint problems.
  4. A developer changing CSS in the VS Code source tree can run the check before committing to catch stylelint failures.

What are this skill's strengths and limitations?

Pros
  • Covers several commit-relevant rules, including Unicode, quoting, copyright headers, indentation, formatting, ESLint, and stylelint.
  • Supports both complete staged-file checks and direct checks of individual files.
  • Explicitly places the check before declaring work complete, helping catch issues that would block a commit.
Limitations
  • It is tailored to the VS Code repository, its `build/hygiene.ts` script, and its development conventions rather than being a general-purpose checker for any project.
  • It depends on Node.js, npm, Git, and repository-provided build scripts; no standalone package is documented.
  • The default command scans staged files only, so unstaged changes are excluded.
  • The SKILL.md does not document a test suite, cross-platform validation, or automatic remediation of failures.

How do you install this skill?

The skill is located at .github/skills/hygiene/SKILL.md in the repository. The source does not document a standalone installation command, a target client skills directory, or separate packaging; provide the containing skill folder to an Agent Skills-compatible client. The repository source is available under the MIT license.

How do you use this skill?

After making changes in the VS Code repository and staging the files, run:
npm run precommit
This command scans staged files only. To check a specific file without staging it first, run:
node --experimental-strip-types build/hygiene.ts path/to/file.ts
A suitable agent request is: “Run the VS Code hygiene check before declaring the work complete, and fix any reported issues.”

FAQ

Is this skill free to use?
The repository source is available under the MIT license. The source does not describe separate pricing or a separate commercial license for this skill.
Which files does `npm run precommit` check?
It checks staged files only, using the file set from `git diff --cached`. Unstaged changes are not scanned by that command.
What happens when the check fails?
VS Code's Git pre-commit hygiene check rejects the commit when hygiene fails. Fix the reported issues and run the check again.
Can I check a file without staging it?
Yes. Run `node --experimental-strip-types build/hygiene.ts path/to/file.ts`, replacing the example path with the file you want to check.

More skills from this repository

All from microsoft/vscode

Dev & Engineering ✓ Microsoft · Official

Tool Rename Compatibility Check

Protect existing prompts and tool configurations when built-in tools are renamed.

Dev & Engineering ✓ Microsoft · Official

VS Code Unit Test Runner

Run VS Code repository unit tests by file, test name, or compiled-output glob.

Dev & Engineering ✓ Microsoft · Official

VS Code Smoke Test Failure Diagnosis

Diagnose and validate intermittent VS Code Electron smoke-test failures in Azure DevOps.

Dev & Engineering ✓ Microsoft · Official

VS Code Configuration Policy Maintainer

Standardize VS Code policy registration, export, and validation.

Dev & Engineering ✓ Microsoft · Official

VS Code Chat Customizations Editor Skill

Guides developers through safe changes and testing for VS Code’s chat customization management UI.

Dev & Engineering ✓ Microsoft · Official

Memory Leak Audit

Systematically find and fix listener, lifecycle, and disposable leaks in VS Code code.

Dev & Engineering ✓ Microsoft · Official

Run Command Builder

Configure and update commands shown in a VS Code Agent Session's Run button.

Dev & Engineering ✓ Microsoft · Official

Anthropic SDK Upgrade Assistant

Upgrade Anthropic SDK packages methodically while checking API changes, compilation, and Claude-focused tests.

Dev & Engineering ✓ Microsoft · Official

V8 Heap Snapshot Analyzer

Trace V8 heap retention paths to diagnose leaks and GC-surviving objects.

Dev & Engineering ✓ Microsoft · Official

Context7 Project Bootstrapper

Build a complete VS Code project scaffold using current library documentation.

Dev & Engineering ✓ Microsoft · Official

GitHub Copilot SDK Upgrade Assistant

Upgrade and validate @github/copilot in the VS Code Copilot Chat project.

Dev & Engineering ✓ Microsoft · Official

Existing Pull Request Updater

Sync the branch, run checks, and publish new changes to an existing pull request.

Dev & Engineering ✓ Microsoft · Official

Commit Assistant

Creates repository-style commit messages and safely commits code changes.

Dev & Engineering ✓ Microsoft · Official

Session Code Review

Review the current session's code changes and place actionable findings directly on the relevant lines.

Dev & Engineering ✓ Microsoft · Official

Session Pull Request Assistant

Checks session changes and creates a GitHub pull request through GitHub MCP.

Dev & Engineering ✓ Microsoft · Official

Create Draft Pull Request

Validate the current session’s changes and open a draft PR through GitHub MCP.

Dev & Engineering ✓ Microsoft · Official

VS Code Agents Window Sessions

Safely implement and repair VS Code Agents window features.

Dev & Engineering ✓ Microsoft · Official

Code OSS Launch & Debug

Launch a built-from-source VS Code with isolated profiles, Playwright control, and multi-process debugging ports.

Dev & Engineering ✓ Microsoft · Official

Feedback Action

Reads current-session feedback and applies the requested code changes.

Dev & Engineering ✓ Microsoft · Official

Code OSS Development Log Viewer

Locate and inspect the latest Code OSS development logs.

Related skills