[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M756PTT0MVGSGNE7H5TG7EQD":3,"skill-same:01M756PTT0MVGSGNE7H5TG7EQD":46},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":14,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":6,"updatedAt":31,"install":32,"resources":45},"01M756PTT0MVGSGNE7H5TG7EQD","template-instantiation",null,"Creates .NET projects from templates with validated parameters, smart defaults, Central Package Management adaptation, and latest NuGet version resolution. USE FOR: creating new dotnet projects, scaffolding solutions with multiple projects, installing or uninstalling template packages, creating projects that respect Directory.Packages.props (CPM), composing multi-project solutions (API + tests + library), getting latest NuGet package versions in newly created projects. DO NOT USE FOR: finding or comparing templates (use template-discovery), authoring custom templates (use template-authoring), modifying existing projects or adding NuGet packages to existing projects.","weiflycc-cmd\u002Fskills","weiflycc-cmd","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F250846518?v=4","01M756C4PFGZJWKK04WFB9S5XF","威飛工作室","01M756C4QJJ66QDXN2RN6SXY87",0,"MIT","https:\u002F\u002Fgithub.com\u002Fweiflycc-cmd\u002Fskills\u002Fblob\u002Fmain\u002Fplugins\u002Fdotnet-template-engine\u002Fskills\u002Ftemplate-instantiation\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: template-instantiation\ndescription: >\n  Creates .NET projects from templates with validated parameters, smart defaults,\n  Central Package Management adaptation, and latest NuGet version resolution.\n  USE FOR: creating new dotnet projects, scaffolding solutions with multiple projects,\n  installing or uninstalling template packages, creating projects that respect\n  Directory.Packages.props (CPM), composing multi-project solutions (API + tests + library),\n  getting latest NuGet package versions in newly created projects.\n  DO NOT USE FOR: finding or comparing templates (use template-discovery), authoring\n  custom templates (use template-authoring), modifying existing projects or adding\n  NuGet packages to existing projects.\nlicense: MIT\n---\n\n# Template Instantiation\n\nThis skill creates .NET projects from templates using `dotnet new` CLI commands, with guidance for parameter validation, Central Package Management adaptation, and multi-project composition.\n\n## When to Use\n\n- User asks to create a new .NET project, app, or service\n- User needs a solution with multiple projects (API + tests + library)\n- User wants to create a project that respects existing `Directory.Packages.props`\n- User needs to install or manage template packages\n\n## When Not to Use\n\n- User is searching for or comparing templates — route to `template-discovery` skill\n- User wants to author a custom template — route to `template-authoring` skill\n- User wants to add packages to an existing project — use `dotnet add package` directly\n\n## Inputs\n\n| Input | Required | Description |\n|-------|----------|-------------|\n| Template name or intent | Yes | Template short name (e.g., `webapi`) or natural-language description |\n| Project name | Yes | Name for the created project |\n| Output path | Recommended | Directory where the project should be created |\n| Parameters | No | Template-specific parameters (e.g., `--framework`, `--auth`, `--aot`) |\n\n## Workflow\n\n### Step 1: Resolve template and parameters\n\nIf the user provides a natural-language description, map it to a template short name (see the keyword table in the `template-discovery` skill). If they provide a template name, proceed directly.\n\nUse `dotnet new \u003Ctemplate> --help` to review available parameters, defaults, and types for any parameters the user did not specify.\n\n### Step 2: Analyze the workspace\n\nCheck the existing solution structure before creating:\n- Is Central Package Management (CPM) enabled? Look for `Directory.Packages.props`\n- What target frameworks are in use? Check existing `.csproj` files\n- Is there a `global.json` pinning the SDK?\n\nThis ensures the new project is consistent with the workspace.\n\n### Step 3: Preview the creation\n\nUse `dotnet new \u003Ctemplate> --dry-run` to show the user what files would be created. Confirm before proceeding.\n\n```bash\ndotnet new webapi --name MyApi --framework net10.0 --dry-run\n```\n\n### Step 4: Create the project\n\nUse `dotnet new` with the template name and all parameters:\n\n```bash\ndotnet new webapi --name MyApi --output .\u002Fsrc\u002FMyApi --framework net10.0 --auth Individual\n```\n\n#### Common parameter combinations\n\n| Template | Parameters | Example |\n|----------|-----------|---------|\n| `webapi` | `--auth` (None, Individual, SingleOrg, Windows), `--aot` (native AOT) | `dotnet new webapi -n MyApi --auth Individual --aot` |\n| `webapi` | `--use-controllers` (use controllers vs minimal APIs) | `dotnet new webapi -n MyApi --use-controllers` |\n| `blazor` | `--interactivity` (None, Server, WebAssembly, Auto), `--auth` | `dotnet new blazor -n MyApp --interactivity Server` |\n| `grpc` | `--aot` (native AOT) | `dotnet new grpc -n MyService --aot` |\n| `worker` | `--aot` (native AOT) | `dotnet new worker -n MyWorker --aot` |\n\nNote: Use `dotnet new \u003Ctemplate> --help` to see all available parameters for any template.\n\nAfter creation, if the workspace uses CPM:\n1. Check `.csproj` for inline `\u003CPackageReference>` versions\n2. Move version attributes to `Directory.Packages.props` as `\u003CPackageVersion>` entries\n3. Remove `Version` attributes from the `.csproj`\n\n### Step 5: Multi-project composition (optional)\n\nFor complex structures, create each project sequentially and wire them together:\n\n```bash\ndotnet new webapi --name MyApi --output .\u002Fsrc\u002FMyApi\ndotnet new xunit --name MyApi.Tests --output .\u002Ftests\u002FMyApi.Tests\ndotnet add .\u002Ftests\u002FMyApi.Tests reference .\u002Fsrc\u002FMyApi\ndotnet sln add .\u002Fsrc\u002FMyApi .\u002Ftests\u002FMyApi.Tests\n```\n\n### Step 6: Template package management\n\nInstall or uninstall template packages:\n\n```bash\ndotnet new install Microsoft.DotNet.Web.ProjectTemplates.10.0\ndotnet new uninstall Microsoft.DotNet.Web.ProjectTemplates.10.0\n```\n\n### Step 7: Post-creation verification\n\n1. Verify the project builds: `dotnet build`\n2. If added to a solution, verify `dotnet build` at the solution level\n3. If CPM was adapted, verify `Directory.Packages.props` has the new entries\n\n## Validation\n\n- [ ] Project was created successfully with the expected files\n- [ ] Project builds cleanly with `dotnet build`\n- [ ] If CPM is active, `.csproj` has no version attributes and `Directory.Packages.props` has matching entries\n- [ ] Package versions in the project are current (not stale template defaults)\n- [ ] If multi-project, all projects build and reference each other correctly\n\n## Common Pitfalls\n\n| Pitfall | Solution |\n|---------|----------|\n| Not checking for CPM before creating a project | If `Directory.Packages.props` exists, `dotnet new` creates projects with inline versions that conflict. After creation, move versions to `Directory.Packages.props` and remove them from `.csproj`. |\n| Creating projects without specifying the framework | Always specify `--framework` when the template supports multiple TFMs to avoid defaulting to an older version. |\n| Not adding the project to the solution | After creation, run `dotnet sln add` to include the project in the solution. |\n| Not verifying the project builds | Always run `dotnet build` after creation to catch missing dependencies or parameter issues early. |\n\n## More Info\n\n- [Central Package Management](https:\u002F\u002Flearn.microsoft.com\u002Fnuget\u002Fconsume-packages\u002Fcentral-package-management) — CPM documentation\n- [dotnet new](https:\u002F\u002Flearn.microsoft.com\u002Fdotnet\u002Fcore\u002Ftools\u002Fdotnet-new) — CLI reference\n","# Template Instantiation\n\nThis skill creates .NET projects from templates using `dotnet new` CLI commands, with guidance for parameter validation, Central Package Management adaptation, and multi-project composition.\n\n## When to Use\n\n- User asks to create a new .NET project, app, or service\n- User needs a solution with multiple projects (API + tests + library)\n- User wants to create a project that respects existing `Directory.Packages.props`\n- User needs to install or manage template packages\n\n## When Not to Use\n\n- User is searching for or comparing templates — route to `template-discovery` skill\n- User wants to author a custom template — route to `template-authoring` skill\n- User wants to add packages to an existing project — use `dotnet add package` directly\n\n## Inputs\n\n| Input | Required | Description |\n|-------|----------|-------------|\n| Template name or intent | Yes | Template short name (e.g., `webapi`) or natural-language description |\n| Project name | Yes | Name for the created project |\n| Output path | Recommended | Directory where the project should be created |\n| Parameters | No | Template-specific parameters (e.g., `--framework`, `--auth`, `--aot`) |\n\n## Workflow\n\n### Step 1: Resolve template and parameters\n\nIf the user provides a natural-language description, map it to a template short name (see the keyword table in the `template-discovery` skill). If they provide a template name, proceed directly.\n\nUse `dotnet new \u003Ctemplate> --help` to review available parameters, defaults, and types for any parameters the user did not specify.\n\n### Step 2: Analyze the workspace\n\nCheck the existing solution structure before creating:\n- Is Central Package Management (CPM) enabled? Look for `Directory.Packages.props`\n- What target frameworks are in use? Check existing `.csproj` files\n- Is there a `global.json` pinning the SDK?\n\nThis ensures the new project is consistent with the workspace.\n\n### Step 3: Preview the creation\n\nUse `dotnet new \u003Ctemplate> --dry-run` to show the user what files would be created. Confirm before proceeding.\n\n```bash\ndotnet new webapi --name MyApi --framework net10.0 --dry-run\n```\n\n### Step 4: Create the project\n\nUse `dotnet new` with the template name and all parameters:\n\n```bash\ndotnet new webapi --name MyApi --output .\u002Fsrc\u002FMyApi --framework net10.0 --auth Individual\n```\n\n#### Common parameter combinations\n\n| Template | Parameters | Example |\n|----------|-----------|---------|\n| `webapi` | `--auth` (None, Individual, SingleOrg, Windows), `--aot` (native AOT) | `dotnet new webapi -n MyApi --auth Individual --aot` |\n| `webapi` | `--use-controllers` (use controllers vs minimal APIs) | `dotnet new webapi -n MyApi --use-controllers` |\n| `blazor` | `--interactivity` (None, Server, WebAssembly, Auto), `--auth` | `dotnet new blazor -n MyApp --interactivity Server` |\n| `grpc` | `--aot` (native AOT) | `dotnet new grpc -n MyService --aot` |\n| `worker` | `--aot` (native AOT) | `dotnet new worker -n MyWorker --aot` |\n\nNote: Use `dotnet new \u003Ctemplate> --help` to see all available parameters for any template.\n\nAfter creation, if the workspace uses CPM:\n1. Check `.csproj` for inline `\u003CPackageReference>` versions\n2. Move version attributes to `Directory.Packages.props` as `\u003CPackageVersion>` entries\n3. Remove `Version` attributes from the `.csproj`\n\n### Step 5: Multi-project composition (optional)\n\nFor complex structures, create each project sequentially and wire them together:\n\n```bash\ndotnet new webapi --name MyApi --output .\u002Fsrc\u002FMyApi\ndotnet new xunit --name MyApi.Tests --output .\u002Ftests\u002FMyApi.Tests\ndotnet add .\u002Ftests\u002FMyApi.Tests reference .\u002Fsrc\u002FMyApi\ndotnet sln add .\u002Fsrc\u002FMyApi .\u002Ftests\u002FMyApi.Tests\n```\n\n### Step 6: Template package management\n\nInstall or uninstall template packages:\n\n```bash\ndotnet new install Microsoft.DotNet.Web.ProjectTemplates.10.0\ndotnet new uninstall Microsoft.DotNet.Web.ProjectTemplates.10.0\n```\n\n### Step 7: Post-creation verification\n\n1. Verify the project builds: `dotnet build`\n2. If added to a solution, verify `dotnet build` at the solution level\n3. If CPM was adapted, verify `Directory.Packages.props` has the new entries\n\n## Validation\n\n- [ ] Project was created successfully with the expected files\n- [ ] Project builds cleanly with `dotnet build`\n- [ ] If CPM is active, `.csproj` has no version attributes and `Directory.Packages.props` has matching entries\n- [ ] Package versions in the project are current (not stale template defaults)\n- [ ] If multi-project, all projects build and reference each other correctly\n\n## Common Pitfalls\n\n| Pitfall | Solution |\n|---------|----------|\n| Not checking for CPM before creating a project | If `Directory.Packages.props` exists, `dotnet new` creates projects with inline versions that conflict. After creation, move versions to `Directory.Packages.props` and remove them from `.csproj`. |\n| Creating projects without specifying the framework | Always specify `--framework` when the template supports multiple TFMs to avoid defaulting to an older version. |\n| Not adding the project to the solution | After creation, run `dotnet sln add` to include the project in the solution. |\n| Not verifying the project builds | Always run `dotnet build` after creation to catch missing dependencies or parameter issues early. |\n\n## More Info\n\n- [Central Package Management](https:\u002F\u002Flearn.microsoft.com\u002Fnuget\u002Fconsume-packages\u002Fcentral-package-management) — CPM documentation\n- [dotnet new](https:\u002F\u002Flearn.microsoft.com\u002Fdotnet\u002Fcore\u002Ftools\u002Fdotnet-new) — CLI reference\n",{"name":5,"license":15,"description":24},"Creates .NET projects from templates with validated parameters, smart defaults, Central Package Management adaptation, and latest NuGet version resolution. USE FOR: creating new dotnet projects, scaffolding solutions with multiple projects, installing or uninstalling template packages, creating projects that respect Directory.Packages.props (CPM), composing multi-project solutions (API + tests + library), getting latest NuGet package versions in newly created projects. DO NOT USE FOR: finding or comparing templates (use template-discovery), authoring custom templates (use template-authoring), modifying existing projects or adding NuGet packages to existing projects.\n","main","5810d492c9b301d8227f932bf87b5c954c4fa4d6","plugins\u002Fdotnet-template-engine\u002Fskills\u002Ftemplate-instantiation","https:\u002F\u002Fgithub.com\u002Fweiflycc-cmd\u002Fskills","https:\u002F\u002Fgithub.com\u002Fweiflycc-cmd","weiflycc.com","2026-11-10 03:26:55",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add weiflycc-cmd\u002Fskills --skill template-instantiation",{"tool":38,"command":39},"bunx","bunx skills add weiflycc-cmd\u002Fskills --skill template-instantiation",{"tool":41,"command":42},"pnpm","pnpm dlx skills add weiflycc-cmd\u002Fskills --skill template-instantiation","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fweiflycc-cmd\u002Fskills\u002Fblob\u002Fmain\u002Fplugins\u002Fdotnet-template-engine\u002Fskills\u002Ftemplate-instantiation\u002FSKILL.md",true,[],[47,54,61,68,75,82],{"skillNo":48,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":19},"01M76SGT4WG5682JQJ0V3NSK6X","system-text-json-net11","Provides guidance on new System.Text.Json APIs introduced in .NET 11. It covers typed JsonTypeInfo access via GetTypeInfo\u003CT> and TryGetTypeInfo\u003CT> on JsonSerializerOptions, and the new JsonNamingPolicy.PascalCase static property. Use when serializing or deserializing JSON in .NET 11 applications and needing typed metadata access or PascalCase property naming.","https:\u002F\u002Fgithub.com\u002Fweiflycc-cmd\u002Fskills\u002Fblob\u002Fmain\u002Fplugins\u002Fdotnet11\u002Fskills\u002Fsystem-text-json-net11\u002FSKILL.md",[],[],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":19},"01M76SGPNZYYV9BCZJW7BF7J8A","nuget-trusted-publishing","Set up NuGet trusted publishing (OIDC) on a GitHub Actions repo — replaces long-lived API keys with short-lived tokens. USE FOR: trusted publishing, NuGet OIDC, keyless NuGet publish, migrate from NuGet API key, NuGet\u002Flogin, secure NuGet publishing. DO NOT USE FOR: publishing to private feeds or Azure Artifacts (OIDC is nuget.org only). INVOKES: shell (powershell or bash), edit, create, ask_user for guided repo setup.","https:\u002F\u002Fgithub.com\u002Fweiflycc-cmd\u002Fskills\u002Fblob\u002Fmain\u002Fplugins\u002Fdotnet\u002Fskills\u002Fnuget-trusted-publishing\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M76SGHVNBNVM1DMVDYTMAE5G","dotnet-pinvoke","Correctly call native (C\u002FC++) libraries from .NET using P\u002FInvoke and LibraryImport. Covers function signatures, string marshalling, memory lifetime, SafeHandle, and cross-platform patterns. USE FOR: writing new P\u002FInvoke or LibraryImport declarations, reviewing or debugging existing native interop code, wrapping a C or C++ library for use in .NET, diagnosing crashes, memory leaks, or corruption at the managed\u002Fnative boundary. DO NOT USE FOR: COM interop, C++\u002FCLI mixed-mode assemblies, or pure managed code with no native dependencies.","https:\u002F\u002Fgithub.com\u002Fweiflycc-cmd\u002Fskills\u002Fblob\u002Fmain\u002Fplugins\u002Fdotnet\u002Fskills\u002Fdotnet-pinvoke\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M76SGDB9Z3GSB1CFW314NC84","csharp-scripts","Run file-based C# apps with the .NET CLI when the user explicitly wants C#\u002F.NET code without creating a project. Use for C# language\u002FAPI experiments, one-file C# apps, small multi-file C# apps composed with `#:include`\u002F`#:exclude`, or C# file-based apps linked with `#:ref`. Do not use for language-agnostic throwaway scripts, generic computations, Python\u002FPowerShell-style automation, full projects, or existing app integration.","https:\u002F\u002Fgithub.com\u002Fweiflycc-cmd\u002Fskills\u002Fblob\u002Fmain\u002Fplugins\u002Fdotnet\u002Fskills\u002Fcsharp-scripts\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M76SG805T8W764WAKB1NP3CJ","thread-abort-migration","Guides migration of .NET Framework Thread.Abort usage to cooperative cancellation in modern .NET. USE FOR: modernizing code that calls Thread.Abort, catching ThreadAbortException, replacing Thread.ResetAbort, replacing Thread.Interrupt for thread termination, resolving PlatformNotSupportedException or SYSLIB0006 after retargeting to .NET 6+, migrating ASP.NET Response.End or Response.Redirect(url, true) which internally call Thread.Abort. DO NOT USE FOR: code that only uses Thread.Join, Thread.Sleep, or Thread.Start without any abort, interrupt, or ThreadAbortException usage — these APIs work identically in modern .NET and need no migration. Also not for projects staying on .NET Framework, or Thread.Abort usage inside third-party libraries you do not control.","https:\u002F\u002Fgithub.com\u002Fweiflycc-cmd\u002Fskills\u002Fblob\u002Fmain\u002Fplugins\u002Fdotnet-upgrade\u002Fskills\u002Fthread-abort-migration\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M76SG2588ZJBE5C51HYJJSKV","migrate-nullable-references","Enable nullable reference types in a C# project and systematically resolve all warnings. USE FOR: adopting NRTs in existing codebases, file-by-file or project-wide migration, fixing CS8602\u002FCS8618\u002FCS86xx warnings, annotating APIs for nullability, cleaning up null-forgiving operators, upgrading dependencies with new nullable annotations. DO NOT USE FOR: projects already fully migrated with zero warnings (unless auditing suppressions), fixing a handful of nullable warnings in code that already has NRTs enabled, suppressing warnings without fixing them, C# 7.3 or earlier projects. INVOKES: Get-NullableReadiness.ps1 scanner script.","https:\u002F\u002Fgithub.com\u002Fweiflycc-cmd\u002Fskills\u002Fblob\u002Fmain\u002Fplugins\u002Fdotnet-upgrade\u002Fskills\u002Fmigrate-nullable-references\u002FSKILL.md",[],[]]