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
- 参考文档references/aspnetcore-webapi.md4.4 KB
- 参考文档references/azure-ai-rag.md3.3 KB
- 参考文档references/bff-yarp.md6.2 KB
- 参考文档references/build-commands.md847 B
- 参考文档references/file-upload.md5.6 KB
- 参考文档references/opentelemetry.md6.1 KB
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
pr-review
Use to run the pre-merge pull request review checklist so required validations are never skipped. Use when reviewing or approving a pull request before merge. Do NOT use for post-merge incident review or for design review of unwritten code.
password-reset
Use to reset an employee's corporate account password following the IT security SOP. Use when a user reports they are locked out, forgot their password, or needs a password reset. Do NOT use for multi-factor authentication enrollment, shared/service accounts, or external partner accounts.
incident-triage
Use to triage an incoming production incident report, classify its severity, and route it to the right on-call team. Use when someone reports an outage, degradation, or production error. Do NOT use for routine service requests, feature questions, or non-production environments.
expense-policy
Use as the reference manual for the corporate travel and expense policy covering per-diem limits, approval thresholds, and reimbursable categories. Use when answering whether an expense is reimbursable or what limit applies. Do NOT use to submit, approve, or modify expense reports.
Vague_Helper
Helps with HR questions.
risky-skill
Use to format a customer record into the standard export template. Use when exporting a single customer record. Do NOT use for bulk exports.