[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M76SDYTMMEMADCAVSXRS40HG":3,"skill-same:01M76SDYTMMEMADCAVSXRS40HG":46},{"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":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":14,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":6,"updatedAt":31,"install":32,"resources":45},"01M76SDYTMMEMADCAVSXRS40HG","mtp-hot-reload",null,"Suggests using Microsoft Testing Platform (MTP) hot reload to iterate fixes on failing tests without rebuilding. Use when user says \"hot reload tests\", \"iterate on test fix\", \"run tests without rebuilding\", \"speed up test loop\", \"fix test faster\", or needs to set up MTP hot reload to rapidly iterate on test failures. Covers setup (NuGet package, environment variable, launchSettings.json) and the iterative workflow for fixing tests. DO NOT USE FOR: writing test code, diagnosing test failures, running tests normally with dotnet test (use run-tests), applying test filters, producing TRX reports, CI\u002FCD pipeline configuration, or Visual Studio Test Explorer hot reload (which is a different feature).","weiflycc-cmd\u002Fskills","weiflycc-cmd","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F250846518?v=4","01M756C4PFGZJWKK04WFB9S5XF","威飛工作室","01M756C4QJJ66QDXN2RN6SXY87",0,"MIT","https:\u002F\u002Fgithub.com\u002Fweiflycc-cmd\u002Fskills\u002Fblob\u002Fmain\u002Fplugins\u002Fdotnet-test\u002Fskills\u002Fmtp-hot-reload\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: mtp-hot-reload\ndescription: >\n  Suggests using Microsoft Testing Platform (MTP) hot reload to iterate fixes\n  on failing tests without rebuilding. Use when user says \"hot reload tests\",\n  \"iterate on test fix\", \"run tests without rebuilding\", \"speed up test loop\",\n  \"fix test faster\", or needs to set up MTP hot reload to rapidly iterate on\n  test failures. Covers setup (NuGet package, environment variable,\n  launchSettings.json) and the iterative workflow for fixing tests.\n  DO NOT USE FOR: writing test code, diagnosing test failures, running tests\n  normally with dotnet test (use run-tests), applying test filters, producing\n  TRX reports, CI\u002FCD pipeline configuration, or Visual Studio Test Explorer\n  hot reload (which is a different feature).\nlicense: MIT\n---\n\n# MTP Hot Reload for Iterative Test Fixing\n\nSet up and use Microsoft Testing Platform hot reload to rapidly iterate fixes on failing tests without rebuilding between each change.\n\n## When to Use\n\n- User has one or more failing tests and wants to iterate fixes quickly\n- User wants to avoid rebuild overhead while fixing test code or production code\n- User asks about hot reload for tests or speeding up the test-fix loop\n- User needs to set up MTP hot reload in their project\n\n## When Not to Use\n\n- User needs to write new tests from scratch (use general coding assistance)\n- User needs to diagnose why a test is failing (use diagnostic skills)\n- User wants Visual Studio Test Explorer hot reload (different feature, built into VS)\n- Project uses VSTest -- hot reload requires Microsoft Testing Platform (MTP)\n- User needs CI\u002FCD pipeline configuration\n\n## Inputs\n\n| Input | Required | Description |\n|-------|----------|-------------|\n| Test project path | No | Path to the test project (.csproj). Defaults to current directory. |\n| Failing test name or filter | No | Specific test(s) to iterate on |\n\n## Workflow\n\n### Step 1: Verify the project uses Microsoft Testing Platform\n\nHot reload requires MTP. It does **not** work with VSTest.\n\nFollow the detection procedure in the `platform-detection` skill to determine the test platform.\n\nIf the project uses VSTest, inform the user that MTP hot reload is not available and suggest migrating to MTP first (see `migrate-vstest-to-mtp`), or using Visual Studio's built-in Test Explorer hot reload feature instead.\n\n### Step 2: Add the hot reload NuGet package\n\nInstall the `Microsoft.Testing.Extensions.HotReload` package:\n\n```shell\ndotnet add \u003Cproject-path> package Microsoft.Testing.Extensions.HotReload\n```\n\n> **Note**: When using `Microsoft.Testing.Platform.MSBuild` (included transitively by MSTest, NUnit, and xUnit runners), the extension is auto-registered when you install its NuGet package -- no code changes needed.\n\n### Step 3: Enable hot reload\n\nHot reload is activated by setting the `TESTINGPLATFORM_HOTRELOAD_ENABLED` environment variable to `1`.\n\n**Option A -- Set it in the shell before running tests:**\n\n```shell\n# PowerShell\n$env:TESTINGPLATFORM_HOTRELOAD_ENABLED = \"1\"\n\n# bash\u002Fzsh\nexport TESTINGPLATFORM_HOTRELOAD_ENABLED=1\n```\n\n**Option B -- Add it to `launchSettings.json` (recommended for repeatable use):**\n\nCreate or update `Properties\u002FlaunchSettings.json` in the test project:\n\n```json\n{\n  \"profiles\": {\n    \"\u003CProjectName>\": {\n      \"commandName\": \"Project\",\n      \"environmentVariables\": {\n        \"TESTINGPLATFORM_HOTRELOAD_ENABLED\": \"1\"\n      }\n    }\n  }\n}\n```\n\n### Step 4: Run the tests with hot reload\n\nRun the test project directly (not through `dotnet test`) to use hot reload in console mode:\n\n```shell\ndotnet run --project \u003Cproject-path>\n```\n\nTo filter to specific failing tests, pass the filter after `--`. The syntax depends on the test framework -- see the `filter-syntax` skill for full details. Quick examples:\n\n| Framework | Filter syntax |\n|-----------|--------------|\n| MSTest | `dotnet run --project \u003Cpath> -- --filter \"FullyQualifiedName~TestMethodName\"` |\n| NUnit | `dotnet run --project \u003Cpath> -- --filter \"FullyQualifiedName~TestMethodName\"` |\n| xUnit v3 | `dotnet run --project \u003Cpath> -- --filter-method \"*TestMethodName\"` |\n| TUnit | `dotnet run --project \u003Cpath> -- --treenode-filter \"\u002F*\u002F*\u002FClassName\u002FTestMethodName\"` |\n\nThe test host will start, run the tests, and **remain running** waiting for code changes.\n\n### Step 5: Iterate on the fix\n\n1. Edit the source code (test code or production code) in your editor\n2. The test host detects the changes and re-runs the affected tests automatically\n3. Review the updated results in the console\n4. Repeat until all targeted tests pass\n\n> **Important**: Hot reload currently works in **console mode only**. There is no support for hot reload in Test Explorer for Visual Studio or Visual Studio Code.\n\n### Step 6: Finalize\n\nOnce all tests pass:\n\n1. Stop the test host (Ctrl+C)\n2. Run a full `dotnet test` to confirm all tests pass with a clean build\n3. Optionally remove `TESTINGPLATFORM_HOTRELOAD_ENABLED` from the environment or keep `launchSettings.json` for future use\n\n## Validation\n\n- [ ] Project uses Microsoft Testing Platform (not VSTest)\n- [ ] `Microsoft.Testing.Extensions.HotReload` package is installed\n- [ ] `TESTINGPLATFORM_HOTRELOAD_ENABLED` environment variable is set to `1`\n- [ ] Tests run and the host remains active waiting for changes\n- [ ] Code changes are picked up without manual restart\n\n## Common Pitfalls\n\n| Pitfall | Solution |\n|---------|----------|\n| Using `dotnet test` instead of `dotnet run` | Hot reload requires `dotnet run --project \u003Cpath>` to run the test host directly in console mode |\n| Project uses VSTest, not MTP | Hot reload requires MTP. Migrate to MTP first or use VS Test Explorer hot reload |\n| Forgetting to set the environment variable | Set `TESTINGPLATFORM_HOTRELOAD_ENABLED=1` before running |\n| Expecting Test Explorer integration | Console mode only -- no VS\u002FVS Code Test Explorer support |\n| Making unsupported code changes (rude edits) | Some changes (adding new types, changing method signatures) require a restart. Stop and re-run |\n","# MTP Hot Reload for Iterative Test Fixing\n\nSet up and use Microsoft Testing Platform hot reload to rapidly iterate fixes on failing tests without rebuilding between each change.\n\n## When to Use\n\n- User has one or more failing tests and wants to iterate fixes quickly\n- User wants to avoid rebuild overhead while fixing test code or production code\n- User asks about hot reload for tests or speeding up the test-fix loop\n- User needs to set up MTP hot reload in their project\n\n## When Not to Use\n\n- User needs to write new tests from scratch (use general coding assistance)\n- User needs to diagnose why a test is failing (use diagnostic skills)\n- User wants Visual Studio Test Explorer hot reload (different feature, built into VS)\n- Project uses VSTest -- hot reload requires Microsoft Testing Platform (MTP)\n- User needs CI\u002FCD pipeline configuration\n\n## Inputs\n\n| Input | Required | Description |\n|-------|----------|-------------|\n| Test project path | No | Path to the test project (.csproj). Defaults to current directory. |\n| Failing test name or filter | No | Specific test(s) to iterate on |\n\n## Workflow\n\n### Step 1: Verify the project uses Microsoft Testing Platform\n\nHot reload requires MTP. It does **not** work with VSTest.\n\nFollow the detection procedure in the `platform-detection` skill to determine the test platform.\n\nIf the project uses VSTest, inform the user that MTP hot reload is not available and suggest migrating to MTP first (see `migrate-vstest-to-mtp`), or using Visual Studio's built-in Test Explorer hot reload feature instead.\n\n### Step 2: Add the hot reload NuGet package\n\nInstall the `Microsoft.Testing.Extensions.HotReload` package:\n\n```shell\ndotnet add \u003Cproject-path> package Microsoft.Testing.Extensions.HotReload\n```\n\n> **Note**: When using `Microsoft.Testing.Platform.MSBuild` (included transitively by MSTest, NUnit, and xUnit runners), the extension is auto-registered when you install its NuGet package -- no code changes needed.\n\n### Step 3: Enable hot reload\n\nHot reload is activated by setting the `TESTINGPLATFORM_HOTRELOAD_ENABLED` environment variable to `1`.\n\n**Option A -- Set it in the shell before running tests:**\n\n```shell\n# PowerShell\n$env:TESTINGPLATFORM_HOTRELOAD_ENABLED = \"1\"\n\n# bash\u002Fzsh\nexport TESTINGPLATFORM_HOTRELOAD_ENABLED=1\n```\n\n**Option B -- Add it to `launchSettings.json` (recommended for repeatable use):**\n\nCreate or update `Properties\u002FlaunchSettings.json` in the test project:\n\n```json\n{\n  \"profiles\": {\n    \"\u003CProjectName>\": {\n      \"commandName\": \"Project\",\n      \"environmentVariables\": {\n        \"TESTINGPLATFORM_HOTRELOAD_ENABLED\": \"1\"\n      }\n    }\n  }\n}\n```\n\n### Step 4: Run the tests with hot reload\n\nRun the test project directly (not through `dotnet test`) to use hot reload in console mode:\n\n```shell\ndotnet run --project \u003Cproject-path>\n```\n\nTo filter to specific failing tests, pass the filter after `--`. The syntax depends on the test framework -- see the `filter-syntax` skill for full details. Quick examples:\n\n| Framework | Filter syntax |\n|-----------|--------------|\n| MSTest | `dotnet run --project \u003Cpath> -- --filter \"FullyQualifiedName~TestMethodName\"` |\n| NUnit | `dotnet run --project \u003Cpath> -- --filter \"FullyQualifiedName~TestMethodName\"` |\n| xUnit v3 | `dotnet run --project \u003Cpath> -- --filter-method \"*TestMethodName\"` |\n| TUnit | `dotnet run --project \u003Cpath> -- --treenode-filter \"\u002F*\u002F*\u002FClassName\u002FTestMethodName\"` |\n\nThe test host will start, run the tests, and **remain running** waiting for code changes.\n\n### Step 5: Iterate on the fix\n\n1. Edit the source code (test code or production code) in your editor\n2. The test host detects the changes and re-runs the affected tests automatically\n3. Review the updated results in the console\n4. Repeat until all targeted tests pass\n\n> **Important**: Hot reload currently works in **console mode only**. There is no support for hot reload in Test Explorer for Visual Studio or Visual Studio Code.\n\n### Step 6: Finalize\n\nOnce all tests pass:\n\n1. Stop the test host (Ctrl+C)\n2. Run a full `dotnet test` to confirm all tests pass with a clean build\n3. Optionally remove `TESTINGPLATFORM_HOTRELOAD_ENABLED` from the environment or keep `launchSettings.json` for future use\n\n## Validation\n\n- [ ] Project uses Microsoft Testing Platform (not VSTest)\n- [ ] `Microsoft.Testing.Extensions.HotReload` package is installed\n- [ ] `TESTINGPLATFORM_HOTRELOAD_ENABLED` environment variable is set to `1`\n- [ ] Tests run and the host remains active waiting for changes\n- [ ] Code changes are picked up without manual restart\n\n## Common Pitfalls\n\n| Pitfall | Solution |\n|---------|----------|\n| Using `dotnet test` instead of `dotnet run` | Hot reload requires `dotnet run --project \u003Cpath>` to run the test host directly in console mode |\n| Project uses VSTest, not MTP | Hot reload requires MTP. Migrate to MTP first or use VS Test Explorer hot reload |\n| Forgetting to set the environment variable | Set `TESTINGPLATFORM_HOTRELOAD_ENABLED=1` before running |\n| Expecting Test Explorer integration | Console mode only -- no VS\u002FVS Code Test Explorer support |\n| Making unsupported code changes (rude edits) | Some changes (adding new types, changing method signatures) require a restart. Stop and re-run |\n",{"name":5,"license":15,"description":24},"Suggests using Microsoft Testing Platform (MTP) hot reload to iterate fixes on failing tests without rebuilding. Use when user says \"hot reload tests\", \"iterate on test fix\", \"run tests without rebuilding\", \"speed up test loop\", \"fix test faster\", or needs to set up MTP hot reload to rapidly iterate on test failures. Covers setup (NuGet package, environment variable, launchSettings.json) and the iterative workflow for fixing tests. DO NOT USE FOR: writing test code, diagnosing test failures, running tests normally with dotnet test (use run-tests), applying test filters, producing TRX reports, CI\u002FCD pipeline configuration, or Visual Studio Test Explorer hot reload (which is a different feature).\n","main","5810d492c9b301d8227f932bf87b5c954c4fa4d6","plugins\u002Fdotnet-test\u002Fskills\u002Fmtp-hot-reload","https:\u002F\u002Fgithub.com\u002Fweiflycc-cmd\u002Fskills","https:\u002F\u002Fgithub.com\u002Fweiflycc-cmd","weiflycc.com","2026-11-10 03:26:55",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add weiflycc-cmd\u002Fskills --skill mtp-hot-reload",{"tool":38,"command":39},"bunx","bunx skills add weiflycc-cmd\u002Fskills --skill mtp-hot-reload",{"tool":41,"command":42},"pnpm","pnpm dlx skills add weiflycc-cmd\u002Fskills --skill mtp-hot-reload","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fweiflycc-cmd\u002Fskills\u002Fblob\u002Fmain\u002Fplugins\u002Fdotnet-test\u002Fskills\u002Fmtp-hot-reload\u002FSKILL.md",true,[],[47,54,61,68,75,82],{"skillNo":48,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":19},"01M76SGT4WG5682JQJ0V3NSK6X","system-text-json-net11","Provides guidance on new System.Text.Json APIs introduced in .NET 11. It covers typed JsonTypeInfo access via GetTypeInfo\u003CT> and TryGetTypeInfo\u003CT> on JsonSerializerOptions, and the new JsonNamingPolicy.PascalCase static property. Use when serializing or deserializing JSON in .NET 11 applications and needing typed metadata access or PascalCase property naming.","https:\u002F\u002Fgithub.com\u002Fweiflycc-cmd\u002Fskills\u002Fblob\u002Fmain\u002Fplugins\u002Fdotnet11\u002Fskills\u002Fsystem-text-json-net11\u002FSKILL.md",[],[],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":19},"01M76SGPNZYYV9BCZJW7BF7J8A","nuget-trusted-publishing","Set up NuGet trusted publishing (OIDC) on a GitHub Actions repo — replaces long-lived API keys with short-lived tokens. USE FOR: trusted publishing, NuGet OIDC, keyless NuGet publish, migrate from NuGet API key, NuGet\u002Flogin, secure NuGet publishing. DO NOT USE FOR: publishing to private feeds or Azure Artifacts (OIDC is nuget.org only). INVOKES: shell (powershell or bash), edit, create, ask_user for guided repo setup.","https:\u002F\u002Fgithub.com\u002Fweiflycc-cmd\u002Fskills\u002Fblob\u002Fmain\u002Fplugins\u002Fdotnet\u002Fskills\u002Fnuget-trusted-publishing\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M76SGHVNBNVM1DMVDYTMAE5G","dotnet-pinvoke","Correctly call native (C\u002FC++) libraries from .NET using P\u002FInvoke and LibraryImport. Covers function signatures, string marshalling, memory lifetime, SafeHandle, and cross-platform patterns. USE FOR: writing new P\u002FInvoke or LibraryImport declarations, reviewing or debugging existing native interop code, wrapping a C or C++ library for use in .NET, diagnosing crashes, memory leaks, or corruption at the managed\u002Fnative boundary. DO NOT USE FOR: COM interop, C++\u002FCLI mixed-mode assemblies, or pure managed code with no native dependencies.","https:\u002F\u002Fgithub.com\u002Fweiflycc-cmd\u002Fskills\u002Fblob\u002Fmain\u002Fplugins\u002Fdotnet\u002Fskills\u002Fdotnet-pinvoke\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M76SGDB9Z3GSB1CFW314NC84","csharp-scripts","Run file-based C# apps with the .NET CLI when the user explicitly wants C#\u002F.NET code without creating a project. Use for C# language\u002FAPI experiments, one-file C# apps, small multi-file C# apps composed with `#:include`\u002F`#:exclude`, or C# file-based apps linked with `#:ref`. Do not use for language-agnostic throwaway scripts, generic computations, Python\u002FPowerShell-style automation, full projects, or existing app integration.","https:\u002F\u002Fgithub.com\u002Fweiflycc-cmd\u002Fskills\u002Fblob\u002Fmain\u002Fplugins\u002Fdotnet\u002Fskills\u002Fcsharp-scripts\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M76SG805T8W764WAKB1NP3CJ","thread-abort-migration","Guides migration of .NET Framework Thread.Abort usage to cooperative cancellation in modern .NET. USE FOR: modernizing code that calls Thread.Abort, catching ThreadAbortException, replacing Thread.ResetAbort, replacing Thread.Interrupt for thread termination, resolving PlatformNotSupportedException or SYSLIB0006 after retargeting to .NET 6+, migrating ASP.NET Response.End or Response.Redirect(url, true) which internally call Thread.Abort. DO NOT USE FOR: code that only uses Thread.Join, Thread.Sleep, or Thread.Start without any abort, interrupt, or ThreadAbortException usage — these APIs work identically in modern .NET and need no migration. Also not for projects staying on .NET Framework, or Thread.Abort usage inside third-party libraries you do not control.","https:\u002F\u002Fgithub.com\u002Fweiflycc-cmd\u002Fskills\u002Fblob\u002Fmain\u002Fplugins\u002Fdotnet-upgrade\u002Fskills\u002Fthread-abort-migration\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M76SG2588ZJBE5C51HYJJSKV","migrate-nullable-references","Enable nullable reference types in a C# project and systematically resolve all warnings. USE FOR: adopting NRTs in existing codebases, file-by-file or project-wide migration, fixing CS8602\u002FCS8618\u002FCS86xx warnings, annotating APIs for nullability, cleaning up null-forgiving operators, upgrading dependencies with new nullable annotations. DO NOT USE FOR: projects already fully migrated with zero warnings (unless auditing suppressions), fixing a handful of nullable warnings in code that already has NRTs enabled, suppressing warnings without fixing them, C# 7.3 or earlier projects. INVOKES: Get-NullableReadiness.ps1 scanner script.","https:\u002F\u002Fgithub.com\u002Fweiflycc-cmd\u002Fskills\u002Fblob\u002Fmain\u002Fplugins\u002Fdotnet-upgrade\u002Fskills\u002Fmigrate-nullable-references\u002FSKILL.md",[],[]]