csharp-expert
Ce qu’il fait
Cette compétence sert de point d'entrée pour le travail en C# et .NET. Elle détermine quelle compétence spécialisée convient à la demande et fournit les étapes d'installation de celles qui manquent. Elle s'adresse aux développeurs qui ne savent pas quel outil ou guide .NET utiliser.
Quand l’utiliser
- ✓Quand vous ne savez pas quel spécialiste .NET doit traiter une tâche C# ou .NET.
- ✓Quand vous devez savoir comment ajouter un plugin dotnet skills qui couvre votre tâche.
- ✓Quand une demande .NET concerne plusieurs domaines, comme une API, sa couche de données et ses tests.
Lien du skill
https://github.com/dotnet/skills/blob/main/plugins/dotnet/skills/csharp-expert/SKILL.mdCopiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.
Comment l’utiliser
Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.
Message prêt à coller
Pour Claude Code, Codex ou Cursor : lancez-la dans le dossier du projet et le skill est installé.
Téléchargez le SKILL.md et placez-le dans le dossier de skills de votre agent.
Exemple de demande à votre IA
“Je dois ajouter une page Blazor puis corriger des requêtes EF Core lentes dans mon application .NET. Quelles compétences doivent traiter cela ?”
5 nouveaux skills par semaine. 1 minute de lecture.
Comment ça marche
L'agent examine votre dépôt, associe le résultat souhaité au meilleur spécialiste disponible et lui confie le travail lorsque vous lui demandez d'agir.
Contenu technique (SKILL.md original)
Texte original de l’auteur, en anglais, directement depuis GitHub.
C# Expert
Purpose
Act as the front door for C# and .NET work. Determine what the user wants, identify the kind of
solution that owns the work, invoke the narrowest installed specialist, and give exact
dotnet/skills marketplace installation steps when that specialist is missing. Keep direct C#
language guidance as the fallback, not the default.
Routing Contract
- Classify the requested outcome from the prompt.
- Inspect the smallest set of repository files needed to identify the solution type.
- Compare both signals with the descriptions of the skills currently available to the runtime.
- If the best skill is available and the user asked to perform the downstream work, invoke it with
the
skilltool as the first external action; do not emit a routing explanation before the invocation and do not merely recommend the skill. For selection or preparation-only requests, name the installed specialist and stop without invoking it. - If the best skill is missing, identify its plugin in
references/dotnet-skills-marketplace.md, then decide whether the current task can still be completed safely with repository tools and general .NET knowledge. - Use multiple skills only when the request has distinct phases with different owners.
- If no narrower marketplace skill owns the request, continue with the C# fallback workflow.
Routing is not task completion. A missing specialist changes the confidence and preferred workflow; it does not automatically justify stopping. Continue in the same turn when the task can be completed and validated without the specialist. Stop for installation only when the missing capability is actually required to proceed safely or the user asked specifically to install or load it.
Use these fast paths before general repository exploration:
- Marketplace selection only: when the prompt already states the framework, lifecycle, host, and required behavior, read only the bundled marketplace reference. Do not inspect the fixture, repository, GitHub, or plugin source. Name the exact skill and plugin, explain the decisive mapping, give host-correct acquisition steps, and stop.
- Only surviving diagnostic artifact: inspect that artifact first with the narrowest available
query. For a supplied
.binlog, do not glob, list, or search unrelated workspace files before extracting its recorded error, property, target, and path evidence.
Choose the operating mode from the user's requested outcome:
| User asks for | Required behavior |
|---|---|
| Implement, fix, diagnose, migrate, or create | Invoke the installed specialist, or complete a safe local fallback. If a narrower specialist exists but is unavailable, report its optional plugin afterward unless the user prohibited installation advice. |
| Identify, choose, install, prepare, or load the right marketplace capability | Inspect enough solution evidence to choose the owner, name it whether installed or missing, give acquisition steps only when needed, and stop without invoking the specialist, editing files, or generating the requested application artifact. |
Recover a plugin already installed but absent from /skills |
Refresh discovery first; do not reinstall or update on the first response. |
Choose one owner per phase. Do not expose internal routing ceremony or turn the answer into a menu.
Step 1: Classify the Prompt
Identify the primary action before inspecting implementation details.
| Prompt intent | Prefer skills whose description owns |
|---|---|
| Create or scaffold | Project/template creation for the detected solution type |
| Add application behavior | The framework or component where the behavior lives |
| Fix a compiler/runtime defect | The narrow language, framework, data, or interop owner |
| Build or restore failure | MSBuild, SDK, workload, project-reference, or NuGet diagnosis |
| Write, run, review, or migrate tests | The exact testing lifecycle or migration requested |
| Upgrade or migrate | The source version, target version, and artifact being migrated |
| Diagnose slowness, crash, hang, or memory growth | Runtime diagnostics unless evidence points to build performance or a local code hot path |
| Refactor without changing behavior | Refactoring rather than feature or bug-fix guidance |
| Package, publish, or trust a feed | NuGet/package-publishing workflow |
| Ask about C# syntax, types, nullability, async, or APIs | A language specialist unless solution-specific behavior is lo |
Questions fréquentes
Fera-t-elle elle-même le travail ?
Si vous demandez le travail, elle le transmet au spécialiste compétent. Pour la planification ou le choix, elle nomme le spécialiste et s'arrête là.
Revient-elle à des conseils C# généraux ?
Oui. Si aucune compétence plus précise ne convient, elle poursuit avec des conseils C# généraux.
D'où viennent les étapes d'installation ?
Elles proviennent d'une liste de référence des plugins de la place de marché dotnet/skills.
Détails
Description originale de l’auteur
Route C# and .NET requests to the exact installed specialist or smallest dotnet/skills marketplace plugin. USE FOR: "which specialist should own this" or "how do I add the skill" requests involving ASP.NET Core endpoints, Blazor, MAUI binding, Windows Forms specialist selection or installation, EF Core queries, test or framework migration, runtime CPU/allocation evidence, file-based C#, editor/compiler defects, a surviving MSBuild `.binlog`, or a plugin missing from `/skills`; also use for C# semantics when no narrower specialist exists. DO NOT USE FOR: requests that already name the exact ins
repo: dotnet/skills
Popularité
- Étoiles GitHub
- 5.8k
- Position au classement
- #14651
- Licence
- MIT
- Mis à jour
- 02/11/2026
Commentaires
- …
Autres skills de ce dépôt
create-custom-agent
5.8kAide votre agent à créer des fichiers d'agents personnalisés pour VS Code, avec leurs propres outils, instructions et transferts vers d'autres agents.
create-skill
5.8kAide votre agent à créer une nouvelle skill d'agent avec un nom valide, une description de déclenchement claire et un fichier SKILL.md conforme à la norme.
csharp-scripts
5.8kAide votre agent à exécuter un petit programme C# en un seul fichier avec l'outil en ligne de commande .NET, sans créer de projet complet.
dotnet-pinvoke
5.8kAide votre agent à appeler correctement des bibliothèques natives C ou C++ depuis .NET, en couvrant les signatures, la gestion des chaînes, la mémoire et les handles sûrs.
Skills similaires
diffs
394kPermet à votre agent de produire un diff réel et partageable de vos modifications, sous forme de lien ou d'image, plutôt qu'un résumé écrit à la main.
coding-agent
394kAide votre agent à confier une tâche de programmation plus importante à Codex, Claude Code ou OpenCode comme travailleur en arrière-plan, puis à suivre sa progression.
gh-issues
394kAide votre agent à trouver des tickets GitHub, choisir ceux à traiter et ouvrir des pull requests avec des correctifs, y compris le suivi des commentaires de relecture.