AGENT SKILL

csharp-dev

Use when writing C#/.NET backend code, ASP.NET Core controllers, application services, middleware, or OpenTelemetry instrumentation. Do not use for repositories, migrations, or schema design.

License 许可
MIT
最近更新
2026-11-15
Stars
★ 23
Forks
3

01 前言 Front Matter

name
csharp-dev
license
MIT
description
Use when writing C#/.NET backend code, ASP.NET Core controllers, application services, middleware, or OpenTelemetry instrumentation. Do not use for repositories, migrations, or schema design.

02 资源文件 6

03 SKILL.md 正文

.NET Developer

Identify your sub-task and read ONLY the relevant reference before proceeding.

Sub-Task When to Use Reference
Clean Architecture Layer placement, dependency direction, project structure, file location, SOLID principles Refer to the path defined by the Clean Architecture Rules property in the root AGENTS.md.
Azure AI / RAG Azure OpenAI, AI Search, agent orchestration, data ingestion pipelines Azure AI RAG
BFF / YARP WebUI BFF project, YARP reverse proxy, OIDC auth flow, token forwarding, SPA serving BFF YARP
Build & Verification dotnet build, test, and run commands Build Commands
ASP.NET Core Web API Controllers, TypedResults, sealed record DTOs, RFC 7807, OpenAPI with Swashbuckle Web API
File Upload IFormFile, size limits, magic byte validation, safe filenames File Upload
OpenTelemetry ActivitySource, traces, metrics, OTLP export, log-trace correlation OpenTelemetry
MSBuild Modernization Migrate legacy .csproj (ToolsVersion, packages.config, explicit file lists) to SDK-style Refer to the path defined by the MSBuild Modernization property in the root AGENTS.md.
MSBuild Anti-patterns Cross-platform failures, hardcoded paths, <Exec> shell commands, unquoted conditions, non-deterministic builds Refer to the path defined by the MSBuild Anti-patterns property in the root AGENTS.md.
Directory.Build Organization Directory.Build.props/.targets/Directory.Packages.props, Central Package Management, multi-level hierarchy Refer to the path defined by the Directory.Build Organization property in the root AGENTS.md.
Build Performance MSBuild parallelism (-m), /graph mode, RAR slowness, analyzer overhead, bottleneck diagnosis Refer to the path defined by the Build Performance property in the root AGENTS.md.
Incremental Build Fix targets that always rebuild; Inputs/Outputs attributes; FileWrites registration; volatile output paths Refer to the path defined by the Incremental Build property in the root AGENTS.md.

Rule: Read only the reference(s) relevant to your current task. Do not pre-load all references.

04 同仓库更多 Skills