Template Comparison
.NET (Microsoft)OfficialPublished by .NET (Microsoft)
- Skill
- Research and analysis
- Software development
- MIT
- No issues found
AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
This skill assists users in selecting the appropriate dotnet new template by performing a side-by-side comparison of multiple templates. It inspects template parameters, feature support, available frameworks, and classifications to provide a clear, evidence-based recommendation. By analyzing the output of help commands for each template, it ensures the comparison is grounded in the user's specific environment.
What it does
- Compares two or more dotnet new templates side-by-side.
- Extracts and displays parameters, feature support, and framework availability.
- Identifies template classifications and specific feature flags.
- Provides a decisive recommendation based on the user's scenario.
- Labels unavailable options clearly rather than guessing.
- Uses sequential inspection to ensure accurate data collection.
When to use it
- When deciding between similar templates like webapi vs webapp.
- When you need to understand the differences between templates before starting a project.
- When you need help choosing the right template for a specific architectural requirement.
- When you want to see a structured comparison of available parameters and features.
Advantages
- Provides objective, evidence-based comparisons.
- Reduces uncertainty when selecting project foundations.
- Helps identify which template best fits specific needs like AOT or authentication.
- Offers clear, actionable recommendations to guide the next step.
Usage examples
- “Should I use webapi or webapp for my new project?”
- The agent will compare the two templates, highlighting that webapi is better for REST backends while webapp is suited for server-rendered HTML, and provide a recommendation.
- “Compare the blazor and blazorwasm templates for me.”
- The agent will generate a table showing the differences in interactivity and hosting models, recommending blazorwasm for offline-capable client-side apps.
- “Which template is better for a background service: worker or console?”
- The agent will compare the two, explaining why the worker template is superior for long-lived background tasks due to its Generic Host integration.
Install
Download the skill as a ZIP:
https://mp-staging.autogineer.com/agent-skills/dotnet/template-comparison/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip template-comparison.zip -d .agents/skills
Documentation by .NET (Microsoft)
Template Comparison
This skill helps an agent compare 2+ dotnet new templates side by side so the user can
pick the right one. It inspects each template's parameters and feature support and renders
a comparison table.
When to Use
User is deciding between similar templates (e.g.,
webapivswebapp,blazorvsblazorwasm)User asks "which template should I use for X?"
User wants to understand how two or more templates differ before creating a project
When Not to Use
User wants to create a project — route to
template-instantiationUser wants to author or validate a custom template — route to
template-authoringortemplate-validationUser just needs to find or inspect a single template — route to
template-discovery
Inputs
| Input | Required | Description |
|---|---|---|
| Template short names | Yes | Two or more template short names to compare (e.g., webapi, webapp) |
| Comparison focus | No | Optional aspect to emphasize (auth, AOT, frameworks, interactivity) |
Workflow
Evidence contract: a side-by-side table is useful only when every option claim is
grounded in the currently installed templates. Run each --help command sequentially,
capture the same requested dimensions for each template, and label an unavailable option
as Not exposed rather than guessing or borrowing a flag from another template.
Decision contract: optimize the comparison for the user's stated decision, not table
size. Cover every requested dimension, omit unrelated option rows, give a scenario-specific
reason, and include one safe --dry-run command for the recommended starting point when it
would make the recommendation actionable.
Step 1: Inspect each template
Run dotnet new <template> --help for each template being compared to collect its
parameters (names, types, defaults, choices) and supported frameworks:
dotnet new webapi --help
dotnet new webapp --helpIf a template is not installed, search for its provider and report the missing prerequisite. Install it only when the user asked you to modify the environment or approved the install.
Run
--helpcalls sequentially. The template engine uses a global mutex, so running severaldotnet new <template> --helpcommands concurrently can fail with a transient "mutex"/"persistence" error and empty output. Inspect templates one at a time; if a call fails, retry it once before moving on, and still produce the comparison from whatever parameter knowledge you have rather than ending with no answer.
Step 2: Build the comparison table
Produce a side-by-side table covering:
Parameters — name, type, default, choices
Feature support — auth, AOT, Docker, controllers, interactivity
Available frameworks — e.g., net8.0, net9.0, net10.0
Classifications — categories the template advertises (Web, API, Blazor, etc.)
Use one row per requested decision dimension and cite the observed option name in the cell. Do not fill a requested row with general framework knowledge when it is specifically about what the template generates or exposes.
When the user asks about generated dependencies without allowing project creation,
inspect the installed template package's source .csproj files. --help and --dry-run
do not reveal package references. Do not create temporary projects merely to inspect them,
and do not guess current package IDs or test-platform defaults.
Example shape:
| Aspect | webapi | webapp |
|---|---|---|
Auth (--auth) | None, Individual, SingleOrg, Windows | None, Individual, SingleOrg, ... |
AOT (--aot flag) | present if dotnet new webapi --help lists --aot | present if dotnet new webapp --help lists --aot |
Controllers (--use-controllers) | Yes | n/a |
| Interactivity | n/a | n/a |
| Frameworks | net8.0 / net9.0 / net10.0 | net8.0 / net9.0 / net10.0 |
| Classifications | Web, WebAPI | Web, Razor Pages |
Step 3: Recommend
End with a decisive Recommendation line — never leave the user with just a table. Format:
Recommendation:
<template>— one sentence tying the choice to the user's stated scenario. (Pick the other if<condition>.)
Then link to template-instantiation to create it. A comparison that ends without naming a winner (or a clear "it depends on X") is incomplete — that indecision is what makes this skill tie with a plain answer.
Decision shortcuts for common pairs
Use these only for the recommendation, not as evidence of current parameter support. Still
inspect with --help before filling the comparison table:
| Pair | Default pick | Because |
|---|---|---|
webapi vs webapp | webapi for a JSON/REST backend; webapp for server-rendered HTML/Razor Pages | webapi ships controllers/minimal APIs + OpenAPI, no UI |
blazor vs blazorwasm | blazorwasm when offline / no server is required; blazor (Web App) for flexible server + client interactivity | Standalone WASM runs fully client-side, works offline |
worker vs console | worker for long-lived/queue/background processing | Generic Host: DI, logging, config, graceful shutdown, IHostedService lifecycle |
mvc vs webapp | webapp (Razor Pages) for page-focused apps; mvc for controller/view separation at scale | Razor Pages is lighter for CRUD-style pages |
These constraints override the shorthand above:
Choose
mvcwhen the user explicitly anticipates a large application or shared controller logic, even if its first pages are CRUD-focused.Choose
blazorwith Server interactivity overwebappwhen rich interactive forms are central but useful HTML must arrive on the first response. Explain that the initial render is server-produced and that interactive components use the Blazor form/component model rather than Razor PagesPageModel.For offline support, choose
blazorwasmand explain the PWA/service-worker requirement, cached-after-first-load behavior, and lack of a required live server for execution.For a durable queue processor, choose
workerand tie the decision to Generic Host lifecycle, dependency injection, configuration, logging, graceful shutdown, and a real durable queue rather than an in-memory loop.
Validation
[ ] Every template requested was inspected via
dotnet new <template> --help[ ] The comparison covers parameters, feature support, frameworks, and classifications
[ ] Differences relevant to the user's scenario are called out explicitly
[ ] A recommendation (or clear trade-off) is provided
[ ] Unsupported or absent options are labeled instead of guessed
[ ] The final recommendation is a single decisive
Recommendation:line
Common Pitfalls
| Pitfall | Solution |
|---|---|
| Comparing uninstalled templates from memory | Install and inspect each template so the comparison reflects the real parameters and choices. |
| Assuming feature parity | Parameter names and feature support vary by template — confirm each with --help. |
| Comparing fundamentally different template types | Only compare templates that solve overlapping problems; note when they target different scenarios. |
More Info
dotnet new templates — built-in template reference
dotnet new — CLI reference
Files
- ATTRIBUTION.mdAdded by AutoGineer860 B
- LICENSELicence file added by AutoGineer1.1 KiB
- SKILL.md8.1 KiB
Requirements and compatibility
Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta
“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.
Security
No issues found by our static scan· No issues found
A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.
Attribution and licence
- Published by
- .NET (Microsoft)
- Publisher
- .NET (Microsoft) (Official)
- Source
- dotnet/skills · plugins/dotnet-template-engine/skills/template-comparison · commit 96c3d68
- Licence
- MIT License (redistribution allowed)
- LICENSE (added by AutoGineer from LICENSE)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
AutoGineer is not affiliated with or endorsed by .NET (Microsoft).
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download template-comparison.zip