
Dotnet patterns
Guides an AI agent to write and review idiomatic C# and .NET code
Dotnet patterns is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.
- Scripts
- None
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 66
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Dotnet patterns
This skill gives the agent a set of C# and .NET conventions to apply when writing or reviewing code. It covers preferring immutable records and init-only properties, explicit nullability and access modifiers, interface-based services registered through the dependency injection container, and async/await used end to end with cancellation tokens.
The guidance also includes practical building blocks for ASP.NET Core work: the options pattern for strongly typed configuration, a result type for expected failures, a repository over EF Core, custom middleware with request timing, minimal API route groups, and guard clauses. A closing table lists common anti-patterns such as async void, blocking on tasks, and mutable static state, with the recommended fix for each.
The skill is a set of written instructions and code examples with no scripts. It works with C# and .NET projects and does not require any particular tools.
When your agent uses it
Idiomatic C# and .NET patterns, conventions, dependency injection, async/await, and best practices for building robust, maintainable .NET applications. Use when writing or reviewing C# / .NET code — DI, async, or general conventions.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 2 files (9 KB) on GitHub on 1 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the rea-skills plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add smartworldarafath/REA_Skill
/plugin install rea-skills@smartworldarafathOr copy only this skill to ~/.claude/skills/dotnet-patterns:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/dotnet-patterns &&
cp -R "$tmp/.agents/skills/dotnet-patterns" ~/.claude/skills/dotnet-patterns &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/dotnet-patterns inside it instead.
Copy the skill folder to ~/.agents/skills/dotnet-patterns to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/dotnet-patterns &&
cp -R "$tmp/.agents/skills/dotnet-patterns" ~/.agents/skills/dotnet-patterns &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/dotnet-patterns inside it instead.
Copy the skill folder to ~/.cursor/skills/dotnet-patterns to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/dotnet-patterns &&
cp -R "$tmp/.agents/skills/dotnet-patterns" ~/.cursor/skills/dotnet-patterns &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/dotnet-patterns inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/smartworldarafath/REA_Skill.git --path .agents/skills/dotnet-patternsOr copy the folder to ~/.gemini/skills/dotnet-patterns yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/dotnet-patterns:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/dotnet-patterns &&
cp -R "$tmp/.agents/skills/dotnet-patterns" ~/.copilot/skills/dotnet-patterns &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/dotnet-patterns inside it instead.
Get the folder:
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.gitThen copy REA_Skill/.agents/skills/dotnet-patterns into your agent's skills folder as dotnet-patterns. Agents that support SKILL.md read one folder per skill.
What it does
- Immutable data modeling
- Guidance on records, init-only properties and required members for data models.
- Dependency injection setup
- Patterns for interface boundaries and registering services with the DI container.
- Async and cancellation
- Rules for async all the way down, concurrent tasks and passing cancellation tokens.
- ASP.NET Core patterns
- Examples for options binding, middleware, minimal API route groups and typed results.
- Data access with EF Core
- A repository example using EF Core with no-tracking queries and includes.
- Anti-pattern reference
- A table of common C# mistakes paired with the recommended fix for each.
Good for
- Review a C# service class for async misuse and blocking calls
- Refactor a .NET class to use constructor injection and interfaces
- Set up strongly typed configuration with the options pattern
- Add a request timing middleware to an ASP.NET Core app
- Structure minimal API endpoints with route groups
Dotnet patterns FAQ
When does Dotnet patterns activate?
It is meant for writing or reviewing C# and .NET code, including tasks involving dependency injection, async behavior or general conventions.
Does Dotnet patterns run any scripts or need extra tools?
No scripts are included and no allowed tools are set. It consists of guidance and code examples in a SKILL.md file.
How do I install Dotnet patterns in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/dotnet-patterns to use it in all your projects, or to .claude/skills/dotnet-patterns in one project. Or install the rea-skills plugin, which includes it: /plugin marketplace add smartworldarafath/REA_Skill, then /plugin install rea-skills@smartworldarafath.
Does Dotnet patterns run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Dotnet patterns?
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.
What are the best alternatives to Dotnet patterns?
The closest alternatives to Dotnet patterns are Dotnet best practices, Dotnet design pattern review, Csharp testing, Csharp async and Ef core.
Where this comes from
- Description: from the skill's own SKILL.md.
More from smartworldarafath/REA_Skill

Guides building and auditing UI to WCAG 2.2 AA across web, iOS and Android
- Open source
- 66 GitHub stars
- Developer tools

Diagnoses agent and LLM stacks for hidden failures and ranks the fixes by severity
- Open source
- 66 GitHub stars
- Developer tools

Compare coding agents head-to-head on your own tasks by pass rate, cost and time
- Open source
- 66 GitHub stars
- Developer tools

Guides an agent to design tool sets, observations and error recovery for better completion
- Open source
- 66 GitHub stars
- Developer tools

Gives an agent a structured capture-diagnose-recover loop for failing runs
- Open source
- 66 GitHub stars
- Developer tools

Lets an AI agent make x402 payments within per-task budgets and spending policies
- Open source
- 66 GitHub stars
- Finance and payments


