roblox-luau-patterns
Installation
SKILL.md
Luau Patterns
When to Load
Module shapes, ownership, scheduling, failure contracts. Semantics: roblox-luau-core; types: roblox-luau-types; startup: roblox-architecture.
Quick Reference
Choose a shape
- Plain functions: default for stateless transformation or validation.
- Module with private state: one subsystem owner, not a manager class for namespacing.
- Object with metatable: many independent values share behavior and lifecycle.
- Existing library: follow the project's; don't add Promise, signal or framework dependencies for one call site.
Constructors use ., methods :; mutable fields live on the instance.