Перейти к содержанию
Skillpedia
Код в целом5.8k · #14613

template-discovery

Что он делает

Этот скилл помогает найти, изучить и выбрать шаблон проекта .NET, который подходит к простому описанию того, что вы хотите создать. Он нужен людям, которые знают цель, но не название шаблона.

Когда использовать

  • ✓Когда вы хотите узнать, какие шаблоны .NET существуют для вида приложения, например веб API или консольной утилиты.
  • ✓Когда вы описываете проект простыми словами и вам нужен подходящий шаблон.
  • ✓Когда вы хотите увидеть, какие файлы создаст шаблон, прежде чем его выбрать.

Ссылка на скилл

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

Скопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.

Как использовать

Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.

Готовое сообщение для вставки

Используй этот скилл, чтобы помочь мне: https://github.com/dotnet/skills/blob/main/plugins/dotnet-template-engine/skills/template-discovery/SKILL.md Прочитай файл SKILL.md по этой ссылке и следуй его инструкциям в моей задаче.
Хотите, чтобы ваш ИИ сам находил такие скиллы?Установите бесплатный MCP Skillpedia: одна строка, и перед каждой задачей он ищет среди 15 000+ скиллов.Установить за 1 минуту →

Пример запроса к вашему ИИ

“Какой шаблон .NET использовать для веб API с входом? Покажи, что он создаст.”

5 новых скиллов в неделю. 1 минута чтения.

Как это работает

Агент сопоставляет ваше описание с подходящими шаблонами, проверяет их параметры на вашем компьютере и объясняет, какие файлы и настройки создаст каждый из них.

Технический текст (оригинальный SKILL.md)

Оригинальный текст автора на английском, прямо с 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
Частые вопросы

Он создаёт проект?

Нет. Создание проекта относится к скиллу создания из шаблона.

Что нужно установить?

Скилл использует команды dotnet new, поэтому на компьютере должен быть установлен .NET SDK.

Он может подробно сравнить шаблоны?

Для подробной таблицы сравнения лучше подходит скилл сравнения шаблонов.

Подробности

Оригинальное описание автора

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

Популярность

Звёзды на GitHub
5.8k
Место в рейтинге
#14613
Лицензия
MIT
Обновлён
02.11.2026

Полезен ли этот скилл?

0

Войдите , чтобы голосовать.

Комментарии

  • …

Другие скиллы из этого репозитория

Похожие скиллы