Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
managedcode avatar

Template Discovery

  • 17 installs
  • 466 repo stars
  • Updated July 25, 2026
  • managedcode/dotnet-skills

Helps with ai & agent building tasks.

About

template-discovery is a Claude Code skill for ai & agent building. It helps solo builders move faster with AI-assisted coding.

  • template-discovery
  • AI & Agent Building
  • AI-coding skill

Template Discovery by the numbers

  • 17 all-time installs (skills.sh)
  • +1 installs in the week ending Aug 2, 2026 (Skillselion tracking)
  • Ranked #10,886 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
  • Data as of Aug 3, 2026 (Skillselion catalog sync)
npx skills add https://github.com/managedcode/dotnet-skills --skill template-discovery

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs17
repo stars466
Last updatedJuly 25, 2026
Repositorymanagedcode/dotnet-skills

What it does

Helps with ai & agent building tasks.

Files

SKILL.mdMarkdownGitHub ↗

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-instantiation skill
  • User wants to author or validate a custom template — route to template-authoring skill
  • User wants a detailed side-by-side comparison of templates — route to template-comparison skill
  • User is troubleshooting build issues — route to dotnet-msbuild plugin

Inputs

InputRequiredDescription
User intent or keywordsYesNatural-language description or keywords (e.g., "web API", "console app", "MAUI")
Language preferenceNoC#, F#, or VB — defaults to C#
Framework preferenceNoTarget framework (e.g., net10.0, net9.0)

Workflow

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 / phraseTemplate short name(s)
web api, web service, rest api, restful, api, minimal apiwebapi
web app, web applicationwebapp, blazorserver
mvcmvc
razor, razor pageswebapp
blazor, blazor web appblazor
blazor serverblazorserver
blazor wasm, blazor webassemblyblazorwasm
grpcgrpc
signalrwebapi, webapp
console, console app, command line, cliconsole
worker, background service, daemon, windows serviceworker
class library, library, lib, nuget packageclasslib
maui, mobile, cross-platform app, ios, androidmaui
desktopmaui, wpf, winforms
wpfwpf
winforms, windows formswinforms
winui, winui3winui3
test, unit testxunit, nunit, mstest
xunit / nunit / mstestxunit / nunit / mstest
solutionsln
aspire, .net aspireaspire-starter, aspire
azure functions, function app, serverlessfunc
orleansorleans
razor component, web componentrazorcomponent
razor class libraryrazorclasslib
gitignore / editorconfig / nuget config / global jsongitignore / editorconfig / nugetconfig / globaljson

Keyword → parameter:

Keyword / phraseParameterValue
authentication, auth, individual auth, individual accounts--authIndividual
windows auth, azure ad, entra--authSingleOrg
no auth, no authentication--authNone
controllers, with controllers--use-controllers(flag)
minimal api(default)
aot, native aot--aot(flag)
docker, containerthe template's Docker/container optionvaries by template — confirm with --help (not all templates expose one)
net8 / .net 8 / dotnet 8--frameworknet8.0
net9 / .net 9 / dotnet 9--frameworknet9.0
net10 / .net 10 / dotnet 10--frameworknet10.0

These are starting guesses. Always confirm the real parameter names/choices with dotnet new <template> --help, because parameter names vary by template (e.g., --auth vs --Authentication).

Some mapped short names are not present in a default SDK install — templates like maui, winui3, aspire-starter/aspire, func, and orleans typically require a workload (dotnet workload install <id>) and/or an additional template package (dotnet new install <package>). If a mapped short name does not appear in dotnet new list, fall back to dotnet new list/dotnet new search to find the right template and the package/workload that provides it before recommending it.

Resilience — always answer, even if the CLI fails. The intent mapping above is a usable answer on its own. Run dotnet new commands sequentially, one at a time — the template engine uses a global mutex, so firing several dotnet new <template> --help/--dry-run calls concurrently can produce a transient "mutex"/"persistence" error and empty output. If a command fails, retry it once; if it still fails, fall back to this intent/parameter mapping and give the user a concrete recommendation, noting that the exact parameter names/choices could not be CLI-confirmed. Never end the turn with no answer because a CLI call errored.

Step 2: Search for templates

Use dotnet new search to find templates by keyword across both locally installed templates and NuGet.org:

dotnet new search blazor

Use dotnet new list to show only installed templates, with optional filters:

dotnet new list --language C# --type project
dotnet new list web

Step 3: Inspect template details

Use dotnet new <template> --help to get full parameter details for a specific template — parameter names, types, defaults, and allowed values:

dotnet new webapi --help

Step 4: Preview output

Use dotnet new <template> --dry-run to show what files and directories a template would create without writing anything to disk:

dotnet new webapi --name MyApi --auth Individual --dry-run

Step 5: Present findings

Summarize the best template match with:

  • Template name and short description
  • Key parameters and recommended values
  • What the user should expect (files created, project structure)
  • Any constraints or prerequisites

Validation

  • [ ] At least one template match was found for the user's intent
  • [ ] Template parameters are explained with types and defaults
  • [ ] User understands what the template produces before proceeding to creation

Common Pitfalls

PitfallSolution
Not searching NuGet for templatesIf dotnet new list shows no matches, use dotnet new search <keyword> to find installable templates on NuGet.org.
Not checking template constraintsSome templates require specific SDKs or workloads. Use dotnet new <template> --help to surface constraints before recommending.
Recommending a template without previewing outputAlways use dotnet new <template> --dry-run to confirm the template produces what the user expects.
A dotnet new call fails with a "mutex"/"persistence" error and you return nothingThese are transient (often from concurrent invocations). Run dotnet new calls sequentially, retry once, then fall back to the Step 1 intent mapping and still give the user a concrete answer.

More Info

Related skills

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.