roblox-luau

roblox-luau is a skill for Claude Code from TabooHarmony/roblox-brain. It costs 36 tokens per session (1,954 once invoked), scanned A, original, MIT.

Guidance for writing and reviewing Luau, the Lua-based programming language used by Roblox. It covers scheduled work, coroutines, cleanup, metatables, buffers, and strict type checking.

In plain words
What is it for?
Use it when debugging or reviewing Roblox scripts that run delayed work, manage event connections, use advanced data structures, or rely on Luau types.
Why use it?
It helps explain errors that disappear in background tasks, outdated scheduling functions, resource leaks, and mistakes caught by the type checker. It also points out differences between similar Roblox task functions.

Skill for Claude Code

Written for Claude Code: when-to-use in frontmatter.

Good fit Use it when debugging or reviewing Roblox scripts that run delayed work, manage event connections, use advanced data structures, or rely on Luau types.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tabooharmony/roblox-brain/roblox-luau
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add TabooHarmony/roblox-brain --skill roblox-luau
Clone the repo
git clone --depth 1 https://github.com/TabooHarmony/roblox-brain

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for roblox-luau

README.md
[![agentmods](https://agentmods.dev/badge/skills/tabooharmony/roblox-brain/roblox-luau/github.svg)](https://agentmods.dev/skills/tabooharmony/roblox-brain/roblox-luau)
Your own site
<a href="https://agentmods.dev/skills/tabooharmony/roblox-brain/roblox-luau"><img src="https://agentmods.dev/badge/skills/tabooharmony/roblox-brain/roblox-luau/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for roblox-luau

Your own site · 80×15
<a href="https://agentmods.dev/skills/tabooharmony/roblox-brain/roblox-luau"><img src="https://agentmods.dev/badge/skills/tabooharmony/roblox-brain/roblox-luau.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,954 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00036 $0.01954
Opus 5.5 $0.00014 $0.00782
Sonnet 5.5 $0.00007 $0.00391
Haiku 4.5 $0.00004 $0.00195

Measured today against content hash 21e9d6a0ba9e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

roblox-luau scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/core/roblox-luau/SKILL.md · 77 lines

How it starts

The opening of the file, as written. The whole thing — 77 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Roblox Luau

When to Load

Luau where scheduling, cleanup, metatables, buffers or the type checker can bite. Run contexts, load order and require scope: roblox-architecture; hot paths: roblox-performance; luau-lsp/Selene/StyLua: roblox-tooling; bug hunts: roblox-debugging.

"Probed" = run on the Luau runtime or luau-analyze that date; "field case" = seen in the owner's projects.

Traps and review checklist (symptom -> cause -> fix)

  • Error in background code vanishes -> coroutine.resume catches it and returns false, err; an errored thread's status is "dead", same as a finished one. coroutine.wrap re-raises into the caller. Check resume's first return, or start work with task.spawn.
  • Queued worker handles one job per run, budget never trips -> task.spawn runs the function now, before the caller's next line; task.defer runs at the end of the current resumption cycle. Start batch workers with task.defer (field case, §1).
  • Loop slower than asked, or local a, b = wait() -> deprecated wait/spawn/delay throttle (29 ms minimum, more under load); wait returns (elapsed, engineTime). task.wait(t) resumes on the first due Heartbeat and returns elapsed only; task.wait() = Heartbeat:Wait(). Use the returned dt, not the requested time.
  • Duplicate handlers or growing memory after respawn -> a CharacterAdded handler connects to something long-lived (RunService, Players, a remote, the Player) and never disconnects. Destroy() disconnects only that instance's connections, and old characters are destroyed only with Workspace.PlayerCharacterDestroyBehavior enabled. Track connections per owner, disconnect on CharacterRemoving/Destroying; :Once() for one-shots.
  • Grid lookup returns nil, no error -> Vector3 keys hash by value, Vector2 keys by identity (field-measured). Key 2D cells by Vector3.new(x, 0, z).
  • table is already frozen kills a module at require -> re-freezing errors; table.freeze/table.clone are shallow and the clone is unfrozen. Freeze once at creation or check table.isfrozen.
  • Proxy table misbehaves -> __newindex fires only for keys absent from raw storage; pairs, table.insert, table.concat read raw storage, there is no __pairs (generalized for uses __iter); __eq runs only when both sides share one handler, and even for x == x (probed 2026-10). Keep the proxy empty, data in a backing table.
  • Buffer data silently wrong -> out-of-bounds errors, but an in-bounds wrong-width read succeeds (readu16 on a u32 slot), integer writes keep the low bits (writeu8(b, 0, 300) stores 44), f32 rounds (probed 2026-10). Little-endian, 0-based. Keep offsets and widths in named helpers.
  • Decompression bomb from a client -> EncodingService:DecompressBuffer trusts the size header (up to 1 GB). Call GetDecompressedBufferSize first; refuse nil or oversize.
  • --!native gives no client speedup -> it runs only for server scripts and Android clients; getfenv/setfenv and arguments violating annotated types drop to the interpreter; past the code-size limit the rest runs interpreted. Annotate hot Vector3 params; no official speedup figure, measure (roblox-performance).

Read the full file on GitHub · 77 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 77 lines · 36 tokens per session scan A 21e9d6a0ba9e

Subscribe to this mod's changes

roblox-luau is a skill published in the GitHub repository TabooHarmony/roblox-brain (229 stars, last pushed today), licensed MIT. It adds 36 tokens to every session and 1,954 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-12-01.

Related

roblox-luau compared with skills from other repositories

roblox-luau next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
roblox-luauTabooHarmony/roblox-brainSkill229todayMITA36Claude Code
beehavejame581/GodotPrompterSkill1.0kyesterdayMITA35Claude Code
godot-debuggingjame581/GodotPrompterSkill1.0kyesterdayMITA26Claude Code
debugWesleySalzer/GameCodexSkill45mo agoMITA15Claude Code
performance-optimizationgamedev-skills/awesome-gamedev-agent-skillsSkill13kyesterdayApache-2.0A97Claude Code
audio-systemjame581/GodotPrompterSkill1.0kyesterdayMITA28Claude Code
csharp-godotjame581/GodotPrompterSkill1.0kyesterdayMITA34Claude Code