
roblox-luau-types
Luau annotations, generics, unions, narrowing, strictness, sealed tables
by tabooharmonyFree
Description
Guidance for Luau type annotations in Roblox projects. It covers generics, unions, narrowing, strict mode, sealed tables, module type exports and typed metatables. The core advice is to infer types first and annotate only at boundaries: function parameters, return values and module exports. Strictness is chosen per file. Use --!strict for maintained code, --!nonstrict while a project is in transition, and --!nocheck only for legacy or generated code. The skill explains the new type solver, which some features need, such as keyof, setmetatable with two type parameters and type functions. It notes that errors often come from the wrong solver rather than wrong syntax, and that strict projects must turn on the new solver in workspace settings. It also covers sealed and unsealed tables: an unannotated local table stays open to new fields until it is annotated, returned from a function or leaves its scope. For unions, it recommends tagged unions discriminated on a kind field, and it lists the narrowing tools typeof, IsA, assertions and tagged discriminants. Use it when writing or fixing Luau types in a Roblox game or module.…
Highlights
- Strict, nonstrict and nocheck modes explained
- Infer first, annotate parameters, returns and exports
- Tagged unions and narrowing with typeof, IsA and discriminants
- New type solver requirements and common errors
Ratings & Reviews
No ratings yet
Be the first to rate roblox-luau-types.
People also visit

roblox-tooling
Configuring Roblox tooling such as Rojo, Wally, pesde, Selene, StyLua, Lune

roblox-security
Auditing Roblox code for exploit vectors, authority models, remotes, economy

roblox-luau-patterns
Roblox module boundaries, object lifecycles, signals, task scheduling
roblox-luau-types FAQ
What does this skill cover?
Luau annotations, generics, unions, narrowing, strictness, sealed tables, module type exports, typed metatables and new-solver features.
When should I load it?
When you add or fix type annotations in Luau code, or when a type error may come from the solver rather than from the syntax.
Are there longer examples?
Yes. The quick reference points to a fuller reference file with narrowing examples and more detail on each topic.
How do I install it?
Run: npx skills add https://github.com/tabooharmony/roblox-brain --skill roblox-luau-types
What do the security audits show?
Gen Agent Trust Hub: Pass. Socket: Pass. Snyk: Pass.
What are the best roblox-luau-types alternatives?
Popular alternatives to roblox-luau-types include roblox-tooling, roblox-game-development and roblox-security. See all roblox-luau-types alternatives









