Langsung ke konten
Skillpedia
Pemrograman umum5.8k Β· #14613

template-discovery

Fungsinya

Skill ini membantu menemukan, memeriksa, dan memilih template proyek .NET yang sesuai dengan deskripsi biasa tentang apa yang ingin Anda bangun. Skill ini untuk orang yang tahu tujuannya tetapi belum tahu nama template-nya.

Kapan dipakai

  • βœ“Saat Anda ingin tahu template .NET apa yang tersedia untuk jenis aplikasi tertentu, seperti web API atau alat konsol.
  • βœ“Saat Anda menjelaskan proyek dengan kata-kata biasa dan membutuhkan template yang cocok.
  • βœ“Saat Anda ingin melihat file apa yang dibuat template sebelum memutuskan.

Link skill

https://github.com/dotnet/skills/blob/main/plugins/dotnet-template-engine/skills/template-discovery/SKILL.md

Salin 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

Gunakan skill ini untuk membantu saya: https://github.com/dotnet/skills/blob/main/plugins/dotnet-template-engine/skills/template-discovery/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œTemplate .NET apa yang sebaiknya saya pakai untuk web API dengan login? Tunjukkan apa yang akan dibuatnya.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Agent mencocokkan deskripsi Anda dengan template yang mungkin, memeriksa opsinya di komputer Anda, lalu menjelaskan file dan pengaturan yang akan dihasilkan setiap template.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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-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 wants smart cross-parameter defaults during creation β€” route to template-smart-defaults skill
  • User is troubleshooting build issues β€” route to dotnet-msbuild plugin

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 new command before writing the final answer. Never end a turn on a dotnet new call 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 new command. Do not replace observed data with remembered flags. Report a flag only when the current template's --help output 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
Pertanyaan umum

Apakah skill ini membuat proyek?

Tidak. Pembuatan proyek dicakup oleh skill instansiasi template.

Apa yang perlu saya pasang?

Skill ini memakai perintah dotnet new, jadi SDK .NET harus sudah terpasang di komputer Anda.

Bisakah skill ini membandingkan template secara rinci?

Untuk tabel perbandingan rinci, skill perbandingan template lebih cocok.

Detail

Deskripsi asli dari pembuat

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

Popularitas

Bintang GitHub
5.8k
Peringkat
#14613
Lisensi
MIT
Diperbarui
2/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa