H

hygiene

by @microsoftv
4.3(20)

VS Codeのプリコミット衛生チェックツール。コミット前にコード品質チェックを自動実行し、衛生チェックが失敗した場合はコミットをブロック。コードリポジトリの品質基準を保証。

code-qualitypre-commitgit-hookscode-reviewautomationGitHub
インストール方法
npx skills add https://github.com/microsoft/vscode --skill hygiene
compare_arrows

Before / After 効果比較

1 组
使用前

手動でのコード品質およびフォーマット規約のチェックは、問題を見落としやすく、不適格なコードがコミットされた後、繰り返し修正とプッシュが必要となり、チームのコラボレーション効率に影響を与えます。

使用後

コミット前の衛生チェックを自動で実行し、不適格なコードを漏れなくブロックし、すべてのコミットが品質基準を満たすことを保証します。

SKILL.md

hygiene

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-line or // 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 Document to fix).

  • ESLint: TypeScript files are linted with ESLint.

  • Stylelint: CSS files are linted with stylelint.

Weekly Installs437Repositorymicrosoft/vscodeGitHub Stars183.5KFirst SeenFeb 20, 2026Security AuditsGen Agent Trust HubPassSocketPassSnykPassInstalled onkimi-cli436amp436github-copilot436opencode436cursor436gemini-cli436

ユーザーレビュー (0)

レビューを書く

効果
使いやすさ
ドキュメント
互換性

レビューなし

統計データ

インストール数2.2K
評価4.3 / 5.0
バージョン
更新日2026年8月5日
比較事例1 件

ユーザー評価

4.3(20)
5
70%
4
30%
3
0%
2
0%
1
0%

この Skill を評価

0.0

対応プラットフォーム

🔧Claude Code

タイムライン

作成2026年4月9日
最終更新2026年8月5日
🎁 Agent 知識カード
アンケート