template-comparison
Fungsinya
Skill ini membandingkan template proyek .NET secara berdampingan, sehingga Anda bisa memilih yang tepat untuk aplikasi Anda. Skill ini untuk orang yang harus memilih antara template yang mirip, seperti web API dan web app.
Kapan dipakai
- βSaat Anda memilih antara template yang mirip, seperti webapi dan webapp atau blazor dan blazorwasm.
- βSaat Anda ingin melihat opsi dan fitur dua template dalam satu tabel.
- βSaat Anda ingin memahami perbedaan dua template sebelum membuat proyek.
Link skill
https://github.com/dotnet/skills/blob/main/plugins/dotnet-template-engine/skills/template-comparison/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βTemplate .NET mana yang sebaiknya saya pakai untuk API dengan frontend web, webapi atau webapp? Tunjukkan perbedaannya.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent memeriksa opsi yang benar-benar tersedia dari setiap template di komputer Anda, menyusunnya dalam satu tabel, dan menandai yang tidak tersedia alih-alih menebak.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
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-instantiation - User wants to author or validate a custom template β route to
template-authoringortemplate-validation - User 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 --help
If 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
U
Pertanyaan umum
Apakah skill ini juga membuat proyeknya?
Tidak. Pembuatan proyek adalah skill terpisah.
Apakah skill ini akan menebak jika opsi tidak ada?
Tidak. Jika template tidak menampilkan opsi, tabel menyatakannya alih-alih menebak.
Bisakah saya fokus pada satu aspek?
Bisa. Anda bisa meminta penekanan pada topik seperti autentikasi, native AOT, atau framework.
Detail
Deskripsi asli dari pembuat
Compares two or more dotnet new templates side by side to help users choose between them based on parameters, feature support, frameworks, and classifications. USE FOR: deciding between similar templates (webapi vs webapp, blazor vs blazorwasm, console vs worker), producing a side-by-side comparison of parameters and feature support, understanding how templates differ before creating a project. DO NOT USE FOR: creating a project from a template (use template-instantiation), authoring or validating custom templates (use template-authoring and template-validation), general single-template discov
repo: dotnet/skills
Popularitas
- Bintang GitHub
- 5.8k
- Peringkat
- #14612
- Lisensi
- MIT
- Diperbarui
- 2/11/2026
Komentar
- β¦
Skill lain dari repositori ini
create-custom-agent
5.8kMembantu agent Anda membuat file agen kustom VS Code dengan alatnya sendiri, instruksi, dan serah terima ke agent lain.
create-skill
5.8kMembantu agent Anda membuat skill agent baru dengan nama yang valid, deskripsi pemicu yang jelas, dan file SKILL.md yang mengikuti standar.
csharp-scripts
5.8kMembantu agent Anda menjalankan program C# kecil sebagai satu file dengan alat baris perintah .NET, tanpa membuat proyek lengkap.
dotnet-pinvoke
5.8kMembantu agent Anda memanggil pustaka native C atau C++ dari .NET dengan benar, mencakup tanda tangan, penanganan string, memori, dan safe handle.
Skill serupa
diffs
394kMemungkinkan agent Anda menghasilkan diff perubahan yang nyata dan dapat dibagikan sebagai tautan viewer atau file gambar, bukan ringkasan yang ditulis manual.
coding-agent
394kMembantu agent Anda menyerahkan pekerjaan pemrograman besar ke Codex, Claude Code, atau OpenCode di latar belakang, lalu memeriksa kemajuannya.
gh-issues
394kMembantu agent Anda menemukan issue GitHub, memilih yang dikerjakan, dan membuka pull request perbaikan, termasuk tindak lanjut komentar tinjauan.