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

technology-selection

하는 일

이 스킬은 .NET 8 이상 앱에 맞는 AI나 머신러닝 기술을 고르고 구현하도록 돕습니다. 예를 들어 ML.NET, Microsoft.Extensions.AI, ONNX Runtime이 있습니다. 작업에 맞는 도구를 원하는 AI 기능 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓.NET 앱에 분류, 회귀, 추천 기능을 넣고 싶을 때.
  • ✓.NET 앱에 언어 모델 기능이나 AI 에이전트를 넣고 싶을 때.
  • ✓코드를 쓰기 전에 AI 옵션을 비교하고 싶을 때.

스킬 링크

https://github.com/dotnet/skills/blob/main/plugins/dotnet-ai/skills/technology-selection/SKILL.md

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

사용 방법

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

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

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

AI에게 요청하는 예시

“제 .NET 앱에 상품 추천 기능을 넣고 싶습니다. 어떤 기술을 쓰는 게 좋을지 이유와 함께 알려 주세요.”

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

작동 방식

에이전트가 작업을 구조화된 데이터, 언어 모델, 에이전트 작업 같은 범주로 나누고, 기술 하나를 추천한 뒤, 작업이 요구하는 만큼만 만듭니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

.NET AI and Machine Learning

Pick the right technology first, then deliver only what the task asks for. If the task asks for a plan, comparison, or architecture (or says "do not write code"), produce that — do not scaffold, build, or run code unprompted.

Step 1: Classify the task (decision tree)

State which branch applies and why, then choose that technology.

Task type Technology Why
Structured/tabular: classification, regression, clustering, anomaly detection, recommendation ML.NET (Microsoft.ML) Deterministic (fixed seed), no cloud dependency, purpose-built
NL understanding, generation, summarization, reasoning (single prompt → response, no tools) LLM via Microsoft.Extensions.AI (IChatClient) Language capability, no orchestration needed
Agentic: multi-step tool/function calling, agent loops, multi-agent Microsoft Agent Framework (Microsoft.Agents.AI) on Microsoft.Extensions.AI Needs orchestration, tool dispatch, iteration control IChatClient lacks
GitHub Copilot extensions / custom dev-workflow agents GitHub Copilot SDK (GitHub.Copilot.SDK) Integrates with the Copilot agent runtime
Run a pre-trained/custom model in production ONNX Runtime (Microsoft.ML.OnnxRuntime) Hardware-accelerated, format-agnostic inference
Local/offline LLM inference OllamaSharp (Ollama models) Privacy-sensitive, air-gapped, cost-constrained
Semantic search, RAG, embedding storage Microsoft.Extensions.VectorData.Abstractions (MEVD) + a provider (Azure AI Search, Milvus, MongoDB, pgvector, Pinecone, Qdrant, Redis, SQL) Provider-agnostic vector search
Ingest, chunk, load documents into a vector store Microsoft.Extensions.AI.DataIngestion (preview) + MEVD Parses, chunks, embeds, upserts
Both structured predictions AND NL reasoning Hybrid: ML.NET scoring + LLM reasoning layer ML.NET is reproducible; LLM adds explanation

Critical rule: Do NOT use an LLM for tasks ML.NET handles well (tabular classification, regression, clustering) — LLMs are slower, costlier, and non-deterministic for these.

Step 1b: Pick the library layer

Layer Library Use when
Abstraction Microsoft.Extensions.AI (MEAI) Always the foundation. Use IChatClient directly for prompt-response and simple, bounded function invocation.
Provider SDK Azure.AI.OpenAI / OpenAI / Azure.AI.Inference / OllamaSharp Concrete provider behind MEAI via AddChatClient.
Orchestration Microsoft.Agents.AI (prerelease) Multi-step tool use, durable agent loops, and multi-agent workflows.
Copilot GitHub.Copilot.SDK Building Copilot-platform extensions only.

Rules: start with MEAI; put the provider behind it via AddChatClient (don't call the provider in business logic); use Microsoft.Agents.AI for multi-step or durable agent workflows rather than hand-rolling an agent loop; never mix a raw HttpClient-to-OpenAI call with MEAI in the same workflow. Do not use Accord.NET (archived). For new projects, prefer MEAI and Agent Framework unless existing Semantic Kernel features or investments are a requirement. Register AI/ML services via DI; load secrets from user-secrets / env / Key Vault — never hardcode keys.

Step 2: Cover the branch essentials, then decide depth

Every answer — plan or implementation — must address the guardrails for the selected branch:

  • ML.NET — new MLContext(seed: …) (reproducible); TrainTestSplit + evaluate on the held-out set; report real metrics (MicroAccuracy/MacroAccuracy/LogLoss, AUC/F1, or RMSE/R²); serve with PredictionEnginePool<TIn,TOut> (never a singleton PredictionEngine).
  • LLM (MEAI) — depend on IChatClient registered via AddChatClient (provider behind it); set Temperature and MaxOutputTokens in ChatOptions; add retry/timeout (RetryingChatClient/Polly); pin a dated model; load keys from user-secrets / env / Key Vault — never hardcode an sk-… key; validate non-deterministic output against a schema with a fallback.
  • Agentic (Agent Framework) — orchestrate with Microsoft.Agents.AI on IChatClient (never a hand-rolled loop); set MaximumIterations and a token/cost ceiling; define each tool with a clear schema (AIFunctionFactory.Create); log each step (never raw sensitive content).
  • **RAG / e
자주 묻는 질문

요청하지 않아도 코드를 쓰나요?

아니요. 계획이나 비교를 요청하면 그것만 제공하고 코드는 만들지 않습니다.

어떤 도구를 다루나요?

ML.NET, Microsoft.Extensions.AI, Microsoft Agent Framework, ONNX Runtime, Ollama, GitHub Copilot SDK를 다룹니다.

로컬 모델에도 쓸 수 있나요?

네. 로컬이나 오프라인 모델 추론도 다루는 옵션 중 하나입니다.

상세 정보

작성자의 원본 설명

Guides technology selection and implementation of AI and ML features in .NET 8+ applications using ML.NET, Microsoft.Extensions.AI (MEAI), Microsoft Agent Framework (MAF), GitHub Copilot SDK, ONNX Runtime, and OllamaSharp. Covers the full spectrum from classic ML through modern LLM orchestration to local inference. Use when adding classification, regression, clustering, anomaly detection, recommendation, LLM integration (text generation, summarization, reasoning), RAG pipelines with vector search, agentic workflows with tool calling, Copilot extensions, or custom model inference via ONNX Runti

repo: dotnet/skills

인기도

GitHub 스타
5.8k
순위
#14558
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬