Skip to content

Add dotnet-backend plugin for .NET 9 backend development#14

Open
norequest wants to merge 1 commit intogithub:mainfrom
norequest:add-dotnet-backend-plugin
Open

Add dotnet-backend plugin for .NET 9 backend development#14
norequest wants to merge 1 commit intogithub:mainfrom
norequest:add-dotnet-backend-plugin

Conversation

@norequest
Copy link

@norequest norequest commented Feb 6, 2026

Summary

  • Adds a new dotnet-backend plugin providing decision-tree guidance for .NET 9 backend development
  • Covers architecture selection (Clean Architecture, Vertical Slice, Modular Monolith), CQRS with MediatR, DDD patterns, EF Core 9 migrations, testing strategies, error handling, observability, and SignalR real-time patterns
  • Includes 1 SKILL.md, 3 stack templates, and 6 reference guides (10 files total)
  • Registers the plugin in marketplace.json

Plugin Structure

plugins/dotnet-backend/
  skills/dotnet-backend/
    SKILL.md                          # Main skill with interactive architecture decision flow
    stacks/
      clean-architecture.md           # 4-project Clean Architecture scaffolding
      vertical-slice.md               # Feature-per-file architecture
      modular-monolith.md             # Module-based architecture with per-module DbContext
    references/
      ddd-patterns.md                 # Domain-Driven Design tactical patterns
      testing-strategies.md           # Architecture-specific testing (xUnit, Testcontainers, Respawn)
      ef-migrations.md                # EF Core 9 migration best practices
      error-handling.md               # IExceptionHandler + ProblemDetails
      observability.md                # OpenTelemetry + Serilog structured logging
      signalr-patterns.md             # Real-time communication patterns

Key Design Decisions

  • All code targets .NET 9 with current NuGet packages
  • MediatR v12+ patterns (AddOpenBehavior, INotification)
  • NSubstitute for mocking (consistent across all examples)
  • SQL Server as default database with Testcontainers for integration tests
  • 422 Unprocessable Entity for validation errors (not 400)
  • IExceptionHandler (.NET 9 native) instead of middleware for error handling
  • Cross-file consistency verified across all 10 files

Test plan

  • Verify SKILL.md frontmatter renders correctly in Copilot
  • Test architecture decision flow with sample prompts (e.g., "Create a .NET 9 API with Clean Architecture")
  • Verify stack templates produce compilable project structures
  • Confirm marketplace.json schema is valid
  • Test with Copilot Chat to ensure skill activates on .NET backend prompts

🤖 Generated with Claude Code

Decision-tree guidance skill covering architecture selection
(Clean Architecture, Vertical Slice, Modular Monolith), CQRS with
MediatR, DDD patterns, EF Core 9, testing strategies, error handling,
observability, and SignalR real-time patterns.

Includes:
- SKILL.md with interactive architecture decision flow
- 3 stack templates (clean-architecture, vertical-slice, modular-monolith)
- 6 reference guides (DDD, testing, EF migrations, error handling,
  observability, SignalR)
- Marketplace registration

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant