template-instantiation

Creates .NET projects from templates with validated parameters and Central Package Management adaptation.

1|Updated Jun 1, 2026
One-click install
npx skills add https://github.com/D1ssolve/craft-agents --skill template-instantiation-d1ssolve
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: template-instantiation
Source: https://github.com/D1ssolve/craft-agents/tree/main/skills/template-instantiation
Command: npx skills add https://github.com/D1ssolve/craft-agents --skill template-instantiation-d1ssolve

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Creating new .NET projects often leads to inconsistent configurations, stale package versions, and conflicts with Central Package Management setups. This Skill guides the creation of projects from templates with validated parameters, workspace-aware defaults, and post-creation verification. ## Core Features & Use Cases - Template-Based Project Creation: Runs dotnet new with validated parameters, dry-run previews, and framework selection for templates like webapi, blazor, grpc, and worker. - CPM Adaptation: Detects Directory.Packages.props and migrates inline package versions from new .csproj files into central version entries. - Multi-Project Composition: Scaffolds solutions combining APIs, test projects, and libraries, wiring project references and solution membership. - Use Case: You need a new ASP.NET Core API with xUnit tests added to an existing solution that uses Central Package Management. The Skill creates both projects, links them, moves package versions into Directory.Packages.props, and verifies the solution builds. ## Quick Start Create a new .NET Web API project named MyApi with individual authentication and add it to my existing solution while respecting Central Package Management.

Frequently Asked Questions about template-instantiation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a new .NET project from a template?

Use dotnet new with the template short name, project name, and parameters such as --framework or --auth. Preview the output first with --dry-run, then run dotnet build afterward to verify the project compiles.

How to create a .NET solution with multiple projects like API and tests?

Create each project sequentially with dotnet new, then wire them together using dotnet add reference and dotnet sln add. For example, create a webapi project, an xunit test project, add a project reference from tests to the API, and add both to the solution.

Does dotnet new work with Central Package Management?

dotnet new creates projects with inline package versions that conflict with Directory.Packages.props. After creation, move the version attributes into Directory.Packages.props as PackageVersion entries and remove them from the .csproj file.

How do I install or uninstall .NET template packages?

Use dotnet new install followed by the template package name to install, and dotnet new uninstall to remove it. For example, dotnet new install Microsoft.DotNet.Web.ProjectTemplates.10.0 adds additional web project templates.

When should I not use template instantiation for .NET projects?

Do not use it when searching or comparing templates, authoring custom templates, or adding NuGet packages to existing projects. Use template-discovery for finding templates, template-authoring for custom templates, and dotnet add package for existing projects.