본문으로 건너뛰기
Skillpedia
일반 코딩5.8k · #14612

template-comparison

하는 일

이 스킬은 .NET 프로젝트 템플릿을 나란히 비교해, 앱에 맞는 템플릿을 고를 수 있게 합니다. webapi와 webapp처럼 비슷한 템플릿 사이에서 고민하는 사람을 위한 스킬입니다.

사용하는 경우

  • ✓webapi와 webapp, 또는 blazor와 blazorwasm처럼 비슷한 템플릿 중에서 고를 때.
  • ✓두 템플릿의 옵션과 기능을 한 표에서 보고 싶을 때.
  • ✓프로젝트를 만들기 전에 두 템플릿이 어떻게 다른지 알고 싶을 때.

스킬 링크

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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/dotnet/skills/blob/main/plugins/dotnet-template-engine/skills/template-comparison/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“API에 웹 프런트엔드가 함께 있으면 webapi와 webapp 중 무엇을 써야 하나요? 차이를 보여 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트가 각 템플릿이 실제로 제공하는 옵션을 내 컴퓨터에서 확인하고, 한 표에 정리하며, 추측하지 않고 쓸 수 없는 항목은 그렇다고 표시합니다.

기술 내용 (원본 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

자주 묻는 질문

프로젝트도 만들어 주나요?

아니요. 프로젝트 생성은 별도의 스킬입니다.

옵션이 없으면 추측하나요?

아니요. 템플릿이 옵션을 제공하지 않으면 추측하지 않고 표에 그렇다고 적습니다.

한 가지 측면에 집중할 수 있나요?

네. 인증, 네이티브 AOT, 프레임워크 같은 주제를 강조하도록 요청할 수 있습니다.

상세 정보

작성자의 원본 설명

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
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬