← ClaudeAtlas

roblox-best-practiceslisted

Framework-agnostic Roblox/Luau coding standards. Use when writing, reviewing, or refactoring any Luau code (Script, LocalScript, ModuleScript) in a Roblox project, or when the user asks to keep best practices in mind as standing guidance — enforces the VARIABLES/FUNCTIONS/INITIALIZATION section layout, naming rules, performance, memory, networking, and security best practices regardless of the project's framework, folder structure, or game genre. Supports two modes — Default (apply this skill's conventions as-is) and Adaptive (study the project's existing coding conventions first, confirm with the user, then apply best practices in the project's own style) — adapts to community libraries (ProfileStore, Packet, Trove, Knit, Fusion, ...) when the project uses them, and honors user-selected supervision levels (!ask / !bal / !go) controlling how often the agent confirms before acting.
andrian-syh/roblox-best-practices-skill · ★ 1 · Code & Development · score 74
Install: claude install-skill andrian-syh/roblox-best-practices-skill
# Roblox Game Development Best Practices Framework-agnostic standards for writing clean, efficient, lightweight, and resource-frugal Luau code. These rules fit any architecture (single-script, module-based, Knit, actor-based, ECS, etc.) — they govern *how each script is written*, not how the project is structured. **Goals, in priority order:** correct → secure (server-authoritative) → efficient (CPU/memory/network) → readable → consistent. ## Reference Routing **Load only what the situation needs.** Each reference is self-contained; read one, not the set. Everything below stays unloaded until a row matches the task at hand. **Authoring** | Situation | Read | |---|---| | Writing a new Script/LocalScript/ModuleScript | [references/templates.md](references/templates.md) | | Existing codebase with its own conventions (Adaptive mode) | [references/adaptive-mode.md](references/adaptive-mode.md) | | Project uses community libraries (ProfileStore, Packet, Trove, Knit, Fusion, ...) | [references/community-libraries.md](references/community-libraries.md) | | Typing depth, standard-library additions (vector/buffer/math), new type solver, task.spawn vs task.defer, deferred events, error handling, time APIs, native codegen | [references/luau-language.md](references/luau-language.md) | **Implementing a known system** (read the one file whose domain matches; recipes give assembly order and case-specific failure modes) | Building | Read | |---|---| | Player data, currency, inventory,