[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F4VRXB35HECDMZR0SVK7DA":3,"skill-same:01M7F4VRXB35HECDMZR0SVK7DA":57},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M7F4VRXB35HECDMZR0SVK7DA","csharp-refactoring",null,"Refactor C# and reconcile stale constants, dead checks and abandoned code, including indirect production uses. Use for renames, moves, deduplication, exhaustive cleanup, generated declarations and runtime\u002FAPI contracts. MSTest test design and review belong to mstest-extensions.","ANcpLua\u002Fancplua-dotnet","ANcpLua","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F124206820?v=4","01M6HB10NW8NGRV7W0N7WGZS7S","Alexander Nachtmann","01M7F4V3J3B3GGXPV413WXK8KX",1,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FANcpLua\u002Fancplua-dotnet\u002Fblob\u002Fmain\u002Fpackages\u002Fancplua-dotnet\u002Fskills\u002Fcsharp-refactoring\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: csharp-refactoring\ndescription: Refactor C# and reconcile stale constants, dead checks and abandoned code, including indirect production uses. Use for renames, moves, deduplication, exhaustive cleanup, generated declarations and runtime\u002FAPI contracts. MSTest test design and review belong to mstest-extensions.\nlicense: Apache-2.0\n---\n\n# C# refactoring\n\n## Process\n\n1. **Map the change.** Find the declaration, binding references, generator inputs\n   and affected TFMs or `#if` branches. Identify which contracts must stay stable\n   and which changes the user authorized. A compile-clean rename alone does not\n   establish compatibility with runtime consumers.\n2. **Edit the owner.** Prefer IDE\u002FRoslyn rename or compiler-checked binding edits.\n   Include partial declarations; change generator inputs rather than generated\n   output. Extract shared behavior toward its existing owner, preserving each\n   caller's inputs, evaluation order and side effects.\n3. **Verify the boundary.** Use the repository's affected build\u002Ftest entrypoint\n   for each changed target. Reuse its compilation evidence instead of building\n   twice. Check the runtime contracts below when touched; report unverified\n   branches explicitly. Keep authorized behavior changes distinct from the\n   mechanical refactor without refusing the rest of the task.\n\n## Contracts the compiler cannot settle\n\n| Boundary | Check |\n| --- | --- |\n| Serialization, configuration, reflection, DI or `dynamic` | Names may be data. Preserve external names through existing metadata, or migrate their consumers when that change is authorized. |\n| Public API, nullable annotations, parameter names | Include source\u002Fbinary compatibility and named arguments; check the repository's API record when present. |\n| Type moved between assemblies | A same-name move may need `TypeForwardedTo` in the original assembly; a rename needs a different compatibility decision. |\n| Generated\u002Fpartial code, friends, conditional builds | Follow generator ownership, `InternalsVisibleTo`, all declarations and each affected compilation. |\n| Wrapper removal or type merge | Retain compatibility adapters only for a real consumer boundary. Remove internal dead indirection once its callers are migrated. |\n\nA CLR rename can preserve an existing JSON field through explicit metadata:\n\n```csharp\n[JsonPropertyName(\"request_id\")]\npublic required string RequestId { get; init; }\n```\n\nKeep `request_id` when only the CLR name changes; verify the wire contract through\nits actual serializer or generated metadata.\n\n## Constants and abandoned code\n\nFor exhaustive cleanup, use [constant reconciliation](references\u002Fconstant-reconciliation.md).\nAccount for every declaration in scope, including retained and unresolved items;\ndo not stop at an easy deletion shortlist. When runtime cost is in scope, invoke\n`ancplua-dotnet:performance` for measurements. MSTest implementation\u002Fverification\nuses `mstest-extensions:mstest`; targeted assertion fixes use\n`mstest-extensions:mstest-assertions`. Package\u002Fframework upgrades use\n`ancplua-dotnet:nuget-versions`. Invoke only an available skill for the requested\npart; report a missing specialist and preserve the remaining refactoring scope.\n","# C# refactoring\n\n## Process\n\n1. **Map the change.** Find the declaration, binding references, generator inputs\n   and affected TFMs or `#if` branches. Identify which contracts must stay stable\n   and which changes the user authorized. A compile-clean rename alone does not\n   establish compatibility with runtime consumers.\n2. **Edit the owner.** Prefer IDE\u002FRoslyn rename or compiler-checked binding edits.\n   Include partial declarations; change generator inputs rather than generated\n   output. Extract shared behavior toward its existing owner, preserving each\n   caller's inputs, evaluation order and side effects.\n3. **Verify the boundary.** Use the repository's affected build\u002Ftest entrypoint\n   for each changed target. Reuse its compilation evidence instead of building\n   twice. Check the runtime contracts below when touched; report unverified\n   branches explicitly. Keep authorized behavior changes distinct from the\n   mechanical refactor without refusing the rest of the task.\n\n## Contracts the compiler cannot settle\n\n| Boundary | Check |\n| --- | --- |\n| Serialization, configuration, reflection, DI or `dynamic` | Names may be data. Preserve external names through existing metadata, or migrate their consumers when that change is authorized. |\n| Public API, nullable annotations, parameter names | Include source\u002Fbinary compatibility and named arguments; check the repository's API record when present. |\n| Type moved between assemblies | A same-name move may need `TypeForwardedTo` in the original assembly; a rename needs a different compatibility decision. |\n| Generated\u002Fpartial code, friends, conditional builds | Follow generator ownership, `InternalsVisibleTo`, all declarations and each affected compilation. |\n| Wrapper removal or type merge | Retain compatibility adapters only for a real consumer boundary. Remove internal dead indirection once its callers are migrated. |\n\nA CLR rename can preserve an existing JSON field through explicit metadata:\n\n```csharp\n[JsonPropertyName(\"request_id\")]\npublic required string RequestId { get; init; }\n```\n\nKeep `request_id` when only the CLR name changes; verify the wire contract through\nits actual serializer or generated metadata.\n\n## Constants and abandoned code\n\nFor exhaustive cleanup, use [constant reconciliation](references\u002Fconstant-reconciliation.md).\nAccount for every declaration in scope, including retained and unresolved items;\ndo not stop at an easy deletion shortlist. When runtime cost is in scope, invoke\n`ancplua-dotnet:performance` for measurements. MSTest implementation\u002Fverification\nuses `mstest-extensions:mstest`; targeted assertion fixes use\n`mstest-extensions:mstest-assertions`. Package\u002Fframework upgrades use\n`ancplua-dotnet:nuget-versions`. Invoke only an available skill for the requested\npart; report a missing specialist and preserve the remaining refactoring scope.\n",{"name":5,"license":15,"description":7},"main","703474adbca925ced1bb614d1d53a21dd9125e4b","packages\u002Fancplua-dotnet\u002Fskills\u002Fcsharp-refactoring",0,"https:\u002F\u002Fgithub.com\u002FANcpLua\u002Fancplua-dotnet","https:\u002F\u002Fgithub.com\u002FANcpLua","SWE Student ","Ein Tag lehrt den anderen.       \r\n    ♉🍏🐍 \r\n","2026-11-10 12:15:27",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add ANcpLua\u002Fancplua-dotnet --skill csharp-refactoring",{"tool":39,"command":40},"bunx","bunx skills add ANcpLua\u002Fancplua-dotnet --skill csharp-refactoring",{"tool":42,"command":43},"pnpm","pnpm dlx skills add ANcpLua\u002Fancplua-dotnet --skill csharp-refactoring","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FANcpLua\u002Fancplua-dotnet\u002Fblob\u002Fmain\u002Fpackages\u002Fancplua-dotnet\u002Fskills\u002Fcsharp-refactoring\u002FSKILL.md",true,[47,53],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"agents\u002Fopenai.yaml","REFERENCE","参考文档",302,"https:\u002F\u002Fgithub.com\u002FANcpLua\u002Fancplua-dotnet\u002Fblob\u002Fmain\u002Fpackages\u002Fancplua-dotnet\u002Fskills\u002Fcsharp-refactoring\u002Fagents\u002Fopenai.yaml",{"path":54,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":55,"sourceHtmlUrl":56},"references\u002Fconstant-reconciliation.md",2759,"https:\u002F\u002Fgithub.com\u002FANcpLua\u002Fancplua-dotnet\u002Fblob\u002Fmain\u002Fpackages\u002Fancplua-dotnet\u002Fskills\u002Fcsharp-refactoring\u002Freferences\u002Fconstant-reconciliation.md",[58,67,74,81,88,95],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":62,"licenseFileUrl":63,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M7F4X02P5FFKPX5MQPHKFJGY","csharp-union-types","Design, review and implement C# 15 unions and closed hierarchies in .NET 11 code. Use for union declarations, custom [Union] types, exhaustive matching, default\u002Fnull handling and union serialization. Do not upgrade earlier frameworks or replace working inheritance merely because unions exist.","MIT","https:\u002F\u002Fgithub.com\u002FANcpLua\u002Fancplua-dotnet\u002Fblob\u002Fmain\u002Fpackages\u002Fnami\u002Fplugins\u002Fnami\u002Fskills\u002Fcsharp-union-types\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FANcpLua\u002Fancplua-dotnet\u002Fblob\u002Fmain\u002Fpackages\u002Fnami\u002Fplugins\u002Fnami\u002Fskills\u002Fcsharp-union-types\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M7F4WBZN94STF7KJN1WHDVRK","release","Releases .NET NuGet packages through a layered chain (library, MSBuild SDK, analyzers, consumers) without breaking restore. Use when publishing a package, bumping a lower-layer dependency in its consumers, moving a .NET SDK pin across repositories, choosing tag-driven versus push-driven publishing, setting up NuGet trusted publishing, or waiting for nuget.org to index a version before consumers restore it.","https:\u002F\u002Fgithub.com\u002FANcpLua\u002Fancplua-dotnet\u002Fblob\u002Fmain\u002Fpackages\u002Fancplua-dotnet\u002Fskills\u002Frelease\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M7F4W5B0G7ENQ1E8136T5BRY","performance","Investigate .NET runtime performance using logs, metrics, traces, spans and profiles; collect crash\u002Fhang diagnostics. Use for CPU, GC, allocation or latency problems, hot-path reviews and BenchmarkDotNet comparisons. MSBuild timing belongs to msbuild; MSTest execution belongs to mstest-extensions.","https:\u002F\u002Fgithub.com\u002FANcpLua\u002Fancplua-dotnet\u002Fblob\u002Fmain\u002Fpackages\u002Fancplua-dotnet\u002Fskills\u002Fperformance\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M7F4W0T0N9V8T6JPP3MN5V4P","nuget-versions","Manage .NET package and SDK versions, CPM migrations, Version.props ownership, global.json pins, isolated SDK installations and Renovate updates. Use for package bumps, conflicting or missing versions, NuGet restore errors and SDK selection. MSTest runner\u002Fprofile semantics belong to mstest-extensions.","https:\u002F\u002Fgithub.com\u002FANcpLua\u002Fancplua-dotnet\u002Fblob\u002Fmain\u002Fpackages\u002Fancplua-dotnet\u002Fskills\u002Fnuget-versions\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":19},"01M7F4VW470PY61YBE70VZ0XMY","msbuild","Writes and reviews MSBuild evaluation, properties, items, imports, custom targets and build\u002FbuildTransitive package assets for SDK-style .NET repositories. Use for ignored or empty properties\u002Fitems, generated files, analyzer\u002Fbuild-asset packaging, build-file reviews, binlog diagnosis and incremental-build problems. Focused MSTest project setup, runner configuration and test commands belong to mstest-extensions.","https:\u002F\u002Fgithub.com\u002FANcpLua\u002Fancplua-dotnet\u002Fblob\u002Fmain\u002Fpackages\u002Fancplua-dotnet\u002Fskills\u002Fmsbuild\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":19},"01M7F4VM8GMZ0ZB4STXWFZCB69","audit","Audits one or more .NET repositories for build, package and analyzer problems and separates certain fixes from judgment calls. Use for repository or fleet build-policy audits, shared SDK\u002Fpackage consistency and cross-repository version rollouts. Focused MSTest setup, execution and test-quality reviews belong to mstest-extensions.","https:\u002F\u002Fgithub.com\u002FANcpLua\u002Fancplua-dotnet\u002Fblob\u002Fmain\u002Fpackages\u002Fancplua-dotnet\u002Fskills\u002Faudit\u002FSKILL.md",[],[]]