मुख्य सामग्री पर जाएँ
Skillpedia
सामान्य कोडिंग5.8k · #14612

template-comparison

यह क्या करती है

यह स्किल .NET project templates को साथ-साथ तुलना करती है, ताकि आप अपने ऐप के लिए सही template चुन सकें। यह उन लोगों के लिए है जो मिलते-जुलते templates में फ़ैसला कर रहे हैं, जैसे web API और web app के बीच।

कब इस्तेमाल करें

  • ✓जब आप webapi और webapp या blazor और blazorwasm जैसे मिलते-जुलते templates में चुन रहे हों।
  • ✓जब आप दो templates के विकल्प और फ़ीचर एक ही तालिका में देखना चाहें।
  • ✓जब आप project बनाने से पहले दो templates का अंतर समझना चाहें।

Skill का लिंक

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

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/dotnet/skills/blob/main/plugins/dotnet-template-engine/skills/template-comparison/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“API के साथ web front end के लिए मुझे कौन सा .NET template इस्तेमाल करना चाहिए, webapi या webapp? अंतर दिखाइए।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

एजेंट जाँचता है कि आपके कंप्यूटर पर हर template वास्तव में कौन से विकल्प देता है, उन्हें एक तालिका में रखता है, और जो उपलब्ध नहीं है उसे अनुमान लगाने के बजाय चिह्नित करता है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे 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., webapi vs webapp, blazor vs blazorwasm)
  • 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-authoring or template-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 --help calls sequentially. The template engine uses a global mutex, so running several dotnet new <template> --help commands 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

अक्सर पूछे जाने वाले सवाल

क्या यह project भी बनाती है?

नहीं। project बनाना एक अलग स्किल है।

क्या विकल्प गायब होने पर यह अनुमान लगाएगी?

नहीं। अगर कोई template कोई विकल्प नहीं देता, तो तालिका यही बताती है।

क्या मैं किसी एक पहलू पर ज़ोर दे सकता हूँ?

हाँ। आप इसे authentication, native AOT या frameworks जैसे विषयों पर ज़ोर देने को कह सकते हैं।

जानकारी

लेखक का मूल विवरण

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

लोकप्रियता

GitHub स्टार
5.8k
रैंकिंग में स्थान
#14612
लाइसेंस
MIT
अपडेट की गई
2/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

मिलती-जुलती skills