CS

csharp-async

Guidelines for writing robust, efficient asynchronous C# code in isolated Azure Functions.

Install

mkdir -p .claude/skills/csharp-async && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/15085" && unzip -o skill.zip -d .claude/skills/csharp-async && rm skill.zip

Installs to .claude/skills/csharp-async

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 implementing or reviewing async C# code in XPoster: Task-based APIs, cancellation, timeout handling, and sync-over-async avoidance in Azure Functions isolated workflows.
178 chars✓ has a “when” trigger
Intermediate

Key capabilities

  • →Use Async suffix for asynchronous methods
  • →Return Task or Task<T> for asynchronous APIs
  • →Keep async end-to-end across function orchestration
  • →Accept and propagate CancellationToken
  • →Log actionable context for operational failures
  • →Use Task.WhenAll for independent work

How it works

The skill provides guidelines for implementing and reviewing asynchronous C# code, focusing on naming conventions, end-to-end async patterns, cancellation, error handling, and concurrency. It aims to prevent common async pitfalls.

Inputs & outputs

You give it
C# code for implementation or review
You get back
Asynchronous C# code adhering to best practices for XPoster

When to use csharp-async

  • →Refactoring blocking C# code
  • →Adding cancellation support to services
  • →Optimizing Azure Function performance

About csharp-async

Provides patterns for cancellation, timeout management, and exception propagation. Prevents sync-over-async pitfalls to ensure high-performance API calls.

Use when implementing or reviewing async C# code in XPoster: Task-based APIs, cancellation, timeout handling, and sync-over-async avoidance in Azure Functions isolated workflows.

When not to use it

  • →When using async void except for event handlers
  • →When using sync-over-async patterns like .Result or .Wait()
  • →When swallowing async exceptions

Limitations

  • →The skill is specific to the XPoster project.
  • →Async void is only allowed for event handlers.
  • →ValueTask should only be used when there is a measured benefit.

How it compares

This skill offers specific C# async best practices tailored for the XPoster project and Azure Functions isolated contexts, providing more targeted guidance than general C# async documentation.

Compared to similar skills

csharp-async side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
csharp-async (this skill)04moNo flagsIntermediate
dotnet-native-aot07moReviewAdvanced
csharp-developer434moNo flagsAdvanced
csharp-pro95moNo flagsIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

dotnet-native-aot

rudironsoni

>-

00

csharp-developer

zenobi-us

Expert C# developer specializing in modern .NET development, ASP.NET Core, and cloud-native applications. Masters C# 12 features, Blazor, and cross-platform development with emphasis on performance and clean architecture.

43151

csharp-pro

sickn33

Write modern C# code with advanced features like records, pattern matching, and async/await. Optimizes .NET applications, implements enterprise patterns, and ensures comprehensive testing. Use PROACTIVELY for C# refactoring, performance optimization, or complex .NET solutions.

953

performance-benchmark

dotnet

Generate and run ad hoc performance benchmarks to validate code changes. Use this when asked to benchmark, profile, or validate the performance impact of a code change in dotnet/runtime.

328

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

Search skills

Search the agent skills registry