Writes async C# that never blocks on tasks, flows CancellationToken everywhere, and uses ValueTask where it pays. Helps debug thread-pool starvation and deadlocks in .NET async code.
Async in .NET is viral by design: one blocking call inside an async stack undoes the whole model. The rules are few and absolute: async all the way, cancellation everywhere, and never sync-over-async.
async Task from the entry point down to the I/O. The forbidden
moves are .Result, .Wait(), and .GetAwaiter().GetResult()
on incomplete tasks: they block a thread-pool thread waiting for
work that needs a thread-pool thread, which is how services
deadlock under load and starve at scale. If a sync boundary is
truly unavoidable, isolate it at the outermost edge and document
it.RequestAborted so abandoned requests stop
costing work (the timeouts-and-retries budget idea, in-process).
Link tokens (CreateLinkedTokenSource) for per-operation
timeouts layered on caller cancellation; treat
OperationCanceledException as control flow, not an error to
log as failure (see kotlin-idioms' identical rule).Task for most APIs;
ValueTask only on hot paths that usually complete synchronously
(cache hits) and with its rules respected: await once, never
store or await twice. async void is for event handlers alone;
anywhere else it swallows exceptions and breaks composition.
Avoid fake async (Task.Run wrapping sync work in a request
path): it burns two threads to pretend one blocking call is
async.Task.WhenAll for
independent fan-out (exceptions aggregate: catch and inspect
all); Task.WhenAny for races and timeouts; Parallel.ForEachAsync
or a SemaphoreSlim gate for bounded concurrency against
downstreams (see backpressure); IAsyncEnumerable with
await foreach for streams, passing the token via
WithCancellation. Fire-and-forget work goes to a hosted
background service with error handling, not a dropped task
(see background-jobs).ConfigureAwait(false) throughout (no context to preserve,
avoids deadlocks with context-bound callers). ASP.NET Core has
no synchronization context, so app code there gains nothing;
UI frameworks (WPF/MAUI) do have one, and returning to it after
awaits is the point. The rule is per project type, set once,
enforced by analyzer.Task.Run at the boundary with concurrency limits (the
python-concurrency triage, .NET edition).What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
async-await, csharp, dotnet-async, task-based-async, cancellation-token
Not loaded · from ai-skills-commands
Claude Code won't load this skill
It ships in ai-skills-commands at skills/, but Claude Code only loads skills/<name>/SKILL.md and folders listed under skills in plugin.json. Installing the plugin doesn't add it.
npx claudepluginhub amey-thakur/ai-skills --plugin ai-skills-commands1,000 skills in this plugin
/ab-test-designDesign product experiments with real hypotheses, honest sample-size math, guardrails, and peeking discipline. Use when validating a change by experiment or reviewing a test before believing its result./accessibility-reviewAudit a UI for real accessibility, keyboard-first, with concrete failures and fixes rather than checkbox compliance. Use when reviewing or building any user interface./accessibility-specialist-roleOperate as an accessibility specialist who audits against WCAG, trains teams to stop shipping the same defects, and owns the compliance sign-off. Use when a product needs to be usable with a keyboard, a screen reader, or magnification and someone must certify it before launch.Other plugins' skills for the same job