template-discovery
What it does
This skill helps find, inspect and choose a .NET project template that fits a plain description of what you want to build. It is for people who know the goal but not the template name.
When to use it
- βWhen you want to know which .NET templates exist for a kind of app, such as a web API or a console tool.
- βWhen you describe a project in plain words and need a template that fits.
- βWhen you want to see what files a template creates before you commit to it.
Skill link
https://github.com/dotnet/skills/blob/main/plugins/dotnet-template-engine/skills/template-discovery/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βWhat .NET template should I use for a web API with login? Show me what it creates.β
5 new skills a week. 1 minute to read.
How it works
The agent matches your description to likely templates, checks their options on your computer, and explains the files and settings each one would produce.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Template Discovery
This skill helps an agent find, inspect, and select the right dotnet new template for a given task using dotnet new CLI commands for search, listing, and parameter inspection.
When to Use
- User asks "What templates are available for X?"
- User describes a project in natural language ("I need a web API with authentication")
- User wants to compare templates or understand parameters before creating a project
- User needs to know what a template produces (files, structure) before committing
When Not to Use
- User wants to create a project β route to
template-instantiationskill - User wants to author or validate a custom template β route to
template-authoringskill - User wants a detailed side-by-side comparison of templates β route to
template-comparisonskill - User wants smart cross-parameter defaults during creation β route to
template-smart-defaultsskill - User is troubleshooting build issues β route to
dotnet-msbuildplugin
Recommendation requests: answer first, confirm second. Inspection requests: inspect first. For a general "which template?" question, start from the Step 1 mappings so a transient CLI failure cannot leave the user without an answer. When the user explicitly asks what is installed, requests exact options/defaults, or asks for dry-run output, run the relevant
dotnet newcommand before writing the final answer. Never end a turn on adotnet newcall or a "let me confirm..." teaser.
Inspection requests require inspection. If the user asks for installed choices, exact parameters/defaults, compatibility constraints, or the exact dry-run file list, run the corresponding
dotnet newcommand. Do not replace observed data with remembered flags. Report a flag only when the current template's--helpoutput contains it.
Inputs
| Input | Required | Description |
|---|---|---|
| User intent or keywords | Yes | Natural-language description or keywords (e.g., "web API", "console app", "MAUI") |
| Language preference | No | C#, F#, or VB β defaults to C# |
| Framework preference | No | Target framework (e.g., net10.0, net9.0) |
Workflow
For recommendations, use Step 1 before Steps 2β4. For explicit inspection requests, execute the requested inspection first and use Step 1 only as a fallback.
Step 1: Resolve intent to template candidates
Map the user's natural-language description to template short names and parameters using these mappings.
Intent β template short name(s):
| Intent / phrase | Template short name(s) |
|---|---|
| web api, web service, rest api, restful, api, minimal api | webapi |
| web app, web application | webapp, blazorserver |
| mvc | mvc |
| razor, razor pages | webapp |
| blazor, blazor web app | blazor |
| blazor server | blazorserver |
| blazor wasm, blazor webassembly | blazorwasm |
| grpc | grpc |
| signalr | webapi, webapp |
| console, console app, command line, cli | console |
| worker, background service, daemon, windows service | worker |
| class library, library, lib, nuget package | classlib |
| maui, mobile, cross-platform app, ios, android | maui |
| desktop | maui, wpf, winforms |
| wpf | wpf |
| winforms, windows forms | winforms |
| winui, winui3 | winui3 |
| test, unit test | xunit, nunit, mstest |
| xunit / nunit / mstest | xunit / nunit / mstest |
| solution | sln |
| aspire, .net aspire | aspire-starter, aspire |
| azure functions, function app, serverless | func |
| orleans | orleans |
| razor component, web component | razorcomponent |
| razor class library | razorclasslib |
| gitignore / editorconfig / nuget config / global json | gitignore / editorconfig / nugetconfig / globaljson |
Keyword β parameter:
| Keyword / phrase | Parameter | Value |
|---|---|---|
| authentication, auth, individual auth, individual accounts | --auth |
Individual |
| windows auth | --auth |
Windows |
| azure ad, entra id | --auth |
SingleOrg |
| no auth, no authentication | --auth |
None |
| controllers, with controllers | --use-controllers |
(flag) |
| minimal api | (default) | β |
| aot, native aot | --aot |
(flag) |
| docker, container | the template's Docker/container option | varies by template β confirm with --help (not all templates expose one) |
| net8 / .net 8 / dotnet 8 | --framework |
net8.0 |
| net9 / .net 9 / dotnet 9 | --framework |
net9.0 |
FAQ
Does it create the project?
No. Creating the project is covered by the template instantiation skill.
What do I need installed?
The skill uses dotnet new commands, so the .NET SDK needs to be installed on your computer.
Can it compare templates in detail?
For a detailed side-by-side table, the template comparison skill is the better fit.
Details
Original description by the author
Helps find, inspect, and compare (at a high level) .NET project templates. Resolves natural-language project descriptions to ranked template matches with pre-filled parameters. USE FOR: finding the right dotnet new template for a task, inspecting a template's parameters and constraints, understanding what a template produces before creating a project, resolving intent like "web API with auth" to concrete template + parameters. DO NOT USE FOR: actually creating projects (use template-instantiation), authoring custom templates (use template-authoring), producing a detailed side-by-side compariso
repo: dotnet/skills
Popularity
- GitHub stars
- 5.8k
- Ranking position
- #14613
- License
- MIT
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
create-custom-agent
5.8kHelps your agent create VS Code custom agent files with their own tools, instructions and handoffs to other agents.
create-skill
5.8kHelps your agent create a new agent skill with a valid name, a clear trigger description and a SKILL.md file that follows the standard.
csharp-scripts
5.8kHelps your agent run a small C# program as a single file with the .NET command line tool, without creating a full project.
dotnet-pinvoke
5.8kHelps your agent call native C or C++ libraries from .NET correctly, covering signatures, string handling, memory and safe handles.
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.