[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CVCVAY9F15VTCECMWF54PA":3,"skill-same:01M7CVCVAY9F15VTCECMWF54PA":46},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":13,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":29,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M7CVCVAY9F15VTCECMWF54PA","migrate-mstest-v1v2-to-v3",null,"Use this skill before answering or editing whenever an MSTest v1\u002Fv2 project is being upgraded or repaired for v3. Triggers include QualityTools assembly references; MSTest.TestFramework\u002FTestAdapter 1.x-2.x; \"upgrade to MSTest v3\"; comparing v1 and v2 migration paths; choosing MSTest or MSTest.Sdk; CS0411\u002FCS1503 after a v3 package bump; DataRow type mismatch, MSTEST0014, or \"Test data doesn't match method parameters\"; .testsettings\u002FLegacySettings to .runsettings; timeout changes; and net5.0 or other dropped v3 TFMs. Still use it when packages say 3.x but migration source errors or legacy settings remain. Preserve VSTest\u002FMTP. Do not use for a clean v3 project, v3-to-v4, framework conversion, or runner-only migration.","deadmade\u002Fdead-agent-skills","deadmade","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F130925709?v=4","01M7CTQ65AGYR4J9K9TX0YR9V3","01M7CTQ66B4VMJFEDZP4EKKE6K",0,"MIT","https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fopt-in\u002Fimplementation\u002Fcsharp-skills\u002Flibrary\u002Fmigrate-mstest-v1v2-to-v3\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: migrate-mstest-v1v2-to-v3\ndescription: >\n  Use this skill before answering or editing whenever an MSTest v1\u002Fv2 project\n  is being upgraded or repaired for v3. Triggers include QualityTools assembly\n  references; MSTest.TestFramework\u002FTestAdapter 1.x-2.x; \"upgrade to MSTest\n  v3\"; comparing v1 and v2 migration paths; choosing MSTest or MSTest.Sdk;\n  CS0411\u002FCS1503 after a v3 package bump; DataRow type mismatch,\n  MSTEST0014, or \"Test data doesn't match method parameters\";\n  .testsettings\u002FLegacySettings to .runsettings; timeout changes; and net5.0 or\n  other dropped v3 TFMs. Still use it when packages say 3.x but migration\n  source errors or legacy settings remain. Preserve VSTest\u002FMTP. Do not use for\n  a clean v3 project, v3-to-v4, framework conversion, or runner-only migration.\nlicense: MIT\n---\n\n# MSTest v1\u002Fv2 -> v3 Migration\n\nMigrate a test project from MSTest v1 (assembly references) or MSTest v2 (NuGet 1.x-2.x) to MSTest v3. MSTest v3 is **not binary compatible** with v1\u002Fv2 -- libraries compiled against v1\u002Fv2 must be recompiled.\n\n## First Action\n\nInspect the supplied workspace and classify v1, v2, partially migrated v3, or\nalready-complete v3 before answering. Do not search the web or answer from\nmemory first. For an edit request, continue through the requested source\nchanges and validation; for an advice request, answer directly after the\nclassification.\n\n## When to Use\n\n- Project references `Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll` (MSTest v1)\n- Project uses `MSTest.TestFramework` \u002F `MSTest.TestAdapter` NuGet 1.x or 2.x\n- Resolving build errors after updating MSTest packages from v1\u002Fv2 to v3 -- including when the packages already read 3.x and only the source or settings still need fixing\n- Replacing `.testsettings` with `.runsettings`\n- Adopting MSTest.Sdk or in-assembly parallel execution\n\n## When Not to Use\n\n- Project already on MSTest v3 with no migration-related build errors and no leftover `.testsettings` \u002F `\u003CLegacySettings>` (fully migrated)\n- Upgrading v3 to v4 -- use `migrate-mstest-v3-to-v4`\n- Migrating between frameworks (MSTest to xUnit\u002FNUnit)\n\n## Boundary Gate\n\nCheck package versions before any edit. If all MSTest references are already 3.x,\nno v1\u002Fv2-to-v3 error is reported, and no `.testsettings` or `\u003CLegacySettings>`\nremains, state that migration is complete and make no changes. A 3.x package\nversion alone does not end the migration -- leftover v1\u002Fv2-era settings files or\nbreaking-change errors are still in scope. Do not consolidate working v3 packages\ninto the metapackage. Run the existing tests only if verification was requested.\nThis overrides all steps below.\n\n## Inputs\n\n| Input | Required | Description |\n|-------|----------|-------------|\n| Project or solution path | No | The `.csproj`, `.sln`, or `.slnx` entry point. Glob the working directory for it; ask only if nothing is found or several test projects make the target ambiguous |\n| Build command | No | How to build (e.g., `dotnet build`, a repo build script). Auto-detect if not provided |\n| Test command | No | How to run tests (e.g., `dotnet test`). Auto-detect if not provided |\n\n> **Never open by asking for the project path.** A user describing their project\n> in prose is asking a question, not withholding a file -- look on disk first. If\n> there is genuinely no project file, answer for the setup they described rather\n> than replying with only a question.\n>\n> **Open the paths exactly as the search returned them.** A glob that answers\n> `.\u002FTestProject.csproj` means the file is there, relative to the working\n> directory -- read it at that path. Do not rebuild it into an absolute path\n> under this skill's own base directory: that directory holds `SKILL.md`, not the\n> user's project, so the read fails and the project looks missing when it is not.\n> If a file you just found fails to open, the path you constructed is wrong --\n> retry with the literal result. Never conclude \"there is no project on disk\"\n> while a search is still reporting project files, and never scaffold a\n> substitute project from the prose description as a workaround.\n\n## Execution Contract\n\n- Skill activation is not a stopping point. Continue with workspace discovery and the requested work in the same task.\n- The skill directory contains guidance, not the staged project. Search the current working directory, open the literal paths returned by the search, and retry with another available reader\u002Feditor if one tool rejects a valid path.\n- Never ask for a path while a glob or directory search can discover it. Ask only after an exhaustive current-workspace search finds no project, or multiple projects make the target genuinely ambiguous.\n- Classify the requested deliverable, not isolated verbs: \"make the edits\", \"update this project\", or \"then build and run\" means execute; \"what do I need to change?\", \"what should I expect?\", \"are the steps the same?\", or \"show me\" means answer, even if the prompt also says upgrade or migrate.\n- After changing files, name the detected MSTest version and runner, every file changed, and the exact repaired calls\u002Fsettings (for example, list each assertion changed to `AreEqual\u003Cobject>`, `AreNotEqual\u003Cobject>`, or `AreSame\u003Cobject>`). Report the clean test counts. Do not claim VSTest preservation, a build, or passing tests without evidence from the project.\n\n## Breaking Changes Summary\n\nMSTest v3 introduces these breaking changes from v1\u002Fv2. Address only the ones relevant to the project:\n\n| Breaking Change | Impact | Fix |\n|---|---|---|\n| `Assert.AreEqual(object, object)` overload removed; only `AreEqual\u003CT>(T?, T?)` remains | **`CS0411`** (type arguments cannot be inferred) or `CS1503` -- but only where the two arguments have no common inferred type. Two `object`-typed arguments still infer `T = object` and **compile unchanged** | Add the explicit type argument on the failing call: `Assert.AreEqual\u003Cobject>(expected, actual)`. Same for `AreNotEqual`, `AreSame`, `AreNotSame`. Leave assertions that already compile alone |\n| `DataRow` strict type matching | **Not a compile error.** Builds with analyzer warning `MSTEST0014` and fails at run time with \"Test data doesn't match method parameters\". Widening conversions (`int` -> `long`) still bind; narrowing or unrelated types (`1L` -> `int`, `1.0` -> `float`) do not | Change literals to the exact parameter type: `1` for int, `1L` for long, `1.0f` for float. Run the tests -- a green build proves nothing here |\n| `DataRow` limited to 16 arguments -- **3.0.1 and 3.0.2 only** | `CS1729` on those two versions; the limit was removed again in **3.0.3** | On 3.0.3+ (every current 3.x) a longer row is valid -- **leave it unchanged**. Do not wrap extras in an array, cast to `object`, or split the test. Only a project pinned to 3.0.1\u002F3.0.2 needs action: update to 3.0.3+ |\n| `.testsettings` \u002F `\u003CLegacySettings>` no longer supported | Settings silently ignored | Delete `.testsettings`, create `.runsettings` with equivalent config |\n| Timeout behavior unified across .NET Core \u002F Framework | Tests with `[Timeout]` may behave differently | Verify timeout values; adjust if needed |\n| Dropped target frameworks: .NET 5, .NET Fx \u003C 4.6.2, netstandard1.0, UWP \u003C 16299, WinUI \u003C 18362 | Build error | Update TFM: .NET 5 -> net8.0 (LTS) or net6.0+, netfx -> net462+, netstandard1.0 -> netstandard2.0. Note: net6.0, net8.0, net9.0 are all supported |\n| Not binary compatible with v1\u002Fv2 | Libraries compiled against v1\u002Fv2 must be recompiled | Recompile all dependencies against v3 |\n| Test ID generation changed | Playlists, filters, or CI history keyed by test ID may reset | Re-baseline IDs and verify affected filters |\n| `TargetInvocationException` is unwrapped | Tests or infrastructure expecting the wrapper observe the inner exception | Update exception handling to expect the underlying exception |\n| Initialization\u002Fcleanup messages now attach to test results | The first\u002Flast test output may gain lifecycle messages that were previously absent | Update log processing and inspect the first\u002Flast test results |\n| Deployment directory behavior is unified across TFMs | Tests with hard-coded deployment paths may fail | Use `TestContext.DeploymentDirectory` or deployed-item paths instead of assumptions |\n| Nullable annotations were added | Nullable-enabled projects may gain warnings | Fix the warnings without suppressing unrelated diagnostics |\n\n## Response Guidelines\n\n- **Always identify the current version first**: Before recommending any migration steps, explicitly state the current MSTest version detected in the project (e.g., \"Your project uses MSTest v2 (2.2.10)\" or \"This is an MSTest v1 project using QualityTools assembly references\"). This grounds the migration advice and confirms you've read the project files.\n- **Require project evidence, but gather it yourself**: Do not assume v1\u002Fv2 from the wording alone -- read the project or central package files and classify the source as QualityTools\u002Fv1, NuGet 1.x, or NuGet 2.x. Gather that evidence from the working directory rather than asking the user for it. If the project is already on v3+ with no v1\u002Fv2 leftovers, stop and route to the appropriate skill.\n- **Preserve the test platform**: Keep VSTest or MTP unchanged during the framework upgrade unless the user separately requests a runner migration.\n- **Execute full migrations**: When the user asks you to migrate or upgrade the project, edit the files, build, and run tests. Do not stop after listing breaking changes. Advice-only responses are appropriate only when the user asks what to expect.\n- **Focused fix requests** (user has specific compilation errors after upgrading): Address only the relevant breaking change from the table above. Show a concise before\u002Fafter fix. Do not walk through the full migration workflow.\n- **DataRow fix requests**: Compare every supplied `DataRow` with its method signature. Mismatches can build with only `MSTEST0014` and fail during test execution. Preserve the method contract and normally fix the literal (`1L` -> `1` for `int`), then run the affected tests. **Change only the rows that are actually wrong.** Argument count is not itself a defect on 3.0.3+, so leave a long row alone unless the compiler rejects it.\n- **Change nothing on suspicion -- confirm the error first**: When you believe a construct is unsupported, build and read the actual diagnostic before editing it. If it compiles, this version supports it and it needs no change. Rewriting valid code to dodge a limit the project is not subject to is a defect, not caution.\n- **Specific feature migration** (user asks about one aspect like .testsettings, DataRow, or assertions): Address only that feature, but handle every active setting or affected usage in the supplied files. For `.testsettings`, put all MSTest settings under one `\u003CMSTest>` element, map requested deployment, per-test timeout, data collector, and other active configuration, and do not add a session-wide timeout. Do not walk through unrelated breaking changes.\n- **\"What to expect\" questions** (user asks about breaking changes before upgrading): First state the concrete package update needed to reach v3, then summarize every category in the Breaking Changes Summary, marking which ones directly apply to the visible project. Keep each item to one line and do not expand into release-note history.\n- **Required shape for \"what to expect\"**: Use an `Applies \u002F Watch \u002F No change` table grounded in the visible project and cover every row in the Breaking Changes Summary. This completeness is the value of the skill; do not omit runtime-only categories merely to be concise.\n- **Full migration requests** (user wants complete migration): Follow the complete workflow below.\n- **Comparison questions** (user asks about v1 vs v2 differences): Explain concisely -- v1 uses assembly references and requires removing them first; v2 uses NuGet and just needs a version bump. Both converge on the same v3 packages and breaking changes.\n- **Keep execution project-specific**: For fixes and full migrations, change only patterns found in the visible code\u002Fconfiguration. Broader coverage is reserved for explicit \"what should I expect?\" questions.\n\n## Migration Paths\n\n- **MSTest v1 (assembly reference to QualityTools)**: Remove the assembly reference (Step 2), add v3 NuGet packages (Step 3), fix breaking changes (Step 5).\n- **MSTest v2 (NuGet packages 1.x-2.x)**: Update package versions to 3.x (Step 3), fix breaking changes (Step 5). No assembly reference removal needed.\n\nBoth paths converge at Step 3 -- the same v3 packages and breaking changes apply regardless of starting version.\n\n## Workflow\n\n### Step 1: Assess the project\n\n1. Locate the project first: glob the working directory for `*.csproj`, `*.sln`,\n   `*.slnx`, `Directory.Build.props`, `Directory.Packages.props`, and\n   `*.testsettings`. Do this before asking the user anything, and open whatever\n   it returns at exactly the path it reported (see the note under Inputs).\n2. In one discovery pass, batch-read project and central configuration files, search for affected APIs\u002Fsettings, and identify which MSTest version is currently in use:\n   - **Assembly reference**: Look for `Microsoft.VisualStudio.QualityTools.UnitTestFramework` in project references -> MSTest v1\n   - **NuGet packages**: Check `MSTest.TestFramework` and `MSTest.TestAdapter` package versions -> v1 if 1.x, v2 if 2.x\n3. Check whether the target framework is dropped in v3 (see Step 4).\n4. Run the existing test command. Record discovered, passed, failed, and skipped counts as the parity baseline.\n\n### Step 2: Remove v1 assembly references (if applicable)\n\nIf the project uses MSTest v1 via assembly references:\n\n1. Remove the reference to `Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll`\n   - In SDK-style projects, remove the `\u003CReference>` element from the `.csproj`\n   - In non-SDK-style projects, remove via Visual Studio Solution Explorer -> References -> right-click -> Remove\n2. Save the project file\n\n### Step 3: Update packages to MSTest v3\n\nUse one package model; do not leave duplicate framework\u002Fadapter references.\n\n**Default -- install the MSTest metapackage:**\n\nRemove individual `MSTest.TestFramework` and `MSTest.TestAdapter` package references and replace with the unified `MSTest` metapackage:\n\n```xml\n\u003CPackageReference Include=\"MSTest\" Version=\"3.8.0\" \u002F>\n```\n\nKeep `Microsoft.NET.Test.Sdk` when the project remains on VSTest, but update it to a version compatible with the selected MSTest release. For example, `MSTest` 3.8.0 requires `Microsoft.NET.Test.Sdk` 17.13.0 or later; leaving an older explicit version causes `NU1605`. If package versions are centrally managed, update `Directory.Packages.props` rather than adding inline versions.\n\n**Use MSTest.Sdk only when the user requests it or the repository already standardizes on it (SDK-style projects only):**\n\nChange `\u003CProject Sdk=\"Microsoft.NET.Sdk\">` to `\u003CProject Sdk=\"MSTest.Sdk\u002F3.8.0\">`. MSTest.Sdk automatically provides the MSTest framework, adapter, and analyzers.\n\n> **Important**: MSTest.Sdk defaults to Microsoft.Testing.Platform (MTP). When the\n> project itself must remain on VSTest, set `\u003CUseVSTest>true\u003C\u002FUseVSTest>`. MSTest.Sdk\n> v3 also supplies `Microsoft.NET.Test.Sdk` in MTP mode, so a separate transitional\n> `vstest.console` invocation does not by itself require changing the primary runner.\n> Do not switch runners merely as a side effect of the framework upgrade.\n\nWhen switching to MSTest.Sdk, remove these (SDK provides them automatically):\n\n- **Packages**: `MSTest`, `MSTest.TestFramework`, `MSTest.TestAdapter`, `MSTest.Analyzers`, `Microsoft.NET.Test.Sdk`\n- **Properties**: `\u003CEnableMSTestRunner>`, `\u003COutputType>Exe\u003C\u002FOutputType>`, `\u003CIsPackable>false\u003C\u002FIsPackable>`, `\u003CIsTestProject>true\u003C\u002FIsTestProject>`\n\n### Step 4: Update target frameworks if needed\n\nMSTest v3 supports .NET 6+, .NET Core 3.1, .NET Framework 4.6.2+, .NET Standard 2.0, UWP 16299+, and WinUI 18362+. .NET Core 3.1 is end-of-life but remains supported by MSTest v3; preserve it during this framework-only migration and recommend a separate runtime upgrade. If the project targets a framework version dropped by MSTest v3, update to a supported one:\n\n| Dropped | Recommended replacement |\n|---------|------------------------|\n| .NET 5 | .NET 8.0 (current LTS) or .NET 6+ |\n| .NET Framework \u003C 4.6.2 | .NET Framework 4.6.2 |\n| .NET Standard 1.0 | .NET Standard 2.0 |\n| UWP \u003C 16299 | UWP 16299 |\n| WinUI \u003C 18362 | WinUI 18362 |\n\n> **Note**: .NET 6, .NET 8, and .NET 9 are all supported by MSTest v3. Do not change TFMs that are already supported.\n\n### Step 5: Resolve build errors and breaking changes\n\nSearch the supplied files first and fix only breaking changes that are present.\nA successful build does not prove compatibility; some failures surface only as\nanalyzer warnings or during test execution.\n\n**Assertion overloads** -- MSTest v3 replaced `Assert.AreEqual(object, object)` and `AreNotEqual(object, object)` with the generic `AreEqual\u003CT>(T?, T?)`. This breaks **only** where `T` can no longer be inferred, which the compiler reports as `CS0411` (or `CS1503` for unrelated argument types):\n\n```csharp\n\u002F\u002F Breaks -- string and int have no common inferred type:\nAssert.AreEqual(referenceCode, numericId);   \u002F\u002F CS0411\n\u002F\u002F Fix -- name the type argument explicitly:\nAssert.AreEqual\u003Cobject>(referenceCode, numericId);\n```\n\nTwo `object`-typed arguments still infer `T = object` and compile untouched, as do\nordinary typed assertions like `Assert.AreEqual(\"A-3\", order.Reference)`. **Fix only\nthe call sites the compiler rejects.** Widening every assertion in the file to\n`\u003Cobject>` also compiles, so nothing will flag it -- but it discards the type\nchecking v3 added, which is the entire point of the change.\n\n**DataRow strict type matching** -- argument types must match parameter types\nexactly. This is **not** a compile error: the row builds (with `MSTEST0014`) and\nfails at run time with \"Test data doesn't match method parameters\".\n\n```csharp\n\u002F\u002F Fails at run time: 1L (long) does not bind to an int parameter -> use 1\n\u002F\u002F Fails at run time: 1.0 (double) does not bind to a float parameter -> use 1.0f\n\u002F\u002F Still binds: 1 (int) to a long parameter -- widening conversions are accepted\n```\n\nPreserve method parameter types unless independently wrong. `dotnet build` may\nsucceed with `MSTEST0014`; run the test to prove each row binds and executes.\n\n**Rows with more than 16 arguments** -- leave them alone unless the compiler\nactually emits `CS1729`. The cap existed only in 3.0.1\u002F3.0.2 (removed in 3.0.3),\nso wrapping extras in an `object[]`, casting to `object`, or splitting the method\njust rewrites a correct test.\n\n**Timeout behavior** -- unified across .NET Core and .NET Framework. Verify `[Timeout]` values still work.\n\n### Step 6: Replace .testsettings with .runsettings\n\nThe `.testsettings` file and `\u003CLegacySettings>` are no longer supported in MSTest v3. **Delete the `.testsettings` file** and create a `.runsettings` file -- do not keep both. Consolidate all MSTest configuration under one `\u003CMSTest>` element; do not create an `\u003CMSTestV2>` section.\n\nKey mappings:\n\n| .testsettings | .runsettings equivalent |\n|---|---|\n| `TestTimeout` property | `\u003CMSTest>\u003CTestTimeout>30000\u003C\u002FTestTimeout>\u003C\u002FMSTest>` |\n| Deployment config | `\u003CMSTest>\u003CDeploymentEnabled>true\u003C\u002FDeploymentEnabled>\u003C\u002FMSTest>` or remove |\n| Assembly resolution settings | Remove -- not needed in modern .NET |\n| Data collectors | `\u003CDataCollectionRunSettings>\u003CDataCollectors>` section |\n\n> **Important**: Map timeout to `\u003CMSTest>\u003CTestTimeout>` (per-test), **not** `\u003CTestSessionTimeout>` (session-wide). Remove `\u003CLegacySettings>` entirely.\n\nUpdate every project, CI command, or IDE setting that explicitly selected the old\n`.testsettings` path to select the new `.runsettings` path. When a VSTest project\nmust preserve behavior but the legacy file was never selected, make the new file\neffective with `RunSettingsFilePath`. For MTP, use the framework-supported\n`--settings` path or existing MTP configuration instead of assuming the VSTest\nMSBuild property is honored.\n\n### Step 7: Verify\n\n1. Run the same test command, filter, and configuration used for the baseline. `dotnet test` builds by default; run a separate build only to isolate a compilation failure.\n2. Compare discovered, passed, failed, and skipped counts to the pre-migration baseline.\n3. Investigate every count difference; do not accept silently dropped tests or data rows.\n4. Confirm no QualityTools reference, 1.x\u002F2.x MSTest package, `.testsettings`, or `\u003CLegacySettings>` remains.\n\n## Validation\n\n- [ ] MSTest v3 packages (or MSTest.Sdk) correctly referenced; v1\u002Fv2 references removed\n- [ ] Project builds with zero errors\n- [ ] All tests pass (`dotnet test`) -- compare pass\u002Ffail counts to pre-migration baseline\n- [ ] `.testsettings` replaced with `.runsettings` (if applicable)\n\n## Next Step\n\nAfter v3 migration, use `migrate-mstest-v3-to-v4` for MSTest v4.\n\n## Common Pitfalls\n\n| Pitfall | Solution |\n|---------|----------|\n| Replying with \"which project?\" when the workspace already holds one | Glob for `*.csproj`\u002F`*.sln`\u002F`*.slnx` and read what is there |\n| \"No project on disk\" right after a search listed project files | The path was rebuilt under the skill's base directory. Reopen using the literal search result; never scaffold a replacement project |\n| Rewriting a `DataRow` with more than 16 arguments | Valid on 3.0.3+, which is every current 3.x. Only 3.0.1\u002F3.0.2 ever rejected it |\n| Non-MSTest.Sdk VSTest project missing `Microsoft.NET.Test.Sdk` | Add the package reference for VSTest discovery |\n| MSTest.Sdk v3 project must use VSTest as its primary runner | Set `\u003CUseVSTest>true\u003C\u002FUseVSTest>`; do not flip the runner merely because a transitional `vstest.console` job also exists |\n","# MSTest v1\u002Fv2 -> v3 Migration\n\nMigrate a test project from MSTest v1 (assembly references) or MSTest v2 (NuGet 1.x-2.x) to MSTest v3. MSTest v3 is **not binary compatible** with v1\u002Fv2 -- libraries compiled against v1\u002Fv2 must be recompiled.\n\n## First Action\n\nInspect the supplied workspace and classify v1, v2, partially migrated v3, or\nalready-complete v3 before answering. Do not search the web or answer from\nmemory first. For an edit request, continue through the requested source\nchanges and validation; for an advice request, answer directly after the\nclassification.\n\n## When to Use\n\n- Project references `Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll` (MSTest v1)\n- Project uses `MSTest.TestFramework` \u002F `MSTest.TestAdapter` NuGet 1.x or 2.x\n- Resolving build errors after updating MSTest packages from v1\u002Fv2 to v3 -- including when the packages already read 3.x and only the source or settings still need fixing\n- Replacing `.testsettings` with `.runsettings`\n- Adopting MSTest.Sdk or in-assembly parallel execution\n\n## When Not to Use\n\n- Project already on MSTest v3 with no migration-related build errors and no leftover `.testsettings` \u002F `\u003CLegacySettings>` (fully migrated)\n- Upgrading v3 to v4 -- use `migrate-mstest-v3-to-v4`\n- Migrating between frameworks (MSTest to xUnit\u002FNUnit)\n\n## Boundary Gate\n\nCheck package versions before any edit. If all MSTest references are already 3.x,\nno v1\u002Fv2-to-v3 error is reported, and no `.testsettings` or `\u003CLegacySettings>`\nremains, state that migration is complete and make no changes. A 3.x package\nversion alone does not end the migration -- leftover v1\u002Fv2-era settings files or\nbreaking-change errors are still in scope. Do not consolidate working v3 packages\ninto the metapackage. Run the existing tests only if verification was requested.\nThis overrides all steps below.\n\n## Inputs\n\n| Input | Required | Description |\n|-------|----------|-------------|\n| Project or solution path | No | The `.csproj`, `.sln`, or `.slnx` entry point. Glob the working directory for it; ask only if nothing is found or several test projects make the target ambiguous |\n| Build command | No | How to build (e.g., `dotnet build`, a repo build script). Auto-detect if not provided |\n| Test command | No | How to run tests (e.g., `dotnet test`). Auto-detect if not provided |\n\n> **Never open by asking for the project path.** A user describing their project\n> in prose is asking a question, not withholding a file -- look on disk first. If\n> there is genuinely no project file, answer for the setup they described rather\n> than replying with only a question.\n>\n> **Open the paths exactly as the search returned them.** A glob that answers\n> `.\u002FTestProject.csproj` means the file is there, relative to the working\n> directory -- read it at that path. Do not rebuild it into an absolute path\n> under this skill's own base directory: that directory holds `SKILL.md`, not the\n> user's project, so the read fails and the project looks missing when it is not.\n> If a file you just found fails to open, the path you constructed is wrong --\n> retry with the literal result. Never conclude \"there is no project on disk\"\n> while a search is still reporting project files, and never scaffold a\n> substitute project from the prose description as a workaround.\n\n## Execution Contract\n\n- Skill activation is not a stopping point. Continue with workspace discovery and the requested work in the same task.\n- The skill directory contains guidance, not the staged project. Search the current working directory, open the literal paths returned by the search, and retry with another available reader\u002Feditor if one tool rejects a valid path.\n- Never ask for a path while a glob or directory search can discover it. Ask only after an exhaustive current-workspace search finds no project, or multiple projects make the target genuinely ambiguous.\n- Classify the requested deliverable, not isolated verbs: \"make the edits\", \"update this project\", or \"then build and run\" means execute; \"what do I need to change?\", \"what should I expect?\", \"are the steps the same?\", or \"show me\" means answer, even if the prompt also says upgrade or migrate.\n- After changing files, name the detected MSTest version and runner, every file changed, and the exact repaired calls\u002Fsettings (for example, list each assertion changed to `AreEqual\u003Cobject>`, `AreNotEqual\u003Cobject>`, or `AreSame\u003Cobject>`). Report the clean test counts. Do not claim VSTest preservation, a build, or passing tests without evidence from the project.\n\n## Breaking Changes Summary\n\nMSTest v3 introduces these breaking changes from v1\u002Fv2. Address only the ones relevant to the project:\n\n| Breaking Change | Impact | Fix |\n|---|---|---|\n| `Assert.AreEqual(object, object)` overload removed; only `AreEqual\u003CT>(T?, T?)` remains | **`CS0411`** (type arguments cannot be inferred) or `CS1503` -- but only where the two arguments have no common inferred type. Two `object`-typed arguments still infer `T = object` and **compile unchanged** | Add the explicit type argument on the failing call: `Assert.AreEqual\u003Cobject>(expected, actual)`. Same for `AreNotEqual`, `AreSame`, `AreNotSame`. Leave assertions that already compile alone |\n| `DataRow` strict type matching | **Not a compile error.** Builds with analyzer warning `MSTEST0014` and fails at run time with \"Test data doesn't match method parameters\". Widening conversions (`int` -> `long`) still bind; narrowing or unrelated types (`1L` -> `int`, `1.0` -> `float`) do not | Change literals to the exact parameter type: `1` for int, `1L` for long, `1.0f` for float. Run the tests -- a green build proves nothing here |\n| `DataRow` limited to 16 arguments -- **3.0.1 and 3.0.2 only** | `CS1729` on those two versions; the limit was removed again in **3.0.3** | On 3.0.3+ (every current 3.x) a longer row is valid -- **leave it unchanged**. Do not wrap extras in an array, cast to `object`, or split the test. Only a project pinned to 3.0.1\u002F3.0.2 needs action: update to 3.0.3+ |\n| `.testsettings` \u002F `\u003CLegacySettings>` no longer supported | Settings silently ignored | Delete `.testsettings`, create `.runsettings` with equivalent config |\n| Timeout behavior unified across .NET Core \u002F Framework | Tests with `[Timeout]` may behave differently | Verify timeout values; adjust if needed |\n| Dropped target frameworks: .NET 5, .NET Fx \u003C 4.6.2, netstandard1.0, UWP \u003C 16299, WinUI \u003C 18362 | Build error | Update TFM: .NET 5 -> net8.0 (LTS) or net6.0+, netfx -> net462+, netstandard1.0 -> netstandard2.0. Note: net6.0, net8.0, net9.0 are all supported |\n| Not binary compatible with v1\u002Fv2 | Libraries compiled against v1\u002Fv2 must be recompiled | Recompile all dependencies against v3 |\n| Test ID generation changed | Playlists, filters, or CI history keyed by test ID may reset | Re-baseline IDs and verify affected filters |\n| `TargetInvocationException` is unwrapped | Tests or infrastructure expecting the wrapper observe the inner exception | Update exception handling to expect the underlying exception |\n| Initialization\u002Fcleanup messages now attach to test results | The first\u002Flast test output may gain lifecycle messages that were previously absent | Update log processing and inspect the first\u002Flast test results |\n| Deployment directory behavior is unified across TFMs | Tests with hard-coded deployment paths may fail | Use `TestContext.DeploymentDirectory` or deployed-item paths instead of assumptions |\n| Nullable annotations were added | Nullable-enabled projects may gain warnings | Fix the warnings without suppressing unrelated diagnostics |\n\n## Response Guidelines\n\n- **Always identify the current version first**: Before recommending any migration steps, explicitly state the current MSTest version detected in the project (e.g., \"Your project uses MSTest v2 (2.2.10)\" or \"This is an MSTest v1 project using QualityTools assembly references\"). This grounds the migration advice and confirms you've read the project files.\n- **Require project evidence, but gather it yourself**: Do not assume v1\u002Fv2 from the wording alone -- read the project or central package files and classify the source as QualityTools\u002Fv1, NuGet 1.x, or NuGet 2.x. Gather that evidence from the working directory rather than asking the user for it. If the project is already on v3+ with no v1\u002Fv2 leftovers, stop and route to the appropriate skill.\n- **Preserve the test platform**: Keep VSTest or MTP unchanged during the framework upgrade unless the user separately requests a runner migration.\n- **Execute full migrations**: When the user asks you to migrate or upgrade the project, edit the files, build, and run tests. Do not stop after listing breaking changes. Advice-only responses are appropriate only when the user asks what to expect.\n- **Focused fix requests** (user has specific compilation errors after upgrading): Address only the relevant breaking change from the table above. Show a concise before\u002Fafter fix. Do not walk through the full migration workflow.\n- **DataRow fix requests**: Compare every supplied `DataRow` with its method signature. Mismatches can build with only `MSTEST0014` and fail during test execution. Preserve the method contract and normally fix the literal (`1L` -> `1` for `int`), then run the affected tests. **Change only the rows that are actually wrong.** Argument count is not itself a defect on 3.0.3+, so leave a long row alone unless the compiler rejects it.\n- **Change nothing on suspicion -- confirm the error first**: When you believe a construct is unsupported, build and read the actual diagnostic before editing it. If it compiles, this version supports it and it needs no change. Rewriting valid code to dodge a limit the project is not subject to is a defect, not caution.\n- **Specific feature migration** (user asks about one aspect like .testsettings, DataRow, or assertions): Address only that feature, but handle every active setting or affected usage in the supplied files. For `.testsettings`, put all MSTest settings under one `\u003CMSTest>` element, map requested deployment, per-test timeout, data collector, and other active configuration, and do not add a session-wide timeout. Do not walk through unrelated breaking changes.\n- **\"What to expect\" questions** (user asks about breaking changes before upgrading): First state the concrete package update needed to reach v3, then summarize every category in the Breaking Changes Summary, marking which ones directly apply to the visible project. Keep each item to one line and do not expand into release-note history.\n- **Required shape for \"what to expect\"**: Use an `Applies \u002F Watch \u002F No change` table grounded in the visible project and cover every row in the Breaking Changes Summary. This completeness is the value of the skill; do not omit runtime-only categories merely to be concise.\n- **Full migration requests** (user wants complete migration): Follow the complete workflow below.\n- **Comparison questions** (user asks about v1 vs v2 differences): Explain concisely -- v1 uses assembly references and requires removing them first; v2 uses NuGet and just needs a version bump. Both converge on the same v3 packages and breaking changes.\n- **Keep execution project-specific**: For fixes and full migrations, change only patterns found in the visible code\u002Fconfiguration. Broader coverage is reserved for explicit \"what should I expect?\" questions.\n\n## Migration Paths\n\n- **MSTest v1 (assembly reference to QualityTools)**: Remove the assembly reference (Step 2), add v3 NuGet packages (Step 3), fix breaking changes (Step 5).\n- **MSTest v2 (NuGet packages 1.x-2.x)**: Update package versions to 3.x (Step 3), fix breaking changes (Step 5). No assembly reference removal needed.\n\nBoth paths converge at Step 3 -- the same v3 packages and breaking changes apply regardless of starting version.\n\n## Workflow\n\n### Step 1: Assess the project\n\n1. Locate the project first: glob the working directory for `*.csproj`, `*.sln`,\n   `*.slnx`, `Directory.Build.props`, `Directory.Packages.props`, and\n   `*.testsettings`. Do this before asking the user anything, and open whatever\n   it returns at exactly the path it reported (see the note under Inputs).\n2. In one discovery pass, batch-read project and central configuration files, search for affected APIs\u002Fsettings, and identify which MSTest version is currently in use:\n   - **Assembly reference**: Look for `Microsoft.VisualStudio.QualityTools.UnitTestFramework` in project references -> MSTest v1\n   - **NuGet packages**: Check `MSTest.TestFramework` and `MSTest.TestAdapter` package versions -> v1 if 1.x, v2 if 2.x\n3. Check whether the target framework is dropped in v3 (see Step 4).\n4. Run the existing test command. Record discovered, passed, failed, and skipped counts as the parity baseline.\n\n### Step 2: Remove v1 assembly references (if applicable)\n\nIf the project uses MSTest v1 via assembly references:\n\n1. Remove the reference to `Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll`\n   - In SDK-style projects, remove the `\u003CReference>` element from the `.csproj`\n   - In non-SDK-style projects, remove via Visual Studio Solution Explorer -> References -> right-click -> Remove\n2. Save the project file\n\n### Step 3: Update packages to MSTest v3\n\nUse one package model; do not leave duplicate framework\u002Fadapter references.\n\n**Default -- install the MSTest metapackage:**\n\nRemove individual `MSTest.TestFramework` and `MSTest.TestAdapter` package references and replace with the unified `MSTest` metapackage:\n\n```xml\n\u003CPackageReference Include=\"MSTest\" Version=\"3.8.0\" \u002F>\n```\n\nKeep `Microsoft.NET.Test.Sdk` when the project remains on VSTest, but update it to a version compatible with the selected MSTest release. For example, `MSTest` 3.8.0 requires `Microsoft.NET.Test.Sdk` 17.13.0 or later; leaving an older explicit version causes `NU1605`. If package versions are centrally managed, update `Directory.Packages.props` rather than adding inline versions.\n\n**Use MSTest.Sdk only when the user requests it or the repository already standardizes on it (SDK-style projects only):**\n\nChange `\u003CProject Sdk=\"Microsoft.NET.Sdk\">` to `\u003CProject Sdk=\"MSTest.Sdk\u002F3.8.0\">`. MSTest.Sdk automatically provides the MSTest framework, adapter, and analyzers.\n\n> **Important**: MSTest.Sdk defaults to Microsoft.Testing.Platform (MTP). When the\n> project itself must remain on VSTest, set `\u003CUseVSTest>true\u003C\u002FUseVSTest>`. MSTest.Sdk\n> v3 also supplies `Microsoft.NET.Test.Sdk` in MTP mode, so a separate transitional\n> `vstest.console` invocation does not by itself require changing the primary runner.\n> Do not switch runners merely as a side effect of the framework upgrade.\n\nWhen switching to MSTest.Sdk, remove these (SDK provides them automatically):\n\n- **Packages**: `MSTest`, `MSTest.TestFramework`, `MSTest.TestAdapter`, `MSTest.Analyzers`, `Microsoft.NET.Test.Sdk`\n- **Properties**: `\u003CEnableMSTestRunner>`, `\u003COutputType>Exe\u003C\u002FOutputType>`, `\u003CIsPackable>false\u003C\u002FIsPackable>`, `\u003CIsTestProject>true\u003C\u002FIsTestProject>`\n\n### Step 4: Update target frameworks if needed\n\nMSTest v3 supports .NET 6+, .NET Core 3.1, .NET Framework 4.6.2+, .NET Standard 2.0, UWP 16299+, and WinUI 18362+. .NET Core 3.1 is end-of-life but remains supported by MSTest v3; preserve it during this framework-only migration and recommend a separate runtime upgrade. If the project targets a framework version dropped by MSTest v3, update to a supported one:\n\n| Dropped | Recommended replacement |\n|---------|------------------------|\n| .NET 5 | .NET 8.0 (current LTS) or .NET 6+ |\n| .NET Framework \u003C 4.6.2 | .NET Framework 4.6.2 |\n| .NET Standard 1.0 | .NET Standard 2.0 |\n| UWP \u003C 16299 | UWP 16299 |\n| WinUI \u003C 18362 | WinUI 18362 |\n\n> **Note**: .NET 6, .NET 8, and .NET 9 are all supported by MSTest v3. Do not change TFMs that are already supported.\n\n### Step 5: Resolve build errors and breaking changes\n\nSearch the supplied files first and fix only breaking changes that are present.\nA successful build does not prove compatibility; some failures surface only as\nanalyzer warnings or during test execution.\n\n**Assertion overloads** -- MSTest v3 replaced `Assert.AreEqual(object, object)` and `AreNotEqual(object, object)` with the generic `AreEqual\u003CT>(T?, T?)`. This breaks **only** where `T` can no longer be inferred, which the compiler reports as `CS0411` (or `CS1503` for unrelated argument types):\n\n```csharp\n\u002F\u002F Breaks -- string and int have no common inferred type:\nAssert.AreEqual(referenceCode, numericId);   \u002F\u002F CS0411\n\u002F\u002F Fix -- name the type argument explicitly:\nAssert.AreEqual\u003Cobject>(referenceCode, numericId);\n```\n\nTwo `object`-typed arguments still infer `T = object` and compile untouched, as do\nordinary typed assertions like `Assert.AreEqual(\"A-3\", order.Reference)`. **Fix only\nthe call sites the compiler rejects.** Widening every assertion in the file to\n`\u003Cobject>` also compiles, so nothing will flag it -- but it discards the type\nchecking v3 added, which is the entire point of the change.\n\n**DataRow strict type matching** -- argument types must match parameter types\nexactly. This is **not** a compile error: the row builds (with `MSTEST0014`) and\nfails at run time with \"Test data doesn't match method parameters\".\n\n```csharp\n\u002F\u002F Fails at run time: 1L (long) does not bind to an int parameter -> use 1\n\u002F\u002F Fails at run time: 1.0 (double) does not bind to a float parameter -> use 1.0f\n\u002F\u002F Still binds: 1 (int) to a long parameter -- widening conversions are accepted\n```\n\nPreserve method parameter types unless independently wrong. `dotnet build` may\nsucceed with `MSTEST0014`; run the test to prove each row binds and executes.\n\n**Rows with more than 16 arguments** -- leave them alone unless the compiler\nactually emits `CS1729`. The cap existed only in 3.0.1\u002F3.0.2 (removed in 3.0.3),\nso wrapping extras in an `object[]`, casting to `object`, or splitting the method\njust rewrites a correct test.\n\n**Timeout behavior** -- unified across .NET Core and .NET Framework. Verify `[Timeout]` values still work.\n\n### Step 6: Replace .testsettings with .runsettings\n\nThe `.testsettings` file and `\u003CLegacySettings>` are no longer supported in MSTest v3. **Delete the `.testsettings` file** and create a `.runsettings` file -- do not keep both. Consolidate all MSTest configuration under one `\u003CMSTest>` element; do not create an `\u003CMSTestV2>` section.\n\nKey mappings:\n\n| .testsettings | .runsettings equivalent |\n|---|---|\n| `TestTimeout` property | `\u003CMSTest>\u003CTestTimeout>30000\u003C\u002FTestTimeout>\u003C\u002FMSTest>` |\n| Deployment config | `\u003CMSTest>\u003CDeploymentEnabled>true\u003C\u002FDeploymentEnabled>\u003C\u002FMSTest>` or remove |\n| Assembly resolution settings | Remove -- not needed in modern .NET |\n| Data collectors | `\u003CDataCollectionRunSettings>\u003CDataCollectors>` section |\n\n> **Important**: Map timeout to `\u003CMSTest>\u003CTestTimeout>` (per-test), **not** `\u003CTestSessionTimeout>` (session-wide). Remove `\u003CLegacySettings>` entirely.\n\nUpdate every project, CI command, or IDE setting that explicitly selected the old\n`.testsettings` path to select the new `.runsettings` path. When a VSTest project\nmust preserve behavior but the legacy file was never selected, make the new file\neffective with `RunSettingsFilePath`. For MTP, use the framework-supported\n`--settings` path or existing MTP configuration instead of assuming the VSTest\nMSBuild property is honored.\n\n### Step 7: Verify\n\n1. Run the same test command, filter, and configuration used for the baseline. `dotnet test` builds by default; run a separate build only to isolate a compilation failure.\n2. Compare discovered, passed, failed, and skipped counts to the pre-migration baseline.\n3. Investigate every count difference; do not accept silently dropped tests or data rows.\n4. Confirm no QualityTools reference, 1.x\u002F2.x MSTest package, `.testsettings`, or `\u003CLegacySettings>` remains.\n\n## Validation\n\n- [ ] MSTest v3 packages (or MSTest.Sdk) correctly referenced; v1\u002Fv2 references removed\n- [ ] Project builds with zero errors\n- [ ] All tests pass (`dotnet test`) -- compare pass\u002Ffail counts to pre-migration baseline\n- [ ] `.testsettings` replaced with `.runsettings` (if applicable)\n\n## Next Step\n\nAfter v3 migration, use `migrate-mstest-v3-to-v4` for MSTest v4.\n\n## Common Pitfalls\n\n| Pitfall | Solution |\n|---------|----------|\n| Replying with \"which project?\" when the workspace already holds one | Glob for `*.csproj`\u002F`*.sln`\u002F`*.slnx` and read what is there |\n| \"No project on disk\" right after a search listed project files | The path was rebuilt under the skill's base directory. Reopen using the literal search result; never scaffold a replacement project |\n| Rewriting a `DataRow` with more than 16 arguments | Valid on 3.0.3+, which is every current 3.x. Only 3.0.1\u002F3.0.2 ever rejected it |\n| Non-MSTest.Sdk VSTest project missing `Microsoft.NET.Test.Sdk` | Add the package reference for VSTest discovery |\n| MSTest.Sdk v3 project must use VSTest as its primary runner | Set `\u003CUseVSTest>true\u003C\u002FUseVSTest>`; do not flip the runner merely because a transitional `vstest.console` job also exists |\n",{"name":5,"license":14,"description":23},"Use this skill before answering or editing whenever an MSTest v1\u002Fv2 project is being upgraded or repaired for v3. Triggers include QualityTools assembly references; MSTest.TestFramework\u002FTestAdapter 1.x-2.x; \"upgrade to MSTest v3\"; comparing v1 and v2 migration paths; choosing MSTest or MSTest.Sdk; CS0411\u002FCS1503 after a v3 package bump; DataRow type mismatch, MSTEST0014, or \"Test data doesn't match method parameters\"; .testsettings\u002FLegacySettings to .runsettings; timeout changes; and net5.0 or other dropped v3 TFMs. Still use it when packages say 3.x but migration source errors or legacy settings remain. Preserve VSTest\u002FMTP. Do not use for a clean v3 project, v3-to-v4, framework conversion, or runner-only migration.\n","main","ccab8dffc0ecc173838f51e4c5f0d3b51a704f41","plugins\u002Fopt-in\u002Fimplementation\u002Fcsharp-skills\u002Flibrary\u002Fmigrate-mstest-v1v2-to-v3","https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills","https:\u002F\u002Fgithub.com\u002Fdeadmade","https:\u002F\u002Fdeadmade.github.io\u002F","Blood, an Ocean of blood","2026-11-14 02:03:31",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add deadmade\u002Fdead-agent-skills --skill migrate-mstest-v1v2-to-v3",{"tool":38,"command":39},"bunx","bunx skills add deadmade\u002Fdead-agent-skills --skill migrate-mstest-v1v2-to-v3",{"tool":41,"command":42},"pnpm","pnpm dlx skills add deadmade\u002Fdead-agent-skills --skill migrate-mstest-v1v2-to-v3","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fopt-in\u002Fimplementation\u002Fcsharp-skills\u002Flibrary\u002Fmigrate-mstest-v1v2-to-v3\u002FSKILL.md",true,[],[47,54,63,71,78,85],{"skillNo":48,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":18},"01M7CVRBFTXSTTQ7F5P6PJEFYA","rust-best-practices","Guide for writing idiomatic Rust code based on Apollo GraphQL's best practices handbook. Use this skill when: (1) writing new Rust code or functions, (2) reviewing or refactoring existing Rust code, (3) deciding between borrowing vs cloning or ownership patterns, (4) implementing error handling with Result types, (5) optimizing Rust code for performance, (6) writing tests or documentation for Rust projects.","https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fopt-in\u002Fimplementation\u002Frust-skills\u002Fskills\u002Frust-best-practices\u002FSKILL.md",[],[],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":58,"licenseFileUrl":59,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":18},"01M7CVR0W7B8EGTNPSPA7FPC4Z","postgres-database-migration","Use this skill for planning, testing, and safely executing PostgreSQL schema migrations — especially when working with production data or shared databases.\n\n**Trigger when user asks to:**\n- Test a schema migration before applying it to production\n- Add, remove, or rename columns safely on a live table\n- Change a column's data type without downtime\n- Add or drop indexes, constraints, or foreign keys on large tables\n- Understand which ALTER TABLE operations lock the table\n- Roll back a failed migration\n- Plan a zero-downtime migration strategy\n- Fork a database to test a migration safely\n\nCovers: lock-level reference for every common DDL operation, safe migration patterns, fork-based testing, zero-downtime column changes, index creation, constraint addition, backfill strategies, pre\u002Fpost-migration validation, and rollback planning.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fopt-in\u002Fimplementation\u002Fpostgres\u002Fskills\u002Fpostgres-database-migration\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fopt-in\u002Fimplementation\u002Fpostgres\u002Fskills\u002Fpostgres-database-migration\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":58,"licenseFileUrl":67,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":18},"01M7CVQWK20ASAZN5VETZC8J99","postgres-best-practices","Best practices and guidelines for working with Postgres. Covers schema design, indexing strategies, query optimization, migrations, and common pitfalls. Use when writing SQL, designing database schemas, optimizing queries, or setting up a Postgres database.","https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fopt-in\u002Fimplementation\u002Fpostgres\u002Fskills\u002Fpostgres-best-practices\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fopt-in\u002Fimplementation\u002Fpostgres\u002Fskills\u002Fpostgres-best-practices\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":18},"01M7CVQ5CY7AQHY7A2Y99RE6A7","writing-mstest-tests","ALWAYS USE when asked to fix, rewrite, update, improve, modernize, show corrected code for, or explain existing MSTest tests or MSTest-specific configuration. Use for \"review\" when corrected code or edits are wanted, even for one pasted assertion or passing tests with bad failure output. Covers expected\u002Factual labels; generic Boolean, collection, string, numeric, null, identity, exception, hard-cast, and object[] checks; TestContext\u002Flifecycle; timeout\u002Fcancellation; OS\u002FCI conditions, retry, cleanup, parallelization, MSTest.Sdk project setup, and MSTESTxxxx. Honor the installed MSTest version. DO NOT USE to design new test cases (code-testing), perform report-only audits, create project files rather than explain MSTest setup, run tests, migrate frameworks, or handle non-MSTest\u002Fnon-.NET code.","https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fopt-in\u002Fimplementation\u002Fcsharp-skills\u002Flibrary\u002Fwriting-mstest-tests\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":18},"01M7CVPWJZ63GB0810F0SCGZ1K","winforms-expert","Create, modify, debug, or review Windows Forms applications only when the request contains a concrete Windows Forms marker. USE FOR: WinForms, Windows Forms, System.Windows.Forms, WinForms Form or UserControl designer files (*.Designer.cs or *.Designer.vb), Visual Studio WinForms Designer, TableLayoutPanel, BindingSource, DataGridView, Control.InvokeAsync, component-tray ownership, or custom control serialization. DO NOT USE FOR: WPF or WPF XAML, including Window.InputBindings, KeyBinding, commands, or DataContext; .NET MAUI; Avalonia; or any request where none of the listed Windows Forms markers is present.","https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fopt-in\u002Fimplementation\u002Fcsharp-skills\u002Flibrary\u002Fwinforms-expert\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":18},"01M7CVPR0QFZ1HMJ6GZRBQAQ7W","vectorization","Design, implement, optimize, and review SIMD code in .NET. USE FOR: vectorizing scalar loops with TensorPrimitives, Vector64\u002F128\u002F256\u002F512, or platform hardware intrinsics; reviewing existing SIMD code, including the generic Vector type, for contract equivalence, tail handling, memory safety, portability, fallbacks, and measured performance. DO NOT USE FOR: performance work unrelated to SIMD or vectorization.","https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fopt-in\u002Fimplementation\u002Fcsharp-skills\u002Flibrary\u002Fvectorization\u002FSKILL.md",[],[]]