[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M69AP1H7465VYNYGZA7RSAMW":3,"skill-same:01M69AP1H7465VYNYGZA7RSAMW":77},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":47,"linkOnly":48,"markdownContent":49,"markdownBody":50,"frontMatter":51,"refName":53,"commitSha":54,"skillDirectory":55,"forksCount":56,"repositoryHtmlUrl":57,"repositoryHomepageUrl":58,"ownerHtmlUrl":59,"ownerBlogUrl":60,"ownerDescription":61,"updatedAt":62,"install":63,"resources":76},"01M69AP1H7465VYNYGZA7RSAMW","run-pre-commit-checks","代码提交前(pre-commit)检查","Run the mandatory pre-commit checks before committing code. Includes lint, type checking, and unit tests. MUST be run before every commit.","在提交代码前运行强制性的 pre-commit 检查，包括 lint（代码规范检查）、类型检查和单元测试。每次提交前都必须运行。","microsoft\u002Fvscode-python-environments","microsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6154722?v=4","01M698VYDXZ6JW5WH3CRV650R8","Microsoft","01M69ANKH8QP6PYCYYVP4340EX",147,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fvscode-python-environments\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Frun-pre-commit-checks\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BR5V701HCN066VEP7H4812","代码仓库协作管理","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],"commit","run pre commit checks","run","pre commit checks","pre commit","unit tests","lint","code","issues","pre-commit","fix","auto","tests","type","unit","auto-fix","2026-11-10 10:12:30",false,"---\nname: run-pre-commit-checks\ndescription: Run the mandatory pre-commit checks before committing code. Includes lint, type checking, and unit tests. MUST be run before every commit.\nargument-hint: '--fix to auto-fix lint issues'\n---\n\n# Run Pre-Commit Checks\n\nThis skill defines the mandatory checks that must pass before any commit.\n\n## When to Use\n\n- **ALWAYS** before committing code changes\n- After fixing reviewer or Copilot review comments\n- Before pushing changes\n- When the maintainer agent requests pre-commit validation\n\n## Required Checks\n\nAll three checks must pass before committing:\n\n### 1. Lint Check (Required)\n\n```powershell\nnpm run lint\n```\n\n**What it checks:**\n\n- ESLint rules defined in `eslint.config.mjs`\n- TypeScript-specific linting rules\n- Import ordering and unused imports\n- Code style consistency\n\n**To auto-fix issues:**\n\n```powershell\nnpm run lint -- --fix\n```\n\n### 2. Type Check (Required)\n\n```powershell\nnpm run compile-tests\n```\n\n**What it checks:**\n\n- TypeScript type errors\n- Missing imports\n- Type mismatches\n- Strict null checks\n\n**Output location:** `out\u002F` directory (not used for production)\n\n### 3. Unit Tests (Required)\n\n```powershell\nnpm run unittest\n```\n\n**What it checks:**\n\n- All unit tests in `src\u002Ftest\u002F` pass\n- Tests run with Mocha framework\n- Uses configuration from `build\u002F.mocha.unittests.json`\n\n## Full Pre-Commit Workflow\n\n```powershell\n# Run all checks in sequence\nnpm run lint\nnpm run compile-tests\nnpm run unittest\n\n# If all pass, commit\ngit add -A\ngit commit -m \"feat: your change description (Fixes #N)\"\n```\n\n## Common Failures and Fixes\n\n### ESLint Errors\n\n| Error                                | Fix                                                    |\n| ------------------------------------ | ------------------------------------------------------ |\n| `@typescript-eslint\u002Fno-unused-vars`  | Remove unused variable or prefix with `_`              |\n| `import\u002Forder`                       | Run `npm run lint -- --fix`                            |\n| `@typescript-eslint\u002Fno-explicit-any` | Add proper type annotation                             |\n| `no-console`                         | Use `traceLog`\u002F`traceVerbose` instead of `console.log` |\n\n### Type Errors\n\n| Error                                  | Fix                                     |\n| -------------------------------------- | --------------------------------------- |\n| `TS2339: Property does not exist`      | Check property name or add type guard   |\n| `TS2345: Argument type not assignable` | Check function parameter types          |\n| `TS2322: Type not assignable`          | Add type assertion or fix type mismatch |\n| `TS18048: possibly undefined`          | Add null check or use optional chaining |\n\n### Test Failures\n\n1. Read the test failure message carefully\n2. Check if you changed behavior that tests depend on\n3. Update tests if behavior change is intentional\n4. Fix code if behavior change is unintentional\n\n## Integration with Review Process\n\nThe maintainer agent workflow requires:\n\n```\nCode Change → Reviewer Agent → Pre-Commit Checks → Commit\n                    ↓\n              Fix Issues → Re-run Reviewer → Pre-Commit Checks\n```\n\n**Never skip pre-commit checks.** They catch:\n\n- Type errors that would break the extension\n- Style inconsistencies\n- Regressions in existing functionality\n\n## Automation Note\n\nThese checks should also be run:\n\n- By CI on every PR (automated)\n- After addressing review comments (manual trigger)\n- Before merging (automated by CI)\n\nThe hooks system can automate running lint after file edits (see `.github\u002Fhooks\u002F`).\n","# Run Pre-Commit Checks\n\nThis skill defines the mandatory checks that must pass before any commit.\n\n## When to Use\n\n- **ALWAYS** before committing code changes\n- After fixing reviewer or Copilot review comments\n- Before pushing changes\n- When the maintainer agent requests pre-commit validation\n\n## Required Checks\n\nAll three checks must pass before committing:\n\n### 1. Lint Check (Required)\n\n```powershell\nnpm run lint\n```\n\n**What it checks:**\n\n- ESLint rules defined in `eslint.config.mjs`\n- TypeScript-specific linting rules\n- Import ordering and unused imports\n- Code style consistency\n\n**To auto-fix issues:**\n\n```powershell\nnpm run lint -- --fix\n```\n\n### 2. Type Check (Required)\n\n```powershell\nnpm run compile-tests\n```\n\n**What it checks:**\n\n- TypeScript type errors\n- Missing imports\n- Type mismatches\n- Strict null checks\n\n**Output location:** `out\u002F` directory (not used for production)\n\n### 3. Unit Tests (Required)\n\n```powershell\nnpm run unittest\n```\n\n**What it checks:**\n\n- All unit tests in `src\u002Ftest\u002F` pass\n- Tests run with Mocha framework\n- Uses configuration from `build\u002F.mocha.unittests.json`\n\n## Full Pre-Commit Workflow\n\n```powershell\n# Run all checks in sequence\nnpm run lint\nnpm run compile-tests\nnpm run unittest\n\n# If all pass, commit\ngit add -A\ngit commit -m \"feat: your change description (Fixes #N)\"\n```\n\n## Common Failures and Fixes\n\n### ESLint Errors\n\n| Error                                | Fix                                                    |\n| ------------------------------------ | ------------------------------------------------------ |\n| `@typescript-eslint\u002Fno-unused-vars`  | Remove unused variable or prefix with `_`              |\n| `import\u002Forder`                       | Run `npm run lint -- --fix`                            |\n| `@typescript-eslint\u002Fno-explicit-any` | Add proper type annotation                             |\n| `no-console`                         | Use `traceLog`\u002F`traceVerbose` instead of `console.log` |\n\n### Type Errors\n\n| Error                                  | Fix                                     |\n| -------------------------------------- | --------------------------------------- |\n| `TS2339: Property does not exist`      | Check property name or add type guard   |\n| `TS2345: Argument type not assignable` | Check function parameter types          |\n| `TS2322: Type not assignable`          | Add type assertion or fix type mismatch |\n| `TS18048: possibly undefined`          | Add null check or use optional chaining |\n\n### Test Failures\n\n1. Read the test failure message carefully\n2. Check if you changed behavior that tests depend on\n3. Update tests if behavior change is intentional\n4. Fix code if behavior change is unintentional\n\n## Integration with Review Process\n\nThe maintainer agent workflow requires:\n\n```\nCode Change → Reviewer Agent → Pre-Commit Checks → Commit\n                    ↓\n              Fix Issues → Re-run Reviewer → Pre-Commit Checks\n```\n\n**Never skip pre-commit checks.** They catch:\n\n- Type errors that would break the extension\n- Style inconsistencies\n- Regressions in existing functionality\n\n## Automation Note\n\nThese checks should also be run:\n\n- By CI on every PR (automated)\n- After addressing review comments (manual trigger)\n- Before merging (automated by CI)\n\nThe hooks system can automate running lint after file edits (see `.github\u002Fhooks\u002F`).\n",{"name":5,"description":7,"argument-hint":52},"--fix to auto-fix lint issues","main","92c13e7942499b7608a22bf1cb86b881a90afc98",".github\u002Fskills\u002Frun-pre-commit-checks",83,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fvscode-python-environments","https:\u002F\u002Fmarketplace.visualstudio.com\u002Fitems?itemName=ms-python.vscode-python-envs","https:\u002F\u002Fgithub.com\u002Fmicrosoft","https:\u002F\u002Fopensource.microsoft.com","Open source projects and samples from Microsoft","2026-11-14 07:15:14",{"source":9,"skillName":5,"commands":64,"prompt":74,"zipAvailable":75},[65,68,71],{"tool":66,"command":67},"npx","npx skills add microsoft\u002Fvscode-python-environments --skill run-pre-commit-checks",{"tool":69,"command":70},"bunx","bunx skills add microsoft\u002Fvscode-python-environments --skill run-pre-commit-checks",{"tool":72,"command":73},"pnpm","pnpm dlx skills add microsoft\u002Fvscode-python-environments --skill run-pre-commit-checks","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fvscode-python-environments\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Frun-pre-commit-checks\u002FSKILL.md",true,[],[78,108,135,151,174,195],{"skillNo":79,"name":80,"nameZh":81,"description":82,"descriptionZh":83,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":84,"categories":85,"keywords":90,"publishedAt":47},"01M69AP5C8W366N8TDNBZA2YQ4","settings-precedence","VS Code 设置优先级规则","VS Code settings precedence rules and common pitfalls. Essential for any code that reads or writes settings. Covers getConfiguration scope, inspect() vs get(), and multi-workspace handling.","VS Code 设置优先级规则及常见陷阱。适用于任何读取或写入设置的代码。涵盖 getConfiguration 作用域、inspect() 与 get() 的区别，以及多工作区处理。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fvscode-python-environments\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fsettings-precedence\u002FSKILL.md",[86,87],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":88,"categoryName":89,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSTR9G4A4GZ0VB2DFN9490","开发环境与工具链管理",[91,92,93,94,38,95,96,97,98,99,100,101,102,103,104,105,106,107],"settings precedence","settings","review","component","file","workspace","common","Rules","get","essential","false","scope","multi","common pitfalls","pitfalls","inspect","for",{"skillNo":109,"name":110,"nameZh":111,"description":112,"descriptionZh":113,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":114,"categories":115,"keywords":122,"publishedAt":47},"01M69AP3CMT4CYDAZ6GQXCJN1D","run-smoke-tests","VS Code 扩展冒烟测试","Run smoke tests to verify extension functionality in a real VS Code environment. Use this when checking if basic features work after changes.","运行冒烟测试，在真实 VS Code 环境中验证扩展功能。在更改后检查基本功能是否正常工作时使用。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fvscode-python-environments\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Frun-smoke-tests\u002FSKILL.md",[116,119],{"categoryNo":117,"categoryName":118,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD5WG86P4AQ5GPSSKBFR","测试工程师",{"categoryNo":120,"categoryName":121,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQJH394GT47X57A9Q8G7HX","测试与质量保障",[123,124,33,125,43,38,126,127,128,129,130,131,132,133,134],"smoke tests","run smoke tests","smoke","verify","work","environment","use","basic","extension","changes","features","when",{"skillNo":136,"name":137,"nameZh":138,"description":139,"descriptionZh":140,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":141,"categories":142,"keywords":145,"publishedAt":47},"01M69ANZK45PDMWHSTKZKZTS2V","run-integration-tests","扩展组件集成测试运行","Run integration tests to verify that extension components work together correctly. Use this after modifying component interactions or event handling.","运行集成测试以验证扩展的各个组件能否正确协同工作。在修改组件交互或事件处理后使用此技能。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fvscode-python-environments\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Frun-integration-tests\u002FSKILL.md",[143,144],{"categoryNo":117,"categoryName":118,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":120,"categoryName":121,"taxonomyType":28,"taxonomyTypeDesc":29},[146,147,33,148,43,149,94,126,127,129,131,150],"integration tests","run integration tests","integration","components","event",{"skillNo":152,"name":153,"nameZh":154,"description":155,"descriptionZh":156,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":157,"categories":158,"keywords":161,"publishedAt":47},"01M69ANXP7SBRDK7TK3C54V695","run-e2e-tests","E2E 端到端测试运行","Run E2E tests to verify complete user workflows like environment discovery, creation, and selection. Use this before releases or after major changes.","运行 E2E 测试以验证完整的用户工作流（如环境的发现、创建和选择）。在发布前或进行重大变更后使用此技能。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fvscode-python-environments\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Frun-e2e-tests\u002FSKILL.md",[159,160],{"categoryNo":117,"categoryName":118,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":120,"categoryName":121,"taxonomyType":28,"taxonomyTypeDesc":29},[162,163,33,164,165,43,166,167,126,168,128,129,169,170,171,172,132,173],"run e2e tests","e2e tests","run e2e","e2e","workflows","discovery","user","releases","selection","creation","complete","environment discovery",{"skillNo":175,"name":176,"nameZh":177,"description":178,"descriptionZh":179,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":180,"categories":181,"keywords":184,"publishedAt":47},"01M69ANVY2ABDQCXJBQNBV587M","python-manager-discovery","Python 环境管理器探测","Environment manager-specific discovery patterns and known issues. Use when working on or reviewing environment discovery code for conda, poetry, pipenv, pyenv, or venv.","针对特定环境管理器的探测模式及已知问题。在编写或审查 conda、poetry、pipenv、pyenv 或 venv 的环境探测代码时使用。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fvscode-python-environments\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fpython-manager-discovery\u002FSKILL.md",[182,183],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":88,"categoryName":89,"taxonomyType":28,"taxonomyTypeDesc":29},[185,186,167,187,38,39,128,129,188,189,190,101,191,192,193,194,107,134,173],"python","python manager discovery","manager","Poetry","patterns","conda","name","pipenv","pyenv","venv",{"skillNo":196,"name":197,"nameZh":198,"description":199,"descriptionZh":200,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":201,"categories":202,"keywords":205,"publishedAt":47},"01M69ANT39TYG676Q12DAWM182","generate-snapshot","代码库健康快照生成","Generate a codebase health snapshot for technical debt tracking and planning. Analyzes git history, code complexity, debt markers, and dependencies to identify hotspots and refactoring priorities.","生成代码库健康快照，用于技术债务追踪与规划。分析 git 历史、代码复杂度、债务标记和依赖项，以识别热点区域和重构优先级。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fvscode-python-environments\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fgenerate-snapshot\u002FSKILL.md",[203,204],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[206,207,208,38,209,210,211,212,213,214,215,216,217,218,219,220,221,222,107,223],"generate snapshot","generate","snapshot","planning","git","health","refactoring","history","technical","codebase health","complexity","code complexity","priorities","dependencies","technical debt","markers","output","codebase"]