[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CV32K3V8PT42QTYGVKCP44":3,"skill-same:01M7CV32K3V8PT42QTYGVKCP44":72},{"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},"01M7CV32K3V8PT42QTYGVKCP44","convert-to-cpm",null,"Convert .NET projects and solutions (.sln, .slnx) to NuGet Central Package Management (CPM) using Directory.Packages.props. USE FOR: converting to CPM, centralizing or aligning NuGet package versions across multiple projects, inlining MSBuild version properties from Directory.Build.props into Directory.Packages.props, resolving version conflicts or mismatches across a solution or repository, updating or bumping or syncing package versions across projects. Also activate when packages are out of sync, drifting, or inconsistent -- even without the user mentioning CPM. Provides baseline build capture, version conflict resolution, build validation with binlog comparison, and a structured post-conversion report. DO NOT USE FOR: packages.config projects (must migrate to PackageReference first) or repositories that already have CPM fully enabled.","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\u002Fconvert-to-cpm\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: convert-to-cpm\ndescription: >\n  Convert .NET projects and solutions (.sln, .slnx) to NuGet Central Package Management\n  (CPM) using Directory.Packages.props. USE FOR: converting to CPM, centralizing or\n  aligning NuGet package versions across multiple projects, inlining MSBuild version\n  properties from Directory.Build.props into Directory.Packages.props, resolving version\n  conflicts or mismatches across a solution or repository, updating or bumping or syncing\n  package versions across projects. Also activate when packages are out of sync, drifting,\n  or inconsistent -- even without the user mentioning CPM. Provides baseline build capture,\n  version conflict resolution, build validation with binlog comparison, and a structured\n  post-conversion report. DO NOT USE FOR: packages.config projects (must migrate to\n  PackageReference first) or repositories that already have CPM fully enabled.\nlicense: MIT\n---\n\n# Convert to Central Package Management\n\nCentralize package versions in `Directory.Packages.props` while preserving project behavior and producing reviewable before\u002Fafter evidence.\n\n## Choose a mode first\n\nDo this before running builds or changing files.\n\n1. **Guard mode** -- If any in-scope project uses `packages.config`, stop. Explain that CPM requires `PackageReference` and recommend migrating first. Do not create or modify files.\n2. **Package-maintenance mode** -- A request to update, align, bump, or sync packages authorizes those package edits, not CPM conversion. Audit the named scope, resolve the requested versions, update existing project\u002Fshared version declarations, and restore\u002Fbuild every affected CLI target from the directory that establishes its applicable `global.json`. Ask only when the version or alignment policy is ambiguous. Do not create or modify `Directory.Packages.props`, remove versions for CPM, or capture conversion artifacts. Complete the package work, then recommend CPM as the durable follow-up.\n3. **Conversion mode** -- Use only when the user explicitly asks to adopt, enable, or convert to CPM. Follow the workflow below.\n\nIf the scope is unclear, ask once before proceeding.\n\n### Default execution plan\n\n- **Guard**: use a minimal scoped detection pass, then answer and stop.\n- **Package maintenance**: use a compact audit, edit only the requested package versions in their existing locations, validate affected targets, then recommend CPM. Do not read conversion references or enter the conversion workflow.\n- **Conversion**: batch the preflight, baseline, audit\u002Fmutation, final validation, and report work to avoid redundant turns. Revisit a stage only when new CPM-specific evidence requires a targeted follow-up.\n\nThis plan is an efficiency default, not a hard cap. Never omit an in-scope project, imported `.props`\u002F`.targets` file, detected complexity, required validation, or deliverable to save a turn. Batch complete work where practical.\n\n## Inputs\n\n| Input | Required | Rule |\n|-------|----------|------|\n| Scope | Yes | Project, solution, or directory containing the projects to inspect or convert |\n| Conflict strategy | For package maintenance or conversion with conflicts | If the user already supplied a strategy such as \"use the highest version,\" apply it without asking again and record its impact. Otherwise stop after the audit and ask before editing. |\n\n## Read references only when needed\n\nNever preload all references.\n\n| Condition | Read |\n|-----------|------|\n| Entering conversion baseline or producing the package diff | [baseline-comparison.md](references\u002Fbaseline-comparison.md) |\n| A conflict, conditional reference, shared import, security concern, or `VersionOverride` is detected | [audit-complexities.md](references\u002Faudit-complexities.md) |\n| Placement is unclear or conditional `PackageVersion`\u002F`VersionOverride` is required | [directory-packages-props.md](references\u002Fdirectory-packages-props.md) |\n| A package version uses an MSBuild property | [msbuild-property-handling.md](references\u002Fmsbuild-property-handling.md) |\n| Restore or build fails after conversion | [validation-and-errors.md](references\u002Fvalidation-and-errors.md) |\n| Writing the final report | [report-template.md](references\u002Freport-template.md) |\n\n## Conversion workflow\n\n### 1. Scope and preflight\n\n- Resolve the project\u002Fsolution scope. For a solution, list its projects. For a directory, search only beneath that directory and create an explicit target set that covers the full scope: use each applicable `.sln`\u002F`.slnx`, then add each project not covered by a solution. Verify that every in-scope project is covered and avoid duplicate work for projects that occur in more than one target. Ask only when overlapping targets or repository boundaries make the intended coverage ambiguous; never ask the user to select one target when that would omit in-scope projects.\n- Determine CPM management scopes separately from CLI targets. Group projects that will share one central version policy and place one `Directory.Packages.props` at each group's first common ancestor, while respecting existing nearest-file boundaries. Multiple CLI targets can share one CPM file; independent project groups can require separate files.\n- Check for `packages.config`; if found, switch to Guard mode and stop.\n- Check the scope and ancestors for `Directory.Packages.props`. If CPM is already fully enabled, report that and stop. If a partial file exists, preserve it and ask only when its intended scope is ambiguous.\n- Choose one common artifact directory within the resolved scope, normally the targets' first common ancestor. Use explicit paths into it for every binlog, package snapshot, and the report.\n- Run each target's .NET commands from its solution\u002Fproject directory or another directory that establishes its applicable `global.json`, not from an unrelated parent workspace.\n- Do not inspect unrelated projects or host-tool configuration when the user supplied a scope.\n\n### 2. Capture the baseline\n\nRead [baseline-comparison.md](references\u002Fbaseline-comparison.md). For each target, determine the active SDK once from that target's command directory and select the documented command syntax for that version. If SDK resolution fails or the SDK cannot process the requested solution format, stop and report the prerequisite; do not alter the host SDK or repository SDK policy unless the user asks.\n\nThen use one command batch to:\n\n1. Clean, restore, and build every explicit target. Use `baseline.binlog` for one target or a unique `baseline-\u003Ctarget-key>.binlog` for each of multiple targets.\n2. Write resolved packages for every target without restoring again. Use `baseline-packages.json` for one target or a matching `baseline-packages-\u003Ctarget-key>.json` for each of multiple targets.\n3. Keep normal command output concise. Save full output to artifacts when useful; inspect only errors on failure and never read the binlog as text.\n\nFinish every baseline before editing. If any baseline build fails, stop without modifying files and preserve all artifacts already produced.\n\n### 3. Audit with a targeted checklist\n\nUse all baseline snapshots plus one targeted scan of in-scope project, `.props`, and `.targets` files. Identify:\n\n- Package IDs, resolved versions, and consuming projects\n- Version conflicts\n- MSBuild property-based versions and their definitions\n- Conditional `PackageReference` items\n- Imported files containing package references\n- Existing `VersionOverride` usage\n\nFor a complex scope, complete every applicable item above across all projects and imported files; do not stop after finding the first conflict.\n\nDo not run broad `--outdated` or `--deprecated` scans by default. Before editing, attempt a scoped `--vulnerable --include-transitive` query when the user requested security information, a known advisory must be verified, or conflict resolution will move a project across a major package version. Record the compact findings, \"no advisories found,\" or why the check could not run. If a high-risk check is unavailable because of authentication, package-source, or offline constraints, surface the uncertainty and confirm the user's strategy rather than silently treating it as safe. Do not upgrade beyond the highest version already in scope as part of a CPM conversion.\n\nPresent conflicts and their impact. Explicitly classify major-version alignment as high risk and minor\u002Fpatch alignment as moderate risk without performing an extra online scan. If the user supplied a conflict strategy, proceed. Otherwise ask for the unresolved decisions and stop before editing.\n\n### 4. Create CPM files and update references\n\n- Create or update each required `Directory.Packages.props` at its computed management scope with `ManagePackageVersionsCentrally` set to `true`.\n- Add one alphabetically sorted `PackageVersion` per package, preserving required target-framework conditions.\n- Remove only `Version` from managed `PackageReference` items in projects and imported files.\n- Preserve conditions, whitespace, and all other metadata such as `PrivateAssets`, `IncludeAssets`, `ExcludeAssets`, `GeneratePathProperty`, and `Aliases`.\n- Use `VersionOverride` only when the chosen strategy requires it.\n\nFor MSBuild version properties, follow [msbuild-property-handling.md](references\u002Fmsbuild-property-handling.md). When the user directs inlining, include both the literal `PackageVersion` and removal of the obsolete property definition in the same mutation batch. Before final validation, verify separately that:\n\n1. No `$(PropertyName)` references remain in scoped project, `.props`, or `.targets` files.\n2. No `\u003CPropertyName>...\u003C\u002FPropertyName>` definition remains for each property chosen for removal.\n\nDo not rely on a `$()` reference scan to prove that the XML property definition was removed.\n\n### 5. Validate and compare\n\nUsing [baseline-comparison.md](references\u002Fbaseline-comparison.md), validate the final on-disk state after all project, shared-file, and property edits. Use one command batch to:\n\n1. Clean, restore, and build every explicit target after all CPM edits. Use `after-cpm.binlog` for one target or a matching `after-cpm-\u003Ctarget-key>.binlog` for each of multiple targets.\n2. Write resolved packages for every target without restoring again. Use `after-cpm-packages.json` for one target or a matching `after-cpm-packages-\u003Ctarget-key>.json` for each of multiple targets.\n3. Produce a compact per-project changes\u002Funchanged comparison without printing or rereading the full JSON files.\n4. If resolved versions changed and the repository exposes a routine, scoped test command for affected projects, run it with `--no-build --no-restore` and record the result. If tests require substantial setup, broad infrastructure, or user approval, recommend the exact scoped command instead. A version-neutral conversion does not require an automatic test run.\n\nIf restore or build fails with a CPM-related error, read [validation-and-errors.md](references\u002Fvalidation-and-errors.md), inspect only the relevant error lines, make a targeted correction, and rerun the affected validation. For SDK, authentication, package-source, file-lock, test-host, or other environmental failures, report the blocker instead of changing the machine or expanding the investigation.\n\nIf a test run fails after a successful build, inspect only enough output to determine whether CPM package resolution caused it. Apply a targeted correction only when the evidence clearly identifies a CPM defect; otherwise record the failure and recommended user action without expanding into test-host, SDK, output-directory, or dependency-copy debugging.\n\n### 6. Write the report\n\nRead [report-template.md](references\u002Freport-template.md) now, not earlier. Create `convert-to-cpm.md` beside the other artifacts. It must include the six required sections, every explicit target and CPM management scope, concrete conflict impacts, the aggregate package comparison, risk level, follow-ups, artifact usage, and the name of every shared `.props`\u002F`.targets` file inspected or changed. In the final response, mention those shared files, the risk level, and how any conditional references and target frameworks were preserved. Avoid rewriting the report after validation unless verification finds an omission or incorrect evidence.\n\n## Required conversion artifacts\n\nPreserve the report and every target's four evidence files; they are not temporary files. For one target, the five deliverables are:\n\n- `baseline.binlog`\n- `after-cpm.binlog`\n- `baseline-packages.json`\n- `after-cpm-packages.json`\n- `convert-to-cpm.md`\n\nFor multiple targets, replace the four fixed evidence names with unique target-keyed pairs such as `baseline-api.binlog`, `after-cpm-api.binlog`, `baseline-packages-api.json`, and `after-cpm-packages-api.json`. Keep one aggregate `convert-to-cpm.md`.\n\n## Efficiency rules\n\n- Batch independent reads and edits when supported.\n- Keep full build logs and package JSON out of the conversation; return compact summaries and artifact paths.\n- Do not repeat successful commands or reread successful output.\n- In conversion mode, do not perform package upgrades, broad outdated\u002Fdeprecated scans, repeated tests, or unrelated repository exploration. The single conditional vulnerability query and test run defined above are part of complete high-risk conversion validation. Package maintenance can perform the requested upgrades and one scoped version-discovery query needed to resolve them.\n- Do not install or remove an SDK, create a temporary SDK selector, change roll-forward policy, invoke SDK-internal assemblies, kill unrelated processes, or clean host tooling\u002Ftemp infrastructure. Report an environment prerequisite and stop.\n\n## Validation\n\n- [ ] Baseline and converted builds succeeded for every explicit target and all target binlogs exist\n- [ ] Every managed `PackageReference` has no `Version`, or intentionally uses `VersionOverride`\n- [ ] Every managed package has the correct central `PackageVersion`\n- [ ] Conditions and non-version metadata were preserved\n- [ ] Before\u002Fafter package comparison contains no unexplained changes\n- [ ] Inlined version properties have neither remaining `$()` references nor obsolete XML definitions\n- [ ] The report and all per-target baseline and converted artifacts exist\n","# Convert to Central Package Management\n\nCentralize package versions in `Directory.Packages.props` while preserving project behavior and producing reviewable before\u002Fafter evidence.\n\n## Choose a mode first\n\nDo this before running builds or changing files.\n\n1. **Guard mode** -- If any in-scope project uses `packages.config`, stop. Explain that CPM requires `PackageReference` and recommend migrating first. Do not create or modify files.\n2. **Package-maintenance mode** -- A request to update, align, bump, or sync packages authorizes those package edits, not CPM conversion. Audit the named scope, resolve the requested versions, update existing project\u002Fshared version declarations, and restore\u002Fbuild every affected CLI target from the directory that establishes its applicable `global.json`. Ask only when the version or alignment policy is ambiguous. Do not create or modify `Directory.Packages.props`, remove versions for CPM, or capture conversion artifacts. Complete the package work, then recommend CPM as the durable follow-up.\n3. **Conversion mode** -- Use only when the user explicitly asks to adopt, enable, or convert to CPM. Follow the workflow below.\n\nIf the scope is unclear, ask once before proceeding.\n\n### Default execution plan\n\n- **Guard**: use a minimal scoped detection pass, then answer and stop.\n- **Package maintenance**: use a compact audit, edit only the requested package versions in their existing locations, validate affected targets, then recommend CPM. Do not read conversion references or enter the conversion workflow.\n- **Conversion**: batch the preflight, baseline, audit\u002Fmutation, final validation, and report work to avoid redundant turns. Revisit a stage only when new CPM-specific evidence requires a targeted follow-up.\n\nThis plan is an efficiency default, not a hard cap. Never omit an in-scope project, imported `.props`\u002F`.targets` file, detected complexity, required validation, or deliverable to save a turn. Batch complete work where practical.\n\n## Inputs\n\n| Input | Required | Rule |\n|-------|----------|------|\n| Scope | Yes | Project, solution, or directory containing the projects to inspect or convert |\n| Conflict strategy | For package maintenance or conversion with conflicts | If the user already supplied a strategy such as \"use the highest version,\" apply it without asking again and record its impact. Otherwise stop after the audit and ask before editing. |\n\n## Read references only when needed\n\nNever preload all references.\n\n| Condition | Read |\n|-----------|------|\n| Entering conversion baseline or producing the package diff | [baseline-comparison.md](references\u002Fbaseline-comparison.md) |\n| A conflict, conditional reference, shared import, security concern, or `VersionOverride` is detected | [audit-complexities.md](references\u002Faudit-complexities.md) |\n| Placement is unclear or conditional `PackageVersion`\u002F`VersionOverride` is required | [directory-packages-props.md](references\u002Fdirectory-packages-props.md) |\n| A package version uses an MSBuild property | [msbuild-property-handling.md](references\u002Fmsbuild-property-handling.md) |\n| Restore or build fails after conversion | [validation-and-errors.md](references\u002Fvalidation-and-errors.md) |\n| Writing the final report | [report-template.md](references\u002Freport-template.md) |\n\n## Conversion workflow\n\n### 1. Scope and preflight\n\n- Resolve the project\u002Fsolution scope. For a solution, list its projects. For a directory, search only beneath that directory and create an explicit target set that covers the full scope: use each applicable `.sln`\u002F`.slnx`, then add each project not covered by a solution. Verify that every in-scope project is covered and avoid duplicate work for projects that occur in more than one target. Ask only when overlapping targets or repository boundaries make the intended coverage ambiguous; never ask the user to select one target when that would omit in-scope projects.\n- Determine CPM management scopes separately from CLI targets. Group projects that will share one central version policy and place one `Directory.Packages.props` at each group's first common ancestor, while respecting existing nearest-file boundaries. Multiple CLI targets can share one CPM file; independent project groups can require separate files.\n- Check for `packages.config`; if found, switch to Guard mode and stop.\n- Check the scope and ancestors for `Directory.Packages.props`. If CPM is already fully enabled, report that and stop. If a partial file exists, preserve it and ask only when its intended scope is ambiguous.\n- Choose one common artifact directory within the resolved scope, normally the targets' first common ancestor. Use explicit paths into it for every binlog, package snapshot, and the report.\n- Run each target's .NET commands from its solution\u002Fproject directory or another directory that establishes its applicable `global.json`, not from an unrelated parent workspace.\n- Do not inspect unrelated projects or host-tool configuration when the user supplied a scope.\n\n### 2. Capture the baseline\n\nRead [baseline-comparison.md](references\u002Fbaseline-comparison.md). For each target, determine the active SDK once from that target's command directory and select the documented command syntax for that version. If SDK resolution fails or the SDK cannot process the requested solution format, stop and report the prerequisite; do not alter the host SDK or repository SDK policy unless the user asks.\n\nThen use one command batch to:\n\n1. Clean, restore, and build every explicit target. Use `baseline.binlog` for one target or a unique `baseline-\u003Ctarget-key>.binlog` for each of multiple targets.\n2. Write resolved packages for every target without restoring again. Use `baseline-packages.json` for one target or a matching `baseline-packages-\u003Ctarget-key>.json` for each of multiple targets.\n3. Keep normal command output concise. Save full output to artifacts when useful; inspect only errors on failure and never read the binlog as text.\n\nFinish every baseline before editing. If any baseline build fails, stop without modifying files and preserve all artifacts already produced.\n\n### 3. Audit with a targeted checklist\n\nUse all baseline snapshots plus one targeted scan of in-scope project, `.props`, and `.targets` files. Identify:\n\n- Package IDs, resolved versions, and consuming projects\n- Version conflicts\n- MSBuild property-based versions and their definitions\n- Conditional `PackageReference` items\n- Imported files containing package references\n- Existing `VersionOverride` usage\n\nFor a complex scope, complete every applicable item above across all projects and imported files; do not stop after finding the first conflict.\n\nDo not run broad `--outdated` or `--deprecated` scans by default. Before editing, attempt a scoped `--vulnerable --include-transitive` query when the user requested security information, a known advisory must be verified, or conflict resolution will move a project across a major package version. Record the compact findings, \"no advisories found,\" or why the check could not run. If a high-risk check is unavailable because of authentication, package-source, or offline constraints, surface the uncertainty and confirm the user's strategy rather than silently treating it as safe. Do not upgrade beyond the highest version already in scope as part of a CPM conversion.\n\nPresent conflicts and their impact. Explicitly classify major-version alignment as high risk and minor\u002Fpatch alignment as moderate risk without performing an extra online scan. If the user supplied a conflict strategy, proceed. Otherwise ask for the unresolved decisions and stop before editing.\n\n### 4. Create CPM files and update references\n\n- Create or update each required `Directory.Packages.props` at its computed management scope with `ManagePackageVersionsCentrally` set to `true`.\n- Add one alphabetically sorted `PackageVersion` per package, preserving required target-framework conditions.\n- Remove only `Version` from managed `PackageReference` items in projects and imported files.\n- Preserve conditions, whitespace, and all other metadata such as `PrivateAssets`, `IncludeAssets`, `ExcludeAssets`, `GeneratePathProperty`, and `Aliases`.\n- Use `VersionOverride` only when the chosen strategy requires it.\n\nFor MSBuild version properties, follow [msbuild-property-handling.md](references\u002Fmsbuild-property-handling.md). When the user directs inlining, include both the literal `PackageVersion` and removal of the obsolete property definition in the same mutation batch. Before final validation, verify separately that:\n\n1. No `$(PropertyName)` references remain in scoped project, `.props`, or `.targets` files.\n2. No `\u003CPropertyName>...\u003C\u002FPropertyName>` definition remains for each property chosen for removal.\n\nDo not rely on a `$()` reference scan to prove that the XML property definition was removed.\n\n### 5. Validate and compare\n\nUsing [baseline-comparison.md](references\u002Fbaseline-comparison.md), validate the final on-disk state after all project, shared-file, and property edits. Use one command batch to:\n\n1. Clean, restore, and build every explicit target after all CPM edits. Use `after-cpm.binlog` for one target or a matching `after-cpm-\u003Ctarget-key>.binlog` for each of multiple targets.\n2. Write resolved packages for every target without restoring again. Use `after-cpm-packages.json` for one target or a matching `after-cpm-packages-\u003Ctarget-key>.json` for each of multiple targets.\n3. Produce a compact per-project changes\u002Funchanged comparison without printing or rereading the full JSON files.\n4. If resolved versions changed and the repository exposes a routine, scoped test command for affected projects, run it with `--no-build --no-restore` and record the result. If tests require substantial setup, broad infrastructure, or user approval, recommend the exact scoped command instead. A version-neutral conversion does not require an automatic test run.\n\nIf restore or build fails with a CPM-related error, read [validation-and-errors.md](references\u002Fvalidation-and-errors.md), inspect only the relevant error lines, make a targeted correction, and rerun the affected validation. For SDK, authentication, package-source, file-lock, test-host, or other environmental failures, report the blocker instead of changing the machine or expanding the investigation.\n\nIf a test run fails after a successful build, inspect only enough output to determine whether CPM package resolution caused it. Apply a targeted correction only when the evidence clearly identifies a CPM defect; otherwise record the failure and recommended user action without expanding into test-host, SDK, output-directory, or dependency-copy debugging.\n\n### 6. Write the report\n\nRead [report-template.md](references\u002Freport-template.md) now, not earlier. Create `convert-to-cpm.md` beside the other artifacts. It must include the six required sections, every explicit target and CPM management scope, concrete conflict impacts, the aggregate package comparison, risk level, follow-ups, artifact usage, and the name of every shared `.props`\u002F`.targets` file inspected or changed. In the final response, mention those shared files, the risk level, and how any conditional references and target frameworks were preserved. Avoid rewriting the report after validation unless verification finds an omission or incorrect evidence.\n\n## Required conversion artifacts\n\nPreserve the report and every target's four evidence files; they are not temporary files. For one target, the five deliverables are:\n\n- `baseline.binlog`\n- `after-cpm.binlog`\n- `baseline-packages.json`\n- `after-cpm-packages.json`\n- `convert-to-cpm.md`\n\nFor multiple targets, replace the four fixed evidence names with unique target-keyed pairs such as `baseline-api.binlog`, `after-cpm-api.binlog`, `baseline-packages-api.json`, and `after-cpm-packages-api.json`. Keep one aggregate `convert-to-cpm.md`.\n\n## Efficiency rules\n\n- Batch independent reads and edits when supported.\n- Keep full build logs and package JSON out of the conversation; return compact summaries and artifact paths.\n- Do not repeat successful commands or reread successful output.\n- In conversion mode, do not perform package upgrades, broad outdated\u002Fdeprecated scans, repeated tests, or unrelated repository exploration. The single conditional vulnerability query and test run defined above are part of complete high-risk conversion validation. Package maintenance can perform the requested upgrades and one scoped version-discovery query needed to resolve them.\n- Do not install or remove an SDK, create a temporary SDK selector, change roll-forward policy, invoke SDK-internal assemblies, kill unrelated processes, or clean host tooling\u002Ftemp infrastructure. Report an environment prerequisite and stop.\n\n## Validation\n\n- [ ] Baseline and converted builds succeeded for every explicit target and all target binlogs exist\n- [ ] Every managed `PackageReference` has no `Version`, or intentionally uses `VersionOverride`\n- [ ] Every managed package has the correct central `PackageVersion`\n- [ ] Conditions and non-version metadata were preserved\n- [ ] Before\u002Fafter package comparison contains no unexplained changes\n- [ ] Inlined version properties have neither remaining `$()` references nor obsolete XML definitions\n- [ ] The report and all per-target baseline and converted artifacts exist\n",{"name":5,"license":14,"description":23},"Convert .NET projects and solutions (.sln, .slnx) to NuGet Central Package Management (CPM) using Directory.Packages.props. USE FOR: converting to CPM, centralizing or aligning NuGet package versions across multiple projects, inlining MSBuild version properties from Directory.Build.props into Directory.Packages.props, resolving version conflicts or mismatches across a solution or repository, updating or bumping or syncing package versions across projects. Also activate when packages are out of sync, drifting, or inconsistent -- even without the user mentioning CPM. Provides baseline build capture, version conflict resolution, build validation with binlog comparison, and a structured post-conversion report. DO NOT USE FOR: packages.config projects (must migrate to PackageReference first) or repositories that already have CPM fully enabled.\n","main","ccab8dffc0ecc173838f51e4c5f0d3b51a704f41","plugins\u002Fopt-in\u002Fimplementation\u002Fcsharp-skills\u002Flibrary\u002Fconvert-to-cpm","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 convert-to-cpm",{"tool":38,"command":39},"bunx","bunx skills add deadmade\u002Fdead-agent-skills --skill convert-to-cpm",{"tool":41,"command":42},"pnpm","pnpm dlx skills add deadmade\u002Fdead-agent-skills --skill convert-to-cpm","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fopt-in\u002Fimplementation\u002Fcsharp-skills\u002Flibrary\u002Fconvert-to-cpm\u002FSKILL.md",true,[46,52,56,60,64,68],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"references\u002Faudit-complexities.md","REFERENCE","参考文档",5411,"https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fopt-in\u002Fimplementation\u002Fcsharp-skills\u002Flibrary\u002Fconvert-to-cpm\u002Freferences\u002Faudit-complexities.md",{"path":53,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":54,"sourceHtmlUrl":55},"references\u002Fbaseline-comparison.md",7408,"https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fopt-in\u002Fimplementation\u002Fcsharp-skills\u002Flibrary\u002Fconvert-to-cpm\u002Freferences\u002Fbaseline-comparison.md",{"path":57,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":58,"sourceHtmlUrl":59},"references\u002Fdirectory-packages-props.md",3710,"https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fopt-in\u002Fimplementation\u002Fcsharp-skills\u002Flibrary\u002Fconvert-to-cpm\u002Freferences\u002Fdirectory-packages-props.md",{"path":61,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":62,"sourceHtmlUrl":63},"references\u002Fmsbuild-property-handling.md",3539,"https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fopt-in\u002Fimplementation\u002Fcsharp-skills\u002Flibrary\u002Fconvert-to-cpm\u002Freferences\u002Fmsbuild-property-handling.md",{"path":65,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":66,"sourceHtmlUrl":67},"references\u002Freport-template.md",3713,"https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fopt-in\u002Fimplementation\u002Fcsharp-skills\u002Flibrary\u002Fconvert-to-cpm\u002Freferences\u002Freport-template.md",{"path":69,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":70,"sourceHtmlUrl":71},"references\u002Fvalidation-and-errors.md",3245,"https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fopt-in\u002Fimplementation\u002Fcsharp-skills\u002Flibrary\u002Fconvert-to-cpm\u002Freferences\u002Fvalidation-and-errors.md",[73,80,89,97,104,111],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"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":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":84,"licenseFileUrl":85,"sourceHtmlUrl":86,"categories":87,"keywords":88,"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":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":84,"licenseFileUrl":93,"sourceHtmlUrl":94,"categories":95,"keywords":96,"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":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"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":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"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":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":117,"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",[],[]]