Write idiomatic modern C#
Use clear types, records, pattern matching, nullable annotations, collections, LINQ, exceptions, disposables, and naming that fit the target language version.
Codex Skills for C# give Codex practical instructions for reading .NET solutions, writing idiomatic C#, using nullable reference types, handling asynchronous work, building ASP.NET Core services, testing behavior, and maintaining packages. Download the skills and configure them for your target framework, SDK, architecture, and coding standards.
task: add invoice endpoint
inspect:
- solution structure
- nullable context
- service contracts
verify: build + tests + analyzersStrong C# code uses the language and runtime deliberately. Nullability communicates contracts, async methods preserve responsiveness, cancellation flows across boundaries, LINQ execution behavior matters, and dependency lifetimes affect correctness.
These skills guide Codex through .NET development with attention to solution structure, compiler diagnostics, framework conventions, package compatibility, tests, performance, and existing architectural choices.
Use clear types, records, pattern matching, nullable annotations, collections, LINQ, exceptions, disposables, and naming that fit the target language version.
Use Task-based APIs, await work properly, propagate cancellation, avoid async void outside event handlers, and preserve exceptions and resource lifetimes.
Work across ASP.NET Core, workers, console tools, libraries, desktop applications, dependency injection, configuration, logging, and data access.
Compile all target frameworks, run unit and integration tests, respect analyzers and formatting, inspect warnings, and check package and API compatibility.
The workflow reads the solution and target frameworks first, then uses compiler feedback and tests throughout implementation.
Read solution and project files, SDK settings, target frameworks, nullable mode, analyzers, package versions, architecture, and test projects.
Follow interfaces, dependency injection, models, nullability, async call chains, persistence, serialization, configuration, and public API consumers.
Reuse established patterns, preserve lifetime and cancellation behavior, keep types honest, and avoid suppressing warnings without a clear reason.
Restore, build, test, format or analyze as configured, inspect warnings, and validate every affected target framework and application path.
A web API, reusable library, desktop application, and game project have different lifecycle and compatibility needs.
Build APIs, middleware, authentication policies, dependency injection, configuration, background services, and integration tests.
Design public APIs, preserve binary and source compatibility, target frameworks, document behavior, and prepare package releases.
Develop console, WPF, WinForms, and worker applications with responsive async flows, configuration, logging, and deployment.
Write runtime and editor C# within Unity's supported language, serialization, lifecycle, performance, and platform constraints.
The workflow can focus on one class or trace a change across projects in a large solution.
These skills support teams that want Codex to respect C# semantics, framework conventions, and solution-specific decisions.
Implement features, fix defects, refactor code, improve tests, and use modern language features with project context.
Build services with clear contracts, correct dependency lifetimes, async behavior, persistence, authorization, and observability.
Maintain multi-project solutions, compatibility requirements, analyzers, migrations, integrations, and long-lived codebases.
See how language features, compiler diagnostics, runtime behavior, project configuration, and tests fit together.
The skills assist C# and .NET work, but changes still require review against the supported SDKs, target frameworks, platform requirements, security standards, performance needs, and production environment.
Install the skills beside the solution so Codex can inspect project files, shared build settings, tests, and analyzer rules.
Keep SKILL.md with its C# guidance, .NET verification process, framework notes, and supporting references.
Use project scope for solution-specific architecture and versions, or personal scope for reusable C# development habits.
Provide global.json expectations, target frameworks, C# language version, nullable policy, analyzer severity, runtime identifiers, and supported platforms.
Add dependency injection patterns, exception rules, async and cancellation policy, testing libraries, formatting, and public API requirements.
Open Codex where it can find the solution, Directory.Build files, project references, tests, package configuration, and local instructions.
Answers about .NET versions, ASP.NET Core, null safety, async code, testing, and Unity.
The skill follows the SDK, target frameworks, language version, and packages declared by the project. State any additional deployment constraints.
Yes. It can guide endpoints, middleware, services, dependency injection, persistence, authentication, validation, logging, and integration tests.
Yes. The workflow treats annotations as API contracts, follows compiler flow analysis, and avoids using the null-forgiving operator merely to silence warnings.
It can trace async call chains, blocking calls, cancellation, exception flow, resource lifetime, and incorrect async void use, then verify the affected behavior.
Yes, when you provide the Unity version and project constraints. Unity APIs, serialization, lifecycle methods, main-thread rules, and supported C# features must be respected.
Honest nullability. Predictable tasks. Clean builds. Tests across the affected projects.