[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6HPR6S268H879WJT07XNBV4":3,"skill-same:01M6HPR6S268H879WJT07XNBV4":65},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":30,"linkOnly":31,"markdownContent":32,"markdownBody":33,"frontMatter":34,"refName":36,"commitSha":37,"skillDirectory":38,"forksCount":39,"repositoryHtmlUrl":40,"repositoryHomepageUrl":41,"ownerHtmlUrl":42,"ownerBlogUrl":43,"ownerDescription":44,"updatedAt":45,"install":46,"resources":58},"01M6HPR6S268H879WJT07XNBV4","update-library-template",null,"Merges the latest Library.Template into this repo (at position of HEAD) and resolves conflicts.","microsoft\u002Fvs-mef","microsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6154722?v=4","01M698VYDXZ6JW5WH3CRV650R8","Microsoft","01M6HPQYR3V0KE6MHFYSM9NJKX",469,"MIT","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fvs-mef\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fupdate-library-template\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29],"update library template","update","library","template","repo","conflicts","head","position","true","latest","at","2026-11-10 10:12:30",false,"---\nname: update-library-template\ndescription: Merges the latest Library.Template into this repo (at position of HEAD) and resolves conflicts.\ndisable-model-invocation: true\n---\n\n# Instructions\n\n1. Run `.\u002Ftools\u002FMergeFrom-Template.ps1` from the repo root.\n2. Resolve merge conflicts, taking into account conflict resolution policy below.\n3. Validate the changes, as described in the validation section below.\n4. Committing your changes (if applicable).\n\n## Conflict resolution policy\n\nThere may be [special notes](template-release-notes.md) that describe special considerations for certain files or scenarios to help you resolve conflicts appropriately.\nAlways refer to that file before proceeding.\nIn particular, focus on the *incoming* part of the file, since it represents the changes from the Library.Template that you are merging into your repo.\n\nAlso consider that some repos choose to reject certain Library.Template patterns.\nFor example the template uses MTPv2 for test projects, but a repo might have chosen not to adopt that.\nWhen resolving merge conflicts, consider whether it looks like the relevant code file is older than it should be given the changes the template is bringing in.\nAsk the user when in doubt as to whether the conflict should be resolved in favor of 'catching up' with the template or keeping the current changes.\n\nUse #runSubagent to analyze and resolve merge conflicts across files in parallel.\n\n### Keep Current files\n\nConflicts in the following files should always be resolved by keeping the current version (i.e. discard incoming changes):\n\n* README.md\n\n### Test framework docs, scripts, and packages\n\nLibrary.Template's `AGENTS.md`, test docs, and `tools\u002Fdotnet-test-cloud.ps1` assume **TUnit** on Microsoft.Testing.Platform.\nMany consumers still use **xunit v3 + MTP**, classic **VSTest xunit**, or hybrid setups (including xunit *extension* libraries such as Xunit.StaFact \u002F Xunit.SkippableFact \u002F Xunit.Combinatorial, whose own tests must stay on xunit).\n\nWhen merging:\n\n* Prefer the template only where the consumer's prior content was **equivalent**. Do not overwrite repo-specific behavior with template placeholders or TUnit-only defaults.\n* Keep framework-specific **AGENTS.md** (and similar agent\u002Fcontributor docs): filter syntax (`--filter-method` \u002F `--filter-not-trait` vs `--treenode-filter`), FailsInCloudTest \u002F FailureExpected exclusions, real test project paths, and `--framework` TFMs that match the repo's test projects.\n* Keep bespoke **`tools\u002Fdotnet-test-cloud.ps1`** logic when it is not equivalent to the template (per-project loops, NonTUnit vs TUnit splits, MultiRID\u002FNativeAOT discovery, hang\u002Fblame timeouts, coverage naming, custom filters). Graft genuine template improvements (for example `IncludeNativeAOT` + `Get-NativeAOTTestProjects.ps1`) onto the repo script only when they fit.\n* Do not add unused template **PackageVersion** entries (`TUnit.Engine`, `xunit.v3.assert.aot`, etc.) to `Directory.Packages.props` unless a project in the repo actually references them (or Central Package Management truly requires them).\n* Preserve repo-specific Azure Pipelines \u002F GitHub Actions build steps that the template lacks equivalents for (for example full **MSBuild@1** on Windows for `net35`, `IncompleteBuild` as `warnNotAsError`).\n\n### Traversal coverage, placeholders, and non-test projects\n\n* `GitVersionBaseDirectory` in the template's `Directory.Build.props` assumes the repo has exactly one `version.json`. If the repo has nested `version.json` files (typically for analyzer or source generator projects that need `assemblyVersion` precision `revision`), the repo has deliberately removed or must not have that property. Never re-add it during a merge; keep the repo's first-parent state.\n* `init.ps1` and CI restore and build only `tools\u002Fdirs.proj`. If the solution contains projects outside `src` and `test` (for example `samples\u002F` or `benchmark\u002F`), add them to `tools\u002Fdirs.proj` (with `Pack=\"false\"` and\u002For `Publish=\"false\"` as appropriate) so they are still restored and compiled. Otherwise `dotnet format --no-restore` and sample regressions go unnoticed.\n* `test\u002FDirectory.Build.props` marks every project under `test` as a test project. Set `\u003CIsTestProject>false\u003C\u002FIsTestProject>` on non-test executables there (for example BenchmarkDotNet projects) so they are not run by `dotnet test` or picked up by NativeAOT test discovery.\n* After the merge, search `CONTRIBUTING.md`, `AGENTS.md`, and source headers for template placeholders such as `test\u002FLibrary.Tests\u002FLibrary.Tests.csproj`, the company-name placeholder token that `Expand-Template.ps1` replaces with the author, and the template's `net8.0` examples, and replace them with the repo's real project paths, metadata, and NativeAOT-enabled frameworks.\n* If the repo already publishes NativeAOT tests through its own mechanism (for example `MultiRIDProjectReference` items in `test\u002Fdirs.proj`), either keep that mechanism and disable the template's discovery (`PublishNativeAOTTests=false`, and drop or don't wire up `Get-NativeAOTTestProjects.ps1`), or replace it fully. Don't leave both half-wired, and update `CONTRIBUTING.md` to describe whichever one the repo actually uses.\n\n\n### Deleted files\n\nVery typically, when the incoming change is to a file that was deleted locally, the correct resolution is to re-delete the file.\n\nIn some cases however, the deleted file may have incoming changes that should be applied to other files.\nThe `test\u002FLibrary.Tests\u002FLibrary.Tests.csproj` file is very typical of this.\nChanges to this file should very typically be applied to any and all test projects in the repo.\nYou are responsible for doing this in addition to re-deleting this template file.\n\n## Updating package and SDK versions\n\nAfter the merge, always check global.json for MSBuild Sdks with names starting with `Microsoft.VisualStudio.Internal.MicroBuild`.\nThese SDK versions should match the value of the `MicroBuildVersion` property found in `Directory.Packages.props`.\nAlways take the latest of the versions you see among these SDKs and the `MicroBuildVersion` property.\n\n## Validation\n\nValidate the merge result (after resolving any conflicts, if applicable).\nUse #runSubagent for each step.\n\n1. Verify that `dotnet restore` succeeds. Fix any issues that come up.\n2. Verify that `dotnet build` succeeds.\n3. Verify that tests succeed by running `tools\u002Fdotnet-test-cloud.ps1`.\n\nWhile these validations are described using `dotnet` CLI commands, some repos require using full msbuild.exe.\nYou can detect this by checking the `azure-pipelines\u002Fdotnet.yml` or `.github\u002Fworkflows\u002Fbuild.yml` files for use of one or the other tool.\n\nYou are *not* responsible for fixing issues that the merge did not cause.\nIf validation fails for reasons that seem unrelated to the changes brought in by the merge, advise the user and ask how they'd like you to proceed.\nThat said, sometimes merges will bring in SDK or dependency updates that can cause breaks in seemingly unrelated areas.\nIn such cases, you should investigate and solve the issues as needed.\n\n## Committing your changes\n\nIf you have to make any changes for validations to pass, consider whether they qualify as a bad merge conflict resolution or more of a novel change that you're making to work with the Library.Template update.\nMerge conflict resolution fixes ideally get amended into the merge commit, while novel changes would go into a novel commit after the merge commit.\n\nAlways author your commits using `git commit --author \"? Copilot \u003Cno-reply@github.com>\"` (and possibly other parameters).\nDescribe the nature of the merge conflicts you encountered and how you resolved them in your commit message.\n\nLater, if asked to review pull request validation breaks, always author a fresh commit with each fix that you push, unless the user directs you to do otherwise.\n","# Instructions\n\n1. Run `.\u002Ftools\u002FMergeFrom-Template.ps1` from the repo root.\n2. Resolve merge conflicts, taking into account conflict resolution policy below.\n3. Validate the changes, as described in the validation section below.\n4. Committing your changes (if applicable).\n\n## Conflict resolution policy\n\nThere may be [special notes](template-release-notes.md) that describe special considerations for certain files or scenarios to help you resolve conflicts appropriately.\nAlways refer to that file before proceeding.\nIn particular, focus on the *incoming* part of the file, since it represents the changes from the Library.Template that you are merging into your repo.\n\nAlso consider that some repos choose to reject certain Library.Template patterns.\nFor example the template uses MTPv2 for test projects, but a repo might have chosen not to adopt that.\nWhen resolving merge conflicts, consider whether it looks like the relevant code file is older than it should be given the changes the template is bringing in.\nAsk the user when in doubt as to whether the conflict should be resolved in favor of 'catching up' with the template or keeping the current changes.\n\nUse #runSubagent to analyze and resolve merge conflicts across files in parallel.\n\n### Keep Current files\n\nConflicts in the following files should always be resolved by keeping the current version (i.e. discard incoming changes):\n\n* README.md\n\n### Test framework docs, scripts, and packages\n\nLibrary.Template's `AGENTS.md`, test docs, and `tools\u002Fdotnet-test-cloud.ps1` assume **TUnit** on Microsoft.Testing.Platform.\nMany consumers still use **xunit v3 + MTP**, classic **VSTest xunit**, or hybrid setups (including xunit *extension* libraries such as Xunit.StaFact \u002F Xunit.SkippableFact \u002F Xunit.Combinatorial, whose own tests must stay on xunit).\n\nWhen merging:\n\n* Prefer the template only where the consumer's prior content was **equivalent**. Do not overwrite repo-specific behavior with template placeholders or TUnit-only defaults.\n* Keep framework-specific **AGENTS.md** (and similar agent\u002Fcontributor docs): filter syntax (`--filter-method` \u002F `--filter-not-trait` vs `--treenode-filter`), FailsInCloudTest \u002F FailureExpected exclusions, real test project paths, and `--framework` TFMs that match the repo's test projects.\n* Keep bespoke **`tools\u002Fdotnet-test-cloud.ps1`** logic when it is not equivalent to the template (per-project loops, NonTUnit vs TUnit splits, MultiRID\u002FNativeAOT discovery, hang\u002Fblame timeouts, coverage naming, custom filters). Graft genuine template improvements (for example `IncludeNativeAOT` + `Get-NativeAOTTestProjects.ps1`) onto the repo script only when they fit.\n* Do not add unused template **PackageVersion** entries (`TUnit.Engine`, `xunit.v3.assert.aot`, etc.) to `Directory.Packages.props` unless a project in the repo actually references them (or Central Package Management truly requires them).\n* Preserve repo-specific Azure Pipelines \u002F GitHub Actions build steps that the template lacks equivalents for (for example full **MSBuild@1** on Windows for `net35`, `IncompleteBuild` as `warnNotAsError`).\n\n### Traversal coverage, placeholders, and non-test projects\n\n* `GitVersionBaseDirectory` in the template's `Directory.Build.props` assumes the repo has exactly one `version.json`. If the repo has nested `version.json` files (typically for analyzer or source generator projects that need `assemblyVersion` precision `revision`), the repo has deliberately removed or must not have that property. Never re-add it during a merge; keep the repo's first-parent state.\n* `init.ps1` and CI restore and build only `tools\u002Fdirs.proj`. If the solution contains projects outside `src` and `test` (for example `samples\u002F` or `benchmark\u002F`), add them to `tools\u002Fdirs.proj` (with `Pack=\"false\"` and\u002For `Publish=\"false\"` as appropriate) so they are still restored and compiled. Otherwise `dotnet format --no-restore` and sample regressions go unnoticed.\n* `test\u002FDirectory.Build.props` marks every project under `test` as a test project. Set `\u003CIsTestProject>false\u003C\u002FIsTestProject>` on non-test executables there (for example BenchmarkDotNet projects) so they are not run by `dotnet test` or picked up by NativeAOT test discovery.\n* After the merge, search `CONTRIBUTING.md`, `AGENTS.md`, and source headers for template placeholders such as `test\u002FLibrary.Tests\u002FLibrary.Tests.csproj`, the company-name placeholder token that `Expand-Template.ps1` replaces with the author, and the template's `net8.0` examples, and replace them with the repo's real project paths, metadata, and NativeAOT-enabled frameworks.\n* If the repo already publishes NativeAOT tests through its own mechanism (for example `MultiRIDProjectReference` items in `test\u002Fdirs.proj`), either keep that mechanism and disable the template's discovery (`PublishNativeAOTTests=false`, and drop or don't wire up `Get-NativeAOTTestProjects.ps1`), or replace it fully. Don't leave both half-wired, and update `CONTRIBUTING.md` to describe whichever one the repo actually uses.\n\n\n### Deleted files\n\nVery typically, when the incoming change is to a file that was deleted locally, the correct resolution is to re-delete the file.\n\nIn some cases however, the deleted file may have incoming changes that should be applied to other files.\nThe `test\u002FLibrary.Tests\u002FLibrary.Tests.csproj` file is very typical of this.\nChanges to this file should very typically be applied to any and all test projects in the repo.\nYou are responsible for doing this in addition to re-deleting this template file.\n\n## Updating package and SDK versions\n\nAfter the merge, always check global.json for MSBuild Sdks with names starting with `Microsoft.VisualStudio.Internal.MicroBuild`.\nThese SDK versions should match the value of the `MicroBuildVersion` property found in `Directory.Packages.props`.\nAlways take the latest of the versions you see among these SDKs and the `MicroBuildVersion` property.\n\n## Validation\n\nValidate the merge result (after resolving any conflicts, if applicable).\nUse #runSubagent for each step.\n\n1. Verify that `dotnet restore` succeeds. Fix any issues that come up.\n2. Verify that `dotnet build` succeeds.\n3. Verify that tests succeed by running `tools\u002Fdotnet-test-cloud.ps1`.\n\nWhile these validations are described using `dotnet` CLI commands, some repos require using full msbuild.exe.\nYou can detect this by checking the `azure-pipelines\u002Fdotnet.yml` or `.github\u002Fworkflows\u002Fbuild.yml` files for use of one or the other tool.\n\nYou are *not* responsible for fixing issues that the merge did not cause.\nIf validation fails for reasons that seem unrelated to the changes brought in by the merge, advise the user and ask how they'd like you to proceed.\nThat said, sometimes merges will bring in SDK or dependency updates that can cause breaks in seemingly unrelated areas.\nIn such cases, you should investigate and solve the issues as needed.\n\n## Committing your changes\n\nIf you have to make any changes for validations to pass, consider whether they qualify as a bad merge conflict resolution or more of a novel change that you're making to work with the Library.Template update.\nMerge conflict resolution fixes ideally get amended into the merge commit, while novel changes would go into a novel commit after the merge commit.\n\nAlways author your commits using `git commit --author \"? Copilot \u003Cno-reply@github.com>\"` (and possibly other parameters).\nDescribe the nature of the merge conflicts you encountered and how you resolved them in your commit message.\n\nLater, if asked to review pull request validation breaks, always author a fresh commit with each fix that you push, unless the user directs you to do otherwise.\n",{"name":5,"description":7,"disable-model-invocation":35},true,"main","2d65fb153cd9287ce9721423f6769d484f000489",".agents\u002Fskills\u002Fupdate-library-template",93,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fvs-mef","https:\u002F\u002Fmicrosoft.github.io\u002Fvs-mef\u002F","https:\u002F\u002Fgithub.com\u002Fmicrosoft","https:\u002F\u002Fopensource.microsoft.com","Open source projects and samples from Microsoft","2026-11-14 09:10:34",{"source":8,"skillName":5,"commands":47,"prompt":57,"zipAvailable":35},[48,51,54],{"tool":49,"command":50},"npx","npx skills add microsoft\u002Fvs-mef --skill update-library-template",{"tool":52,"command":53},"bunx","bunx skills add microsoft\u002Fvs-mef --skill update-library-template",{"tool":55,"command":56},"pnpm","pnpm dlx skills add microsoft\u002Fvs-mef --skill update-library-template","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fvs-mef\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fupdate-library-template\u002FSKILL.md",[59],{"path":60,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":63,"sourceHtmlUrl":64},"template-release-notes.md","REFERENCE","参考文档",7629,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fvs-mef\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fupdate-library-template\u002Ftemplate-release-notes.md",[66,85],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":77,"publishedAt":30},"01M6HPR3V9ZJBQ2888X232M1KA","testing","Provides guidance and instructions for writing, running and filtering tests.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fvs-mef\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ftesting\u002FSKILL.md",[72],{"categoryNo":73,"categoryName":74,"taxonomyType":75,"taxonomyTypeDesc":76},"01JBSEEDCAT000000000000008","测试与质量","SCENARIO","使用场景",[68,78,79,80,81,82,83,84],"false","writing","filtering","tests","guidance","instructions","for",{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":30},"01M6HPR0XE3X98A1BN5SX9FN7G","bundle-dependency-prs","Fix broken dependency update PRs and aggregate the ones that work into one PR.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fvs-mef\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fbundle-dependency-prs\u002FSKILL.md",[],[92,93,94,27,95,20,96,97,98,99],"bundle dependency prs","bundle","dependency","fix","dependency update","pr","work","broken"]