Use when making code changes to ensure they pass VS Code's hygiene checks. Covers the pre-commit hook, unicode restrictions, string quoting rules, copyright headers, indentation, formatting, ESLint, and stylelint. Run the hygiene check before declaring work complete.
复制安装指令,让 AI 自动完成配置 · 推荐新手
请帮我安装 askskill 上的 "hygiene" 技能: 1. 下载 https://raw.githubusercontent.com/microsoft/vscode/main/.github/skills/hygiene/SKILL.md 2. 保存为 ~/.claude/skills/hygiene/SKILL.md 3. 装好后重载技能,告诉我可以用了
VS Code runs a hygiene check as a git pre-commit hook. Commits will be rejected if hygiene fails.
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
The hygiene linter scans staged files for issues including (but not limited to):
// allow-any-unicode-next-line or // allow-any-unicode-comment-file."double quotes" for externalized (localized) strings. Use 'single quotes' everywhere else.Format Document to fix).为 AI 编码助手生成或更新聊天定制配置文件,统一协作与开发体验
将当前会话分支的修改合并回基础分支,便于整合开发成果。
帮助开发者创建和维护组件截图测试夹具,并优化组件的可测试性。
在隔离环境启动 VS Code OSS,便于联动自动化操作与多进程调试。
用于在聊天自定义编辑器中配置和管理智能体、技能、提示词及集成组件。
帮助你定位并修复拉取请求中的 CI 检查失败问题