Pack · #278 trending skills repo
Dotnet Skills
Aaronontheweb/dotnet-skills
Claude Code skills and sub-agents for .NET Developers
- Stars
- 1.3k
- This week
- —
- Forks
- 117
- Open issues
- 6
- Skills inside
- 39
Get started
Install the skills
npx skills add Aaronontheweb/dotnet-skillsInstalls into Claude Code, Codex, Cursor, OpenCode and the other agents it finds on your machine.
/plugin marketplace add https://github.com/Aaronontheweb/dotnet-skills
/plugin install dotnet-skills
/plugin install dotnet-skills@dotnet-skillsRun inside Claude Code, then pick what to install from /plugin.
git clone --depth 1 https://github.com/Aaronontheweb/dotnet-skills.git /tmp/dotnet-skills
cp -r /tmp/dotnet-skills ~/.claude/skills/dotnet-skillsClaude Code reads ~/.claude/skills/ (or .claude/skills/ in a project). Other agents read the same SKILL.md format from their own skills folder.
Inside this repo
39 skills
skills/akka-aspire-configurationakka-net-best-practicesCritical Akka.NET best practices including EventStream vs DistributedPubSub, supervision strategies, error handling, Props vs DependencyResolver, work distribution patterns, and cluster/local mode abstractions for testability.skills/akka-best-practicesakka-hosting-actor-patternsPatterns for building entity actors with Akka.Hosting - GenericChildPerEntityParent, message extractors, cluster sharding abstraction, akka-reminders, and ITimeProvider. Supports both local testing and clustered production modes.skills/akka-hosting-actor-patternsakka-net-managementAkka.Management for cluster bootstrapping, service discovery (Kubernetes, Azure, Config), health checks, and dynamic cluster formation without static seed nodes.skills/akka-managementakka-net-testing-patternsWrite unit and integration tests for Akka.NET actors using modern Akka.Hosting.TestKit patterns. Covers dependency injection, TestProbes, persistence testing, and actor interaction verification. Includes guidance on when to use traditional TestKit.skills/akka-testing-patternsaot-trimmingGuidelines for making .NET libraries and applications trimming-safe and Native AOT compatible. Covers the trimming/AOT model, the MSBuild properties that enable analysis (IsTrimmable, IsAotCompatible, PublishTrimmed, PublishAot), the trimming attributes (RequiresUnreferencedCode, RequiresDynamicCodeskills/aot-trimmingaspire-configurationConfigure Aspire AppHost to emit explicit app config via environment variables; keep app code free of Aspire clients and service discovery.skills/aspire-configurationaspire-integration-testingWrite integration tests using .NET Aspire's testing facilities with xUnit. Covers test fixtures, distributed application setup, endpoint discovery, and patterns for testing ASP.NET Core apps with real dependencies.skills/aspire-integration-testingmailpit-integrationTest email sending locally using Mailpit with .NET Aspire. Captures all outgoing emails without sending them. View rendered HTML, inspect headers, and verify delivery in integration tests.skills/aspire-mailpit-integrationaspire-service-defaultsCreate a shared ServiceDefaults project for Aspire applications. Centralizes OpenTelemetry, health checks, resilience, and service discovery configuration across all services.skills/aspire-service-defaultscrap-analysisAnalyze code coverage and CRAP (Change Risk Anti-Patterns) scores to identify high-risk code. Use OpenCover format with ReportGenerator for Risk Hotspots showing cyclomatic complexity and untested code paths.skills/crap-analysiscscheckWrite and simplify C# property-based, model-based, and executable specification tests with CsCheck. Use for generators, shrinking, stateful command sequences, Spec guards and rules, implementation conformance, or replaying generated failures.skills/cscheckapi-designDesign stable, compatible public APIs using extend-only design principles. Manage API compatibility, wire compatibility, and versioning for NuGet packages and distributed systems.skills/csharp-api-designmodern-csharp-coding-standardsWrite modern, high-performance C# code using records, pattern matching, value objects, async/await, Span<T>/Memory<T>, and best-practice API design patterns. Emphasizes functional-style programming with C# 12+ features.skills/csharp-coding-standardscsharp-concurrency-patternsChoosing the right concurrency abstraction in .NET - from async/await for I/O to Channels for producer/consumer to Akka.NET for stateful entity management. Avoid locks and manual synchronization unless absolutely necessary.skills/csharp-concurrency-patternscsharp-nullable-reference-typesGuidelines for introducing and using nullable reference types (NRT) and System.Diagnostics.CodeAnalysis nullable attributes in C# / .NET codebases. Covers the nullability model, flow analysis, the null-forgiving operator, API design rules, the full attribute catalog (AllowNull, DisallowNull, MaybeNuskills/csharp-nullable-reference-typestype-design-performanceDesign .NET types for performance. Seal classes, use readonly structs, prefer static pure functions, avoid premature enumeration, and choose the right collection types.skills/csharp-type-design-performancedatabase-performanceDatabase access patterns for performance. Separate read/write models, avoid N+1 queries, use AsNoTracking, apply row limits, and never do application-side joins. Works with EF Core and Dapper.skills/database-performancedotnet-devcert-trustDiagnose and fix .NET HTTPS dev certificate trust issues on Linux. Covers the full certificate lifecycle from generation to system CA bundle inclusion, with distro-specific guidance for Ubuntu, Fedora, Arch, and WSL2.skills/dotnet-devcert-trustefcore-patternsEntity Framework Core best practices including NoTracking by default, query splitting for navigation collections, migration management, dedicated migration services, and common pitfalls to avoid.skills/efcore-patternsilspy-decompileUnderstand implementation details of .NET code by decompiling assemblies. Use when you want to see how a .NET API works internally, inspect NuGet package source, view framework implementation, or understand compiled .NET binaries.skills/ilspy-decompiledotnet-local-toolsManaging local .NET tools with dotnet-tools.json for consistent tooling across development environments and CI/CD pipelines.skills/local-toolsmarketplace-publishingWorkflow for publishing skills and agents to the dotnet-skills Claude Code marketplace. Covers adding new content, updating plugin.json, validation, and release tagging.skills/marketplace-publishingmicrosoft-extensions-configurationMicrosoft.Extensions.Options patterns including IValidateOptions, strongly-typed settings, validation on startup, and the Options pattern for clean configuration management.skills/microsoft-extensions-configurationdependency-injection-patternsOrganize DI registrations using IServiceCollection extension methods. Group related services into composable Add* methods for clean Program.cs and reusable configuration in tests.skills/microsoft-extensions-dependency-injectionmjml-email-templatesBuild responsive email templates using MJML markup language. Compiles to cross-client HTML that works in Outlook, Gmail, and Apple Mail. Includes template renderer, layout patterns, and variable substitution.skills/mjml-email-templatesopentelemetry-net-instrumentationProvides guidance for implementing OpenTelemetry instrumentation in .NET codebases, covering tracing (Activities/Spans), metrics, logs, naming conventions, error handling, performance, SDK setup, resources, context propagation, and API design best practices.skills/opentelementry-dotnet-instrumentationpackage-managementManage NuGet packages using Central Package Management (CPM) and dotnet CLI commands. Never edit XML directly - use dotnet add/remove/list commands. Use shared version variables for related packages.skills/package-managementplaywright-blazor-testingWrite UI tests for Blazor applications (Server or WebAssembly) using Playwright. Covers navigation, interaction, authentication, selectors, and common Blazor-specific patterns.skills/playwright-blazorplaywright-ci-cachingCache Playwright browser binaries in CI/CD pipelines (GitHub Actions, Azure DevOps) to avoid 1-2 minute download overhead on every build.skills/playwright-ci-cachingdotnet-project-structureModern .NET project structure including .slnx solution format, Directory.Build.props, central package management, SourceLink, version management with RELEASE_NOTES.md, and SDK pinning with global.json.skills/project-structurer3-reactive-extensionsBuild reactive/event-driven C# with R3 (Cysharp's modern reimplementation of Reactive Extensions). Covers the Observable<T>/Observer<T> model, the OnErrorResume error contract, async dispatch with AwaitOperation, Task/IAsyncEnumerable integration, TimeProvider/FrameProvider scheduling, the concurrenskills/r3-reactive-extensionssdk-container-publishingPublish .NET services as container images with the built-in SDK tooling (dotnet publish /t:PublishContainer, Microsoft.NET.Build.Containers) - no Dockerfile required. Covers the MSBuild property surface, base-image inference, self-contained and AOT implications, and CI/CD publishing.skills/sdk-container-publishingserializationChoose the right serialization format for .NET applications. Prefer schema-based formats (Protobuf, MessagePack) over reflection-based (Newtonsoft.Json). Use System.Text.Json with AOT source generators for JSON scenarios.skills/serializationskills-index-snippetsCreate and maintain AGENTS.md / CLAUDE.md snippet indexes that route tasks to the correct dotnet-skills skills and agents (including compressed Vercel-style indexes).skills/skills-index-snippetsdotnet-slopwatchUse Slopwatch to detect LLM reward hacking in .NET code changes. Run after every code modification to catch disabled tests, suppressed warnings, empty catch blocks, and other shortcuts that mask real problems.skills/slopwatchsnapshot-testingUse Verify for snapshot testing in .NET. Approve API surfaces, HTTP responses, rendered emails, and serialized outputs. Detect unintended changes through human-reviewed baseline files.skills/snapshot-testingtestcontainers-integration-testsWrite integration tests using TestContainers for .NET with xUnit. Covers infrastructure testing with real databases, message queues, and caches in Docker containers instead of mocks.skills/testcontainersverify-email-snapshotsSnapshot test email templates using Verify to catch regressions. Validates rendered HTML output matches approved baseline. Works with MJML templates and any email renderer.skills/verify-email-snapshotsDocumentation
README
.NET Skills for Claude Code and Codex
A comprehensive AI coding plugin with 30 skills and 5 specialized agents for professional .NET development. Battle-tested patterns from production systems covering C#, Akka.NET, Aspire, EF Core, testing, and performance optimization.
Installation
This plugin works with multiple AI coding assistants that support skills/agents.
Claude Code (CLI)
Run these commands inside the Claude Code CLI (the terminal app, not the VSCode extension):
/plugin marketplace add https://github.com/Aaronontheweb/dotnet-skills
/plugin install dotnet-skills
To update:
/plugin marketplace update
Codex (OpenAI)
Add the marketplace, then install the plugin:
codex plugin marketplace add Aaronontheweb/dotnet-skills
codex plugin add dotnet-skills@dotnet-skills
Verify the install:
codex plugin list
Skills are auto-discovered from the plugin's skills/ directory. Invoke one with /skills or $skill-name in the Codex CLI or IDE extension. Note: the specialized agents are Claude Code-specific and are not included in the Codex plugin.
GitHub Copilot
Run these commands:
/plugin marketplace add https://github.com/Aaronontheweb/dotnet-skills
/plugin install dotnet-skills@dotnet-skills
To update:
/plugin update dotnet-skills@dotnet-skills
Alternatively:
Clone or copy skills to your project or global config:
Project-level (recommended):
# Clone to .github/skills/ in your project
git clone https://github.com/Aaronontheweb/dotnet-skills.git /tmp/dotnet-skills
cp -r /tmp/dotnet-skills/skills/* .github/skills/
Global (all projects):
mkdir -p ~/.copilot/skills
cp -r /tmp/dotnet-skills/skills/* ~/.copilot/skills/
OpenCode
git clone https://github.com/Aaronontheweb/dotnet-skills.git /tmp/dotnet-skills
# Global installation (directory names must match frontmatter 'name' field)
mkdir -p ~/.config/opencode/skills ~/.config/opencode/agents
for skill_file in /tmp/dotnet-skills/skills/*/SKILL.md; do
skill_name=$(grep -m1 "^name:" "$skill_file" | sed 's/name: *//')
mkdir -p ~/.config/opencode/skills/$skill_name
cp "$skill_file" ~/.config/opencode/skills/$skill_name/SKILL.md
done
cp /tmp/dotnet-skills/agents/*.md ~/.config/opencode/agents/
Suggested AGENTS.md / CLAUDE.md Snippets
These snippets go in your project root (the root directory of your codebase, next to your .git folder):
- Claude Code:
CLAUDE.md - OpenCode:
AGENTS.md
Prerequisite: install/sync the dotnet-skills plugin in your assistant runtime (Claude Code or OpenCode) so the skill IDs below resolve.
To get consistent skill usage in downstream repos, add a small router snippet in AGENTS.md (OpenCode) or CLAUDE.md (Claude Code). These snippets tell the assistant which skills to use for common tasks.
Readable snippet (copy/paste)
# Agent Guidance: dotnet-skills
IMPORTANT: Prefer retrieval-led reasoning over pretraining for any .NET work.
Workflow: skim repo patterns -> consult dotnet-skills by name -> implement smallest-change -> note conflicts.
Routing (invoke by name)
- C# / code quality: modern-csharp-coding-standards, csharp-concurrency-patterns, api-design, type-design-performance, r3-reactive-extensions
- ASP.NET Core / Web (incl. Aspire): aspire-service-defaults, aspire-integration-testing, mailpit-integration, mjml-email-templates, verify-email-snapshots
- Data: efcore-patterns, database-performance
- DI / config: dependency-injection-patterns, microsoft-extensions-configuration
- Testing: cscheck, testcontainers-integration-tests, playwright-blazor-testing, snapshot-testing
Quality gates (use when applicable)
- dotnet-slopwatch: after substantial new/refactor/LLM-authored code
- crap-analysis: after tests added/changed in complex code
Specialist agents
- dotnet-concurrency-specialist, dotnet-performance-analyst, dotnet-benchmark-designer, akka-net-specialist, docfx-specialist
Compressed snippet (generated)
Run ./scripts/generate-skill-index-snippets.sh --update-readme to refresh the block below.
[dotnet-skills]|IMPORTANT: Prefer retrieval-led reasoning over pretraining for any .NET work.
|flow:{skim repo patterns -> consult dotnet-skills by name -> implement smallest-change -> note conflicts}
|route:
|akka:{akka-net-best-practices,akka-net-testing-patterns,akka-hosting-actor-patterns,akka-net-aspire-configuration,akka-net-management}
|csharp:{modern-csharp-coding-standards,csharp-concurrency-patterns,csharp-nullable-reference-types,api-design,type-design-performance,r3-reactive-extensions}
|aspnetcore-web:{aspire-integration-testing,aspire-configuration,aspire-service-defaults,mailpit-integration,mjml-email-templates}
|data:{efcore-patterns,database-performance}
|di-config:{microsoft-extensions-configuration,dependency-injection-patterns}
|testing:{cscheck,testcontainers-integration-tests,playwright-blazor-testing,snapshot-testing,verify-email-snapshots,playwright-ci-caching}
|dotnet:{sdk-container-publishing,dotnet-project-structure,dotnet-local-tools,package-management,serialization,dotnet-devcert-trust,ilspy-decompile,opentelemetry-net-instrumentation,aot-trimming}
|quality-gates:{dotnet-slopwatch,crap-analysis}
|meta:{marketplace-publishing,skills-index-snippets}
|agents:{akka-net-specialist,docfx-specialist,dotnet-benchmark-designer,dotnet-concurrency-specialist,dotnet-performance-analyst,roslyn-incremental-generator-specialist}
Specialized Agents
Agents are AI personas with deep domain expertise. They're invoked automatically when Claude Code detects relevant tasks.
| Agent | Expertise |
|---|---|
| akka-net-specialist | Actor systems, clustering, persistence, Akka.Streams, message patterns |
| dotnet-concurrency-specialist | Threading, async/await, race conditions, deadlock analysis |
| dotnet-benchmark-designer | BenchmarkDotNet setup, custom benchmarks, measurement strategies |
| dotnet-performance-analyst | Profiler analysis, benchmark interpretation, regression detection |
| docfx-specialist | DocFX builds, API documentation, markdown linting |
Skills Library
Akka.NET
Production patterns for building distributed systems with Akka.NET.
| Skill | What You'll Learn |
|---|---|
| best-practices | EventStream vs DistributedPubSub, supervision strategies, actor hierarchies |
| testing-patterns | Akka.Hosting.TestKit, async assertions, TestProbe patterns |
| hosting-actor-patterns | Props factories, IRequiredActor<T>, DI scope management in actors |
| aspire-configuration | Akka.NET + .NET Aspire integration, HOCON with IConfiguration |
| management | Akka.Management, health checks, cluster bootstrap |
C# Language
Modern C# patterns for clean, performant code.
| Skill | What You'll Learn |
|---|---|
| coding-standards | Records, pattern matching, nullable types, value objects, no AutoMapper |
| concurrency-patterns | When to use Task vs Channel vs lock vs actors |
| api-design | Extend-only design, API/wire compatibility, versioning strategies |
| type-design-performance | Sealed classes, readonly structs, static pure functions, Span<T> |
| r3-reactive-extensions | R3 vs Rx.NET, OnErrorResume, AwaitOperation async dispatch, concurrency, TimeProvider/FrameProvider |
Data Access
Database patterns that scale.
| Skill | What You'll Learn |
|---|---|
| efcore-patterns | Entity configuration, migrations, query optimization |
| database-performance | Read/write separation, N+1 prevention, AsNoTracking, row limits |
.NET Aspire
Cloud-native application orchestration.
| Skill | What You'll Learn |
|---|---|
| integration-testing | DistributedApplicationTestingBuilder, Aspire.Hosting.Testing |
| service-defaults | OpenTelemetry, health checks, resilience, service discovery |
| mailpit-integration | Email testing with Mailpit container, SMTP config, test assertions |
ASP.NET Core
Web application patterns.
| Skill | What You'll Learn |
|---|---|
| mjml-email-templates | MJML syntax, responsive layouts, template renderer, composer pattern |
.NET Ecosystem
Core .NET development practices.
| Skill | What You'll Learn |
|---|---|
| project-structure | Solution layout, Directory.Build.props, layered architecture |
| package-management | Central Package Management (CPM), shared version variables, dotnet CLI |
| serialization | Protobuf, MessagePack, System.Text.Json source generators, AOT |
| local-tools | dotnet tool manifests, team-shared tooling |
| slopwatch | Detect LLM-generated anti-patterns in your codebase |
Microsoft.Extensions
Dependency injection and configuration patterns.
| Skill | What You'll Learn |
|---|---|
| configuration | IOptions pattern, environment-specific config, secrets management |
| dependency-injection | IServiceCollection extensions, scope management, keyed services |
Testing
Comprehensive testing strategies.
| Skill | What You'll Learn |
|---|---|
| cscheck | Property generators, model-based tests, native Spec, shrinking and replay |
| testcontainers | Docker-based integration tests, PostgreSQL, Redis, RabbitMQ |
| playwright-blazor | E2E testing for Blazor apps, page objects, async assertions |
| crap-analysis | CRAP scores, coverage thresholds, ReportGenerator integration |
| snapshot-testing | Verify library, approval testing, API response validation |
| verify-email-snapshots | Snapshot test email templates, catch rendering regressions |
Key Principles
These skills emphasize patterns that work in production:
- Immutability by default - Records, readonly structs, value objects
- Type safety - Nullable reference types, strongly-typed IDs
- Composition over inheritance - No abstract base classes, sealed by default
- Performance-aware - Span<T>, pooling, deferred enumeration
- Testable - DI everywhere, pure functions, explicit dependencies
- No magic - No AutoMapper, no reflection-heavy frameworks
Repository Structure
dotnet-skills/
├── .claude-plugin/
│ ├── plugin.json # Claude Code plugin manifest
│ └── marketplace.json # Claude Code marketplace
├── .codex-plugin/
│ └── plugin.json # Codex plugin manifest
├── .agents/
│ └── plugins/
│ └── marketplace.json # Codex marketplace
├── agents/ # 5 specialized agents (Claude Code)
│ ├── akka-net-specialist.md
│ ├── docfx-specialist.md
│ ├── dotnet-benchmark-designer.md
│ ├── dotnet-concurrency-specialist.md
│ └── dotnet-performance-analyst.md
└── skills/ # Flat structure (30 skills)
├── akka-best-practices/SKILL.md
├── akka-hosting-actor-patterns/SKILL.md
├── akka-net-aspire-configuration/SKILL.md
├── aspire-configuration/SKILL.md
├── aspire-integration-testing/SKILL.md
├── csharp-concurrency-patterns/SKILL.md
├── testcontainers-integration-tests/SKILL.md
└── ... # (prefixed by category)
Contributing
Want to add a skill or agent? PRs welcome!
- Create
skills/<skill-name>/SKILL.md(use prefixes likeakka-,aspire-,csharp-for category) - Add the path to
.claude-plugin/plugin.json(the Codex plugin auto-discovers the wholeskills/dir) - Run
./scripts/validate-marketplace.shand./scripts/validate-codex-plugin.sh - Submit a PR
Skills should be comprehensive reference documents (10-40KB) with concrete examples and anti-patterns.
Author
Created by Aaron Stannard (@Aaronontheweb)
Patterns drawn from production systems including Akka.NET, Petabridge, and Sdkbin.
License
MIT License - Copyright (c) 2025 Aaron Stannard
See LICENSE for full details.
Releases