csharp-async

Best practices guide for C# asynchronous programming patterns and pitfalls.

github ↓ 9.8k
Claude Code
View source ↗

What it does

  • Use the 'Async' suffix for all async methods
  • Match method names with their synchronous counterparts when applicable (e.g., GetDataAsync() for GetData())
  • Return Task<T> when the method returns a value
  • Return Task when the method doesn't return a value
  • Consider ValueTask<T> for high-performance scenarios to reduce allocations
  • Avoid returning void for async methods except for event handlers
  • Use try/catch blocks around await expressions

Derived from the skill's own SKILL.md documentation · extracted 2026-07-23

Best practices guide for C# asynchronous programming patterns and pitfalls.

Source

Repository: https://github.com/github/awesome-copilot

csharp-async FAQ

What does the csharp-async skill do?

Get best practices for C# async programming Use the 'Async' suffix for all async methods Match method names with their synchronous counterparts when applicable (e.g., GetDataAsync() for GetData())

How do I install csharp-async?

Run: npx -y skills add https://github.com/github/awesome-copilot --skill csharp-async --agent claude-code — the source lives at github.com/github/awesome-copilot.

Maintain csharp-async?

Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.

csharp-async on getagentictools
[![csharp-async on getagentictools](https://getagentictools.com/badge/skills/github-awesome-copilot-csharp-async.svg)](https://getagentictools.com/skills/github-awesome-copilot-csharp-async?ref=badge)
npx agentictools info skills/github-awesome-copilot-csharp-async

The second line is the CLI lookup for this page — handy in READMEs and docs.