azure-service-bus

Review .NET Azure Service Bus code for messaging best practices.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/jamesbondev/ai-dotfiles --skill azure-service-bus-jamesbondev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: azure-service-bus
Source: https://github.com/jamesbondev/ai-dotfiles/tree/main/.github/skills/azure-service-bus
Command: npx skills add https://github.com/jamesbondev/ai-dotfiles --skill azure-service-bus-jamesbondev

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides best practices and guidance for implementing robust and reliable messaging patterns using Azure Service Bus in .NET applications, addressing common challenges in message production, consumption, and error handling.

Core Features & Use Cases

  • Message Sending & Processing: Demonstrates correct usage of ServiceBusClient, ServiceBusSender, and ServiceBusProcessor.
  • Error Handling & Resilience: Details strategies for handling transient and permanent message processing failures, including dead-lettering.
  • Ordered Processing: Explains how to use sessions for ordered message delivery.
  • Use Case: Reviewing .NET code that sends events to an Azure Service Bus topic to ensure idempotency, proper correlation ID propagation, and structured logging.

Quick Start

Use the azure-service-bus skill to review the provided C# code for message processing.

Frequently Asked Questions about azure-service-bus

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I handle dead-letter messages in Azure Service Bus using .NET?

Dead-letter handling in Azure Service Bus involves routing messages that encounter permanent processing failures to a dedicated dead-letter queue. This Skill guides implementing correct dead-lettering strategies and monitoring to ensure no failed messages are lost.

What is the best way to instantiate ServiceBusClient in a .NET application?

The best way to instantiate ServiceBusClient is by using a proper configuration approach that avoids hardcoded connection strings. This Skill reviews your .NET code to ensure clients, senders, and processors are instantiated using secure and structured configuration.

How do I implement ordered message processing in Azure Service Bus?

Ordered message processing in Azure Service Bus is implemented using sessions. This Skill explains how to configure sessions for ordered message delivery and guides you away from manual receive loops which can disrupt processing flow.

How do I propagate correlation IDs in .NET Service Bus message handlers?

Propagating correlation IDs requires adding them to message metadata before sending and extracting them during consumption. This Skill enforces best practices for correlation ID propagation alongside structured logging to trace messages end-to-end.

Why does my Azure Service Bus message handler fail without an error handler?

Message handlers fail without error handlers because transient and permanent processing errors are not caught, preventing dead-lettering. This Skill identifies missing error handlers in your .NET code and guides you on adding resilient error handling.

Can I use this Skill to review unstructured message contracts in my .NET code?

Yes, you can use this Skill to review unstructured message contracts in your .NET code. It enforces best practices for Azure Service Bus messaging, ensuring your message producers and consumers use structured and reliable contracts.