Guides when to use asyncio, how to keep the event loop unblocked, and how to structure concurrency with TaskGroup and cooperative cancellation. Useful when writing async Python or debugging a hung or slow event loop.
Asyncio wins for high-concurrency I/O waiting, not for CPU work and not for a handful of calls. Its whole model rests on one rule: never block the event loop, because one blocking call stalls every other task.
requests
call, time.sleep, heavy computation, a blocking driver) freezes all
tasks. Push it off the loop with asyncio.to_thread(fn, ...) for I/O or a
process pool for CPU. Enable PYTHONASYNCIODEBUG=1 or pass debug=True
to asyncio.run to log slow callbacks.async with asyncio.TaskGroup() as tg: tg.create_task(...) awaits all children and
cancels siblings if one fails, surfacing errors as an ExceptionGroup. It
replaces bare gather, which leaves orphaned tasks running when one task
raises and you forget return_exceptions.gather(*coros) fits a fixed fan-out
where you want results positionally and are ready to handle partial
failure explicitly. Do not fire tasks with create_task and drop the
reference; the loop may garbage-collect them mid-flight. Hold references
or use a TaskGroup.CancelledError at the next await; always re-raise it rather than
swallowing it in a broad except. Guard cleanup with finally, and bound
external calls with asyncio.timeout() so a stuck peer cannot hang a task
forever.asyncio.run per
program entry; calling it from inside a running loop raises. To bridge sync
callers, use asyncio.run at the top only, and never
loop.run_until_complete inside async code.run_coroutine_threadsafe.What SKILL.md sets; muted values are Claude Code's defaults
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