Enforces CQRS patterns and directory organization for .NET backend features.

Install

mkdir -p .claude/skills/cqrs-feature && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/15891" && unzip -o skill.zip -d .claude/skills/cqrs-feature && rm skill.zip

Installs to .claude/skills/cqrs-feature

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Use when touching backend feature slices in the .NET CQRS stack of this repository.
83 chars✓ has a “when” trigger
Intermediate

Key capabilities

  • Update contracts in `Vole_Papillon_Damour.Contracts/`
  • Modify HTTP entries in `Vole_Papillon_Damour.Api/Controllers/`
  • Create or modify commands/queries in `Vole_Papillon_Damour.Application/<Feature>/`
  • Modify `Infrastructure` for technical boundaries
  • Keep handler and validator close to the feature

How it works

The skill guides modifications across different layers of a .NET CQRS stack, ensuring changes adhere to architectural conventions for contracts, API, application logic, and infrastructure.

Inputs & outputs

You give it
Request to modify a backend feature in the .NET CQRS stack
You get back
Modified files across `Contracts`, `Api`, `Application`, and `Infrastructure` layers following CQRS rules

When to use cqrs-feature

  • Modify backend feature
  • Update CQRS contract
  • Add feature handler
  • Update repository interface

About this skill

Skill : cqrs-feature

Charger ce skill pour toute tache backend qui touche Api, Application, Contracts, Infrastructure, ou Domain autour d'une feature fonctionnelle.

Workflow attendu

  1. Mettre a jour le contrat dans Vole_Papillon_Damour.Contracts/ si la forme HTTP change.
  2. Mettre a jour l'entree HTTP dans Vole_Papillon_Damour.Api/Controllers/ ou dans la methode Use...Controller() appropriee.
  3. Creer ou modifier la commande/requete dans Vole_Papillon_Damour.Application/<Feature>/.
  4. Garder le handler et le validator au plus pres de la feature.
  5. Modifier le domaine uniquement si une regle metier ou un invariant change vraiment.
  6. Modifier Infrastructure seulement pour les frontieres techniques : repositories, auth, email, OCR, blob, table storage.

Regles CQRS

  • Une commande ou requete par intention claire.
  • Les commandes mutent ; les queries lisent.
  • Les validators vivent pres de la requete ou de la commande.
  • Les handlers restent minces : orchestration, pas de logique d'infrastructure inline.
  • Les erreurs et resultats doivent rester coherents avec les conventions deja presentes dans le slice cible.

Impact multi-surface

  • Toute modification de Contracts doit etre revue cote BackOffice, Website, et MauiCashApp si le contrat est consomme.
  • Toute modification d'une interface de repository ou de service partage demande une impact analysis GitNexus avant edition.

Tests

  • Tester d'abord le comportement du handler, du validator, ou de la regle de domaine modifiee.
  • Si le test project n'existe pas pour la couche cible, documenter la dette dans .github/test-debt.md avant de continuer sans TDD strict.

When not to use it

  • When the task does not involve backend feature slices in the .NET CQRS stack
  • When modifying the domain without a change in business rule or invariant

Limitations

  • Applies specifically to the .NET CQRS stack of this repository
  • Requires an impact analysis for modifications to shared repository or service interfaces

How it compares

This skill provides a structured workflow for modifying CQRS features, ensuring consistency across layers and adherence to specific rules, unlike ad-hoc changes.

Compared to similar skills

cqrs-feature side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
cqrs-feature (this skill)03moNo flagsIntermediate
dotnet-backend-patterns75moNo flagsAdvanced
azure-servicebus-dotnet33moReviewIntermediate
azure-mgmt-apicenter-dotnet13moReviewAdvanced

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

dotnet-backend-patterns

wshobson

Master C#/.NET backend development patterns for building robust APIs, MCP servers, and enterprise applications. Covers async/await, dependency injection, Entity Framework Core, Dapper, configuration, caching, and testing with xUnit. Use when developing .NET backends, reviewing C# code, or designing API architectures.

722

azure-servicebus-dotnet

microsoft

Azure Service Bus SDK for .NET. Enterprise messaging with queues, topics, subscriptions, and sessions. Use for reliable message delivery, pub/sub patterns, dead letter handling, and background processing. Triggers: "Service Bus", "ServiceBusClient", "ServiceBusSender", "ServiceBusReceiver", "ServiceBusProcessor", "message queue", "pub/sub .NET", "dead letter queue".

316

azure-mgmt-apicenter-dotnet

microsoft

Azure API Center SDK for .NET. Centralized API inventory management with governance, versioning, and discovery. Use for creating API services, workspaces, APIs, versions, definitions, environments, deployments, and metadata schemas. Triggers: "API Center", "ApiCenterService", "ApiCenterWorkspace", "ApiCenterApi", "API inventory", "API governance", "API versioning", "API catalog", "API discovery".

12

azure-eventgrid-dotnet

microsoft

Azure Event Grid SDK for .NET. Client library for publishing and consuming events with Azure Event Grid. Use for event-driven architectures, pub/sub messaging, CloudEvents, and EventGridEvents. Triggers: "Event Grid", "EventGridPublisherClient", "CloudEvent", "EventGridEvent", "publish events .NET", "event-driven", "pub/sub".

11

websocket-integration

sunyonghuan

通过 WebSocket 连接 Cortana AI 对话服务。编写 C# 客户端代码,实现发送消息、接收流式回复、附件传输、系统事件监听。触发关键词:WebSocket、WS 连接、远程对话、流式回复、AI 接入、实时通信。

00

mediatorlite-core

behl1anmol

Runtime implementation for MediatorLite -- AddMediatorLite() DI extension, the ThrowingMediator diagnostic fallback, the generated SourceGeneratedMediator (implements IMediator via ValueTask typed-switch dispatch), MediatorDiagnostics (ActivitySource + DiagnosticListener), and the Validation subsyst

00

Search skills

Search the agent skills registry