Unterstützt bei der Technologieauswahl und Implementierung von KI- und Machine-Learning-Features in .NET 8+ Anwendungen unter Verwendung von ML.NET, MEAI und dem Agent Framework.
- GitHub Stars
- 5.942
- Dateien
- 8
- Letzter Commit
- 11. Nov. 2026
- Lizenz
- MIT
- Erlaubte Tools
- —
Was macht der technology-selection Skill?
Unterstützt bei der Technologieauswahl und Implementierung von KI- und Machine-Learning-Features in .NET 8+ Anwendungen unter Verwendung von ML.NET, MEAI und dem Agent Framework.
Zusammenfassung erzeugt aus der SKILL.md des Skills.
Über den technology-selection skill
Die Hauptfunktion dieses Skills ist die Architektur von KI- und Machine-Learning-Funktionen in .NET 8+ Anwendungen. Er hilft Entwicklern dabei, die richtige Library oder das passende Framework auszuwählen – je nachdem, ob sie Vorhersagen für strukturierte Daten, die Orchestrierung von Large Language Models oder lokale Model Inference benötigen. Der Skill bietet einen Decision Tree, um häufige Fehler zu vermeiden, wie etwa den Einsatz teurer LLMs für Aufgaben, die besser für deterministisches Machine Learning geeignet sind.
Wenn ein Agent diesen Skill lädt, kann er Architekturpläne, Technologievergleiche oder Implementierungscode für spezifische Workflows erstellen. Er greift auf eine strukturierte Hierarchie von Tools zurück, darunter ML.NET für tabellarische Daten, Microsoft.Extensions.AI für Sprachabstraktionen und das Microsoft Agent Framework für mehrstufige agentische Loops. Er deckt zudem spezialisierte Implementierungen ab, wie RAG-Pipelines mit Microsoft.Extensions.VectorData.Abstractions, GitHub Copilot Extensions via Copilot SDK und lokale Inference mit OllamaSharp oder ONNX Runtime. Der Skill ist strikt auf .NET 8+ Umgebungen beschränkt und unterstützt keine reinen Data-Engineering-Aufgaben oder benutzerdefinierte Deep-Learning-Trainingsloops.
Was ein agent damit machen kann
- 1Ein Machine Learning Framework auswählenEntscheide, ob du ML.NET oder ein LLM für eine spezifische Klassifizierungsaufgabe verwenden solltest.
- 2Eine RAG-Pipeline entwerfenErstelle eine Architektur für semantische Suche und Document Ingestion unter Verwendung von Vektordatenbanken.
- 3Agentische Workflows implementierenBaue ein mehrstufiges Tool-Calling-System mit dem Microsoft Agent Framework.
- 4Lokale LLM Inference konfigurierenRichte eine Offline-Integration für Sprachmodelle für datenschutzsensible Anwendungen ein.
Geschrieben basierend auf dem SKILL.md des skills. Jeder use case wurde gegen ein zitat daraus geprüft.
So installierst du den technology-selection Skill
Jeder Befehl kopiert den Skill-Ordner in das Skills-Verzeichnis des Clients. Starte den Client neu oder beginne eine neue Session, um ihn zu laden.Den technology-selection Skill in Plugin installieren
/plugin marketplace add dotnet/skills /plugin install dotnet-ai@dotnet-agent-skills
Den technology-selection Skill in Claude Code installieren
~/.claude/skills/technology-selection/SKILL.md
$ npx degit dotnet/skills/plugins/dotnet-ai/skills/technology-selection ~/.claude/skills/technology-selectionDen technology-selection Skill in Claude Code (project) installieren
.claude/skills/technology-selection/SKILL.md
$ npx degit dotnet/skills/plugins/dotnet-ai/skills/technology-selection .claude/skills/technology-selectionDen technology-selection Skill in Codex installieren
~/.agents/skills/technology-selection/SKILL.md
$ npx degit dotnet/skills/plugins/dotnet-ai/skills/technology-selection ~/.agents/skills/technology-selectionDen technology-selection Skill in Gemini CLI installieren
~/.gemini/skills/technology-selection/SKILL.md
$ npx degit dotnet/skills/plugins/dotnet-ai/skills/technology-selection ~/.gemini/skills/technology-selectionDen technology-selection Skill in Claude.ai installieren
npx degit dotnet/skills/plugins/dotnet-ai/skills/technology-selection technology-selection && zip -r technology-selection.zip technology-selection # claude.ai → Customize → Skills → + → Create skill → Upload a skill → technology-selection.zip
Automatisierte Checks
Geluften am 15. Nov. 2026Vollständiger Bericht →Hat unsere automatischen Prüfungen bestanden. Das ist kein Sicherheitsaudit: Lesen Sie die Skripte, bevor ein Agent sie ausführt. Wie die Checks funktionieren
- Source Repository verknüpft und erreichbardotnet/skills/plugins/dotnet-ai/skills/technology-selection is public and reachablegithub.com/dotnet/skills/tree/HEAD/plugins/dotnet-ai/skills/ ↗Bestanden
- Open Source Lizenz (OSI)MITspdx.org/licenses/MIT.html ↗Bestanden
- Commit oder Release im letzten JahrLast commit 2026-11-11github.com/dotnet/skills/commits ↗Bestanden
- Keine Download-und-Ausführen-Muster oder Zugangsdatendiebstahl in SkriptenNo scripts in the skill folderBestanden
- Keine versteckten Anweisungen in SKILL.mdNo override phrases, safeguard switches, credential requests or hidden charactersgithub.com/dotnet/skills/blob/HEAD/plugins/dotnet-ai/skills/ ↗Bestanden
- Vorab erlaubte Tools sind eingeschränktNo pre-approved tools; the agent asks before using onegithub.com/dotnet/skills/blob/HEAD/plugins/dotnet-ai/skills/ ↗Bestanden
- SKILL.md folgt dem Agent-Skills-FormatValid name and description; says when to use it; 107 linesgithub.com/dotnet/skills/blob/HEAD/plugins/dotnet-ai/skills/ ↗Bestanden
SKILL.md
Auf GitHub ansehen.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 withPredictionEnginePool<TIn,TOut>(never a singletonPredictionEngine). - LLM (MEAI) — depend on
IChatClientregistered viaAddChatClient(provider behind it); setTemperatureandMaxOutputTokensinChatOptions; add retry/timeout (RetryingChatClient/Polly); pin a dated model; load keys from user-secrets / env / Key Vault — never hardcode ansk-…key; validate non-deterministic output against a schema with a fallback. - Agentic (Agent Framework) — orchestrate with
Microsoft.Agents.AIonIChatClient(never a hand-rolled loop); setMaximumIterationsand a token/cost ceiling; define each tool with a clear schema (AIFunctionFactory.Create); log each step (never raw sensitive content). - RAG / embeddings — semantic chunking (not fixed-size);
IEmbeddingGeneratorand cache the embeddings (don't re-embed per query); store/query withMicrosoft.Extensions.VectorData.Abstractions(MEVD) + the provider the user asked for (e.g. pgvector); filter by a minimum similarity score; keep source attribution for each answer. Honor the UI/storage the user specified; use only real, existing NuGet packages.
Then choose depth:
- Plan / comparison / architecture only (or "do not write code"): answer from this file alone using the essentials above. Do NOT open a reference — the branch essentials here are sufficient for a selection or plan. For RAG plans, cover chat, ingestion/chunking, embeddings, vector storage, source attribution, and the requested UI/storage.
- Writing implementation code: read the matching reference(s) for packages and implementation
guidance (read only the selected branch; for Hybrid, read both Classic ML.NET and LLM):
- Classic ML.NET →
references/classic-ml.md - LLM integration (MEAI) →
references/llm.md - Agentic (Agent Framework) →
references/agentic.md - RAG / embeddings / ingestion →
references/rag.md - GitHub Copilot extensions →
references/copilot.md - ONNX Runtime inference →
references/onnx.md - Local/offline LLM with Ollama →
references/ollama.md
- Classic ML.NET →
Validation
- Selection follows the decision tree — no LLM for tasks ML.NET handles
- Only what was asked is produced (plan-only requests get a plan, not code)
- AI/ML services registered via DI; config via
IOptions<T>; keys from secure sources - Branch guardrails (Step 2 essentials, plus the reference when implementing) are satisfied
- After implementing, build and run existing tests
Anti-Patterns to Reject
| Anti-pattern | Redirect |
|---|---|
| LLM for tabular classification | Use ML.NET — faster, cheaper, deterministic |
| LLM calls without retry/timeout | Add RetryingChatClient or Polly retry |
API keys in committed appsettings.json |
user-secrets / env / Key Vault |
| Accord.NET, or defaulting to Semantic Kernel without a requirement | ML.NET; prefer MEAI + Microsoft.Agents.AI for new work |
Hand-rolled multi-step tool loops with IChatClient |
Microsoft.Agents.AI (MaximumIterations, tool dispatch) |
| Agent Framework for a single prompt→response | IChatClient directly |
Raw HttpClient/OpenAI SDK in business logic alongside MEAI |
one abstraction layer; depend on IChatClient |
PredictionEngine singleton in ASP.NET Core |
PredictionEnginePool<TIn,TOut> (not thread-safe) |
| RAG without chunking or relevance filtering | semantic chunking + minimum similarity score |
| Building custom neural nets in .NET from scratch | pre-trained via ONNX Runtime or an LLM API |
Dateien in diesem Skill
8technology-selection Skill-Fragen
Wie installiere ich den technology-selection Skill in Claude Code?
Führe npx degit dotnet/skills/plugins/dotnet-ai/skills/technology-selection ~/.claude/skills/technology-selection aus. Claude Code lädt Skills aus ~/.claude/skills (alle Projekte) oder .claude/skills (ein Projekt) und nutzt einen Skill, wenn seine Beschreibung zur Aufgabe passt.
Welche Clients können den technology-selection Skill nutzen?
Jeder Client, der das Agent Skills-Format liest: Claude Code, Codex, Gemini CLI und claude.ai (als ZIP hochladen). Skripte im Skill laufen nur dort, wo der Client Codeausführung erlaubt.
Wann sollte ich ML.NET statt eines LLM verwenden?
Nutze ML.NET für strukturierte oder tabellarische Aufgaben wie Klassifizierung, Regression, Clustering und Anomalieerkennung, da es schneller, günstiger und deterministisch ist.
Was ist der empfohlene Weg, um AI-Services in .NET zu registrieren?
Du solltest AI/ML-Services über Dependency Injection (DI) registrieren und Secrets aus sicheren Quellen wie user-secrets, Umgebungsvariablen oder Key Vault laden, anstatt sie hart zu codieren.
Kann ich diesen Skill für .NET Framework Projekte nutzen?
Nein, dieser Skill erfordert .NET 8 oder höher und ist nicht für Projekte gedacht, die auf das ältere .NET Framework abzielen.