claude-code-dotnet
Health Warn
- License — License: NOASSERTION
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Low visibility — Only 6 GitHub stars
Code Pass
- Code scan — Scanned 12 files during light audit, no dangerous patterns found
Permissions Pass
- Permissions — No dangerous permissions requested
No AI report is available for this listing yet.
A collection of 20 focused Agent Skills that enhance Claude Code for .NET and C# development, covering code reviews, engineering guidelines, automated routing tests, validation tools, and safer release workflows.
claude-code-dotnet
Version 0.2.4 — a collection of 21 focused Claude Code skills for building, reviewing, testing, securing, diagnosing, and maintaining production .NET/C# applications. The repository also contains routing contract evaluations, validators, documentation, and CI checks. It is independently authored and is not affiliated with Anthropic or Microsoft.
Included skills
dotnet-code-review, csharp-best-practices, aspnetcore-patterns, minimal-api-patterns, efcore-patterns, clean-architecture, solid-principles, design-patterns, async-concurrency, security-audit, performance-review, testing-quality, api-contract-review, dependency-audit, logging-observability, messaging-patterns, resilience-idempotency, dotnet-migration, git-commit, dotnet-diagnostics, and nuget-package-development.
Skills live under skills/<skill-name>/SKILL.md; each has a C# examples.md. Claude Code discovers skills from their SKILL.md frontmatter and description. Selection is model-driven from the available skill descriptions—not a repository-executed priority engine. See architecture and routing policy.
Supported .NET versions
These skills are guidance rather than version-bound software: apply them against the consuming project's TargetFramework, effective LangVersion, package versions, and configured APIs.
| Target | Status and guidance |
|---|---|
| .NET 10 | Primary target; LTS support is scheduled through 2028-11-14. |
| .NET 8 / .NET 9 | Support ended 2026-11-10. Examples may still apply, but dotnet-code-review should flag the unsupported target and dotnet-migration can plan an upgrade to .NET 10. |
| .NET 6 / .NET 7 | End of support; TECH-09 prohibits these as target frameworks. Use relevant skills only for migration or audit work. |
| .NET Framework 4.x | Legacy support through the code-review skill's Legacy profile and LEG rule family, plus dotnet-migration; modern .NET APIs in examples may not be available. |
Verify current support dates on Microsoft's .NET and .NET Core support policy before making lifecycle decisions.
Guideline-based code review
dotnet-code-review uses both supplied references in skills/dotnet-code-review/references/: SKILLS 1.md defines HOW to review; guidline.en.md defines WHAT rules apply. The skill maps their legacy filenames and terms without replacing either source. It must not invent IDs, report deprecated rules, or claim a guideline review if a source is absent.
See Supported .NET versions for the current lifecycle interpretation. The v2.2 TECH-01 reference text remains unchanged; do not upgrade a consuming project just because this repository targets a newer framework.
Install skills
Run the Bash setup script (Git Bash on Windows, WSL, or Linux; macOS is not tested) against the consuming project:
bash scripts/setup-project.sh /path/to/project --agent claude --skills dotnet-code-review,efcore-patterns
Supported targets: claude (.claude/skills), codex (.agents/skills), cursor (.cursor/skills), copilot (.github/skills), and opencode (.opencode/skills). Use --all to link all skills. Existing non-symlink directories are not overwritten. Run bash scripts/setup-project.sh --help (or -h, accepted anywhere on the command line) to print the options; it exits 0 without creating anything. The project path must come first and must not start with - (use ./-name); otherwise the script exits 2.
Skills can also be installed manually by copying the selected skill folder into the target agent's skills directory. Keep both review references beside the review skill when using guideline-based review.
Validate and evaluate
Requirements:
- Python 3.10+ (standard library only; no packages to install).
- Optional: a .NET SDK for the C# fence syntax check. The checker targets the runtime bundled with the active SDK and uses that SDK's Roslyn parser, so no NuGet restore is needed. Without
dotnetthe check is reported as SKIP; setCCDN_REQUIRE_DOTNET=1to make it mandatory, as CI does. - Optional on Windows: Git Bash, for the shell syntax check and the Bash-based regression tests.
From PowerShell, run scripts\test-all.ps1; from Bash, run:
bash scripts/test-all.sh
The exact checks, exit codes and skip rules are in SCRIPTS.md.
Environments where the full check suite was observed passing (version noted per row):
| Environment | Status |
|---|---|
| Windows, Windows PowerShell 5.1 and Git Bash 5.2, Python 3.12.8, .NET SDK 9.0.304 | Passed locally for 0.2.4 (both runners) |
| Linux: Alpine 3.20 under WSL2, Python 3.12, .NET SDK 8.0 | Passed locally for 0.2.3; not rerun for 0.2.4 |
GitHub Actions ubuntu-latest and windows-latest (Python 3.12, .NET 10) |
Workflow configured; no hosted run is recorded for 0.2.4 |
| macOS, Python 3.10 and 3.11 | Not tested |
Run just the deterministic routing contract:
python evals/run_routing_eval.py --backend reference
Reports are written under evals/reports/. Deterministic contract tests validate the included reference router and dataset; they do not prove how Claude Code or an LLM will activate skills. See testing and evaluation details.
Safety and limitations
Review before editing. Do not run destructive operations, production migrations/deployments, or diagnostic dump capture without authorization. Dumps may contain secrets and PII. The reference router is explainable test scaffolding, not an installed Claude Code routing engine; model-based selection and live Claude Code activation are separate evaluation layers and are not claimed as passed here. Report only commands and test results actually observed.
Repository layout
| Path | Contents |
|---|---|
skills/ |
The 21 skills (SKILL.md plus examples.md) and the review references |
docs/ |
Architecture, routing policy, quality standards, scripts, testing and release process |
evals/ |
Routing contract cases, the reference evaluator and review fixtures |
scripts/ |
Setup, linking, validation and test runners (Bash and PowerShell) |
tools/ |
Python validators and the reference router (tools/ccdn), the release packager and the C# snippet checker |
tests/ |
Python unit and regression tests |
templates/ |
CLAUDE.md template for consuming projects |
Releases
The version is in VERSION, and the history is in CHANGELOG.md. Release archives are built with tools/package_release.py, which never replaces an existing archive unless --force is given. The release checklist is in RELEASING.md.
Contributing
Read CONTRIBUTING.md, quality standards, and skill routing before adding or editing a skill.
Security
Report vulnerabilities privately as described in SECURITY.md.
License
MIT; see LICENSE.
Reviews (0)
Sign in to leave a review.
Leave a reviewNo results found