/lihfolk:roblox-secure-remotesfrom lihfolk
Guides writing server-authoritative Roblox RemoteEvents/RemoteFunctions with validation, rate limits, and exploit resistance. Use when adding or reviewing remotes.
Ships in lihfolk. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Every remote is a public API that any modified client can call with any arguments, at any rate, in any order. Treat every argument as hostile. The client sends intent ("I want to swing", "buy item 3"); the server decides what happens.
VAULT: LihFolk Vault V2, the knowledge base in the plugin root's LihFolk Vault V2/ folder: <base directory>/../../LihFolk Vault V2, where the base directory is the one Claude Code shows when this skill loads. Resolve it to an absolute path before any Read, Grep or command (the vault is in the plugin, not the user's project). Start with VAULT/INDEX.md to find notes fast.Decide whether it needs to exist. State that only changes on the server belongs in attributes or replicated values, not events. Use a remote for moments (an action, a request), attributes for state (Debugging Client-Server Desync).
Pick the type.
RemoteEvent for anything that must arrive (requests, state changes, purchases).UnreliableRemoteEvent only for small, sequenced, replaceable data such as cosmetic positions at 10 to 20 Hz. Payloads over 1,000 bytes are dropped silently (Roblox docs). Never use it for "stop" messages or state changes.RemoteFunction only client to server. Never call InvokeClient: a crashed or malicious client can hang the server thread forever.Create it on the server, in one folder, from one list. One server module creates every remote at startup. The client only waits for them. No remote is ever found by a name that content could reuse.
Write the handler in this exact order (the order matters because cheap checks must run before expensive ones):
Player (or UserId) and a fixed action key, never by a client string. Set the limit at 1.5x to 2x the fastest legitimate use (rule of thumb from the vault).typeof every argument. Reject extra or missing arguments.x == x rejects NaN, and check against math.huge), integral where counts are expected, inside a range.IsDescendantOf the expected folder, ownership, and distance from the character. Prefer sending ids and looking up server objects.warn per request (log flooding) and do not kick on one violation (bad connections look like cheaters).Compute outcomes on the server. Damage, prices, rewards, durations and multipliers come from server data only. The payload never carries a price, a damage number or a userId to act on (use the injected player).
Relay safely. When one client's action must be shown to others, build a fresh payload on the server and send that. Never FireAllClients(...) the caller's raw arguments. Filter by interest (nearby players) and limit tightly, because one request fans out to every client.
Clean up. Every per-player table (buckets, busy flags, last-swing times) is cleared on PlayerRemoving.
InvokeClient, FireAllClients( with forwarded arguments, task.wait or DataStore calls between a check and a write, and client-supplied prices or damage.RunService:IsStudio() plus a server allowlist.InvokeClient, anywhere.roblox-anti-exploit-review).03 Architecture and Networking/RemoteEvents RemoteFunctions and Unreliable Remotes.md03 Architecture and Networking/Server Authority and Validation.md03 Architecture and Networking/Rate Limiting and Abuse Prevention.md03 Architecture and Networking/Remote Abuse Patterns and Rate Limiting in Practice.md03 Architecture and Networking/Replication Rules.md29 Luau Cookbook/Cookbook - Remotes and Networking.md22 Anti-Exploit and Security/How Exploits Work - The Client Boundary.md22 Anti-Exploit and Security/Testing Your Own Remotes - Fuzzing and Abuse Tests.md23 Debugging Deep Dives/Debugging Client-Server Desync.mdDisputed: the vault's Open Questions note that docs suggest math.isfinite while the reference project used x ~= x for NaN. Either works if you also reject infinity.
What SKILL.md sets; muted values are Claude Code's defaults
2 plugins ship this exact skill · first indexed Oct 30, 2026
22 skills in this plugin
/council-methodLihFolk Council: blind multi-agent verdict for high-stakes Roblox decisions, ship-readiness, "be objective", "second opinion". Not for routine coding./lihfolkLihFolk Roblox knowledge router (1,300+ notes; "check the vault"). Use before non-trivial Roblox work: Luau, Studio, remotes, data, UI, building, VFX, animation, design, money, performance, security, publishing./lihfolk-assetsFind and import assets from the local LihFolk Asset Pack (models, materials, skies, animations, VFX). Use for "LihFolk asset", "what assets do we have".npx claudepluginhub lihfolk-cy/v2-vault --plugin lihfolkOther plugins' skills for the same job