unity-unitask-design
CommunityWrite safe UniTask async code without footguns.
Software Engineering#code review#leak prevention#cancellation#unitask#async correctness#unity async#playerlooptiming
AuthordyCuong03
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill prevents common, costly UniTask mistakes in Unity async code—double-await crashes, forgotten Forget(), wrong PlayerLoopTiming usage, cancellation misuse, and leak-prone subscriptions—by providing source-anchored design rules.
Core Features & Use Cases
- Guardrails for UniTask correctness: enforces struct single-await semantics and when to use Preserve() to avoid invalid double-await.
- Operational lifecycle rules: clarifies when to await, when to Forget(), and how exceptions flow through UniTaskScheduler.
- Timing, cancellation, and interop guidance: explains PlayerLoopTiming slots and correct cancellation token propagation patterns, including GetCancellationTokenOnDestroy and AttachExternalCancellation.
- Composable architecture for async systems: covers WhenAll/WhenAny patterns, AsyncOperation.ToUniTask, UniTask conversion from coroutines/enumerators, and async trigger usage.
- Leak prevention and review readiness: consolidates known pitfall patterns (tracker issues, subscription disposal, and enumerator termination) into an actionable checklist for PRs and onboarding.
Quick Start
Load the unity-unitask-design Skill before writing or reviewing any UniTask, UniTaskVoid, cancellation, timing, or conversion code in your Unity project.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: unity-unitask-design Download link: https://github.com/dyCuong03/unity-agent-team/archive/main.zip#unity-unitask-design Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.