
Csharp Async
github/awesome-copilotOfficial
A solid code reviewer for async C# that catches the stuff that actually matters. It'll flag when you're mixing .Wait() with async code, remind you about ConfigureAwait(false) in library scenarios, and push you toward Task.WhenAll() instead of sequential awaits. The skill knows the difference between when to use ValueTask versus Task, and it won't let you get away with async void methods outside event handlers. Good for both fixing existing async code that's causing deadlocks and writing new async methods that follow TAP patterns correctly.
- skills.sh installs
- 11.1K
- GitHub stars
- 41K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add github/awesome-copilot --skill csharp-async --agent claude-codeInstalls into .claude/skills of the current project.
Files
C# Async Programming Best Practices
Your goal is to help me follow best practices for asynchronous programming in C#.
Naming Conventions
- Use the 'Async' suffix for all async methods
- Match method names with their synchronous counterparts when applicable (e.g.,
GetDataAsync()forGetData())
Return Types
- Return
Task<T>when the method returns a value - Return
Taskwhen the method doesn't return a value - Consider
ValueTask<T>for high-performance scenarios to reduce allocations - Avoid returning
voidfor async methods except for event handlers
Exception Handling
- Use try/catch blocks around await expressions
- Avoid swallowing exceptions in async methods
- Use
ConfigureAwait(false)when appropriate to prevent deadlocks in library code - Propagate exceptions with
Task.FromException()instead of throwing in async Task returning methods
Performance
- Use
Task.WhenAll()for parallel execution of multiple tasks - Use
Task.WhenAny()for implementing timeouts or taking the first completed task - Avoid unnecessary async/await when simply passing through task results
- Consider cancellation tokens for long-running operations
Sponsors
Promote your product hereReach 125k+ visitors monthlyPromote your product hereReach 125k+ visitors monthly
Agent CaffeineSponsoredClose your lid, come back to finished work
SnugSponsoredThe clipboard manager for the AI eraPromote your product hereReach 125k+ visitors monthly
WaxSponsoredBlock anything with supervision, without erasing your iPhonePromote your product hereReach 125k+ visitors monthly
knobsSponsoredSee your site on any phone, any day, in any language
Details
- Repository
- github.com/github/awesome-copilot
- Categories
- Git & Pull Requests, AI & Agent Building, .NET & C#
More from github/awesome-copilot
All 318- Editorconfig11K
- Create Github Action Workflow Specification10.8K
- Java Docs10.8K
- Python Mcp Server Generator10.5K
- Csharp Xunit10.4K
- Ai Prompt Engineering Safety Review10.4K
- Agentic Eval10.3K
- Create Architectural Decision Record10.3K
- Breakdown Feature Prd10.1K
- Refactor Method Complexity Reduce10K
- Powerbi Modeling10K
- Pdftk Server10K
- Scoutqa Test10K
- Nano Banana Pro Openrouter10K
- Markdown To Html9.9K
- Meeting Minutes9.9K
- Git Flow Branch Creator9.9K
- Dataverse Python Production Code9.8K
- Boost Prompt9.8K
- Kotlin Springboot9.8K
- Image Manipulation Image Magick9.8K
- Plantuml Ascii9.8K
- Readme Blueprint Generator9.7K
- Devops Rollout Plan9.7K
Recommended
More Git & Pull Requests1
editorconfiggithub/awesome-copilotGenerates a comprehensive and best-practice-oriented .editorconfig file based on project analysis and user preferences.11Kskills.sh installs
2
java-docsgithub/awesome-copilotEnsure that Java types are documented with Javadoc comments and follow best practices for documentation.10.8Kskills.sh installs
3
msw-generalmsw-git/msw-ai-coding-plugins-officialFoundation skill for MSW (MapleStory Worlds). Read this FIRST before anything else in MSW.10.7Kskills.sh installs
4
msw-scriptingmsw-git/msw-ai-coding-plugins-officialAuthoring MSW scripts (.mlua) plus integrated playtest and debugging. Covers mlua syntax, annotations (@Component/@Logic/@ExecSpace/@Sync), lifecycle, exec spac10.7Kskills.sh installs
5
msw-defaultplayermsw-git/msw-ai-coding-plugins-officialMSW DefaultPlayer (character) management. Use the msw-general ModelBuilder to inspect/patch DefaultPlayer.model and Player.model, add/remove components, configu10.7Kskills.sh installs
6
msw-searchmsw-git/msw-ai-coding-plugins-officialMSW search integration — (1) vector search for API docs and implementation guides via the msw-mcp MCP server (mlua_api_retriever / mlua_document_retriever), (2)10.7Kskills.sh installs