
roblox-luau-patterns
Roblox module boundaries, object lifecycles, signals, task scheduling
by tabooharmonyFree
Description
A skill for AI agents writing or refactoring Roblox Luau modules. It covers module boundaries, object lifecycles, signals, task scheduling, fallible calls with pcall, failure contracts and cleanup. The quick reference helps the agent choose a shape: plain functions for stateless work, a module with private state for one subsystem, or an object with a metatable when several independent values share behavior and lifecycle. It advises against creating a manager class just to group functions, and against adding Promise, signal or framework dependencies for one call site, unless the project already uses that library consistently. Constructors use a dot and instance methods use a colon, and mutable fields belong on the instance. The skill points to roblox-luau-core, roblox-luau-types and roblox-architecture for related topics. It is part of the tabooharmony/roblox-brain repository.…
Highlights
- Chooses between functions, stateful modules and objects
- Covers signals, task scheduling and cleanup
- Sets failure contracts for fallible calls
- Makes object ownership and lifecycle visible
Ratings & Reviews
No ratings yet
Be the first to rate roblox-luau-patterns.
People also visit
roblox-luau-patterns FAQ
What does it cover?
Module shapes, object lifecycles, signals, task scheduling, pcall, resource ownership and cleanup in Luau.
Does it recommend a manager class?
No. It says not to create one just to namespace functions.
Does it add a library?
Not for a single call site. It says to follow an existing library only where the project already uses it consistently.
What do the security audits show?
Gen Agent Trust Hub: Pass. Socket: Pass. Snyk: Pass.
What are the best roblox-luau-patterns alternatives?
Popular alternatives to roblox-luau-patterns include roblox-luau, roblox-luau-types and roblox-networking. See all roblox-luau-patterns alternatives


