rbx-chat-moderation
Skill0 starsChanged 3 months agoMITView on GitHub
TextChatService chat that ships safe by construction — service config, custom channels, chat commands, and the filtering law applied to every user string the game displays. Use when the user says "set up chat", "add a team/proximity/VIP channel", "add chat commands", "filter pet names/sign text", or when chat broke, messages show as hashtags, or a player-typed string is appearing unfiltered. Do not use for policy questions about what content is allowed — load rbx-policy — or for reporting/moderating players via dashboard — load rbx-badges-groups instead.
In this repository253 other files it gives its agents.
- rbx-abtestSkill
- rbx-accessibilitySkill
- rbx-analytics-eventsSkill
- rbx-analytics-funnelsSkill
- rbx-analytics-readingSkill
- rbx-animationSkill
- rbx-anim-cutscenesSkill
- rbx-anim-npcSkill
- rbx-anim-proceduralSkill
- rbx-anim-rigsSkill
- rbx-anim-tweenSkill
- rbx-architectureSkill
- rbx-assets-audioSkill
- rbx-assets-id-policySkill
- rbx-assets-sanitizeSkill
- rbx-assetsSkill
- rbx-assets-toolboxSkill
- rbx-assets-webSkill
- rbx-audio-feedback-mapSkill
- rbx-audio-mixingSkill
- rbx-audio-musicSkill
- rbx-audio-sfxSkill
- rbx-audioSkill
- rbx-audio-spatialSkill
- rbx-badges-groupsSkill
- rbx-build-compositionSkill
- rbx-build-detailingSkill
- rbx-build-greyboxSkill
- rbx-buildingSkill
- rbx-build-interiorsSkill
- rbx-build-kitbashSkill
- rbx-build-landscapeSkill
- rbx-build-propsSkill
- rbx-build-scaleSkill
- rbx-build-structuresSkill
- rbx-camera-controllersSkill
- rbx-camera-cutsceneSkill
- rbx-camera-shakeSkill
- rbx-ciSkill
- rbx-combat-abilitiesSkill
- rbx-combat-hitregSkill
- rbx-combat-meleeSkill
- rbx-combat-rangedSkill
- rbx-combatSkill
- rbx-combat-statusSkill
- rbx-complianceSkill
- rbx-comprehendSkill
- rbx-controlsSkill
- rbx-data-crossserverSkill
- rbx-data-profilestoreSkill
- rbx-data-recoverySkill
- rbx-data-schemaSkill
- rbx-data-sessionlockSkill
- rbx-dataSkill
- rbx-design-difficultySkill
- rbx-design-loopSkill
- rbx-design-sheetSkill
- rbx-design-socialSkill
- rbx-economy-currenciesSkill
- rbx-economy-gachaSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 88
Read: the game's projects.md block (existing channels, tag scheme, token palette) before adding channels — the second channel matches the …
- Very specific: line 90
Write: channel names, tag scheme, and the FilterText module path into the game's projects.md block.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
rbx-chat-moderation
Laws
- Every user-originated string displayed to anyone passes through the filter. Chat
rides TextChatService's built-in pipeline. Everything else — pet names, sign text,
booth titles, guild names, plot messages — goes through
TextServiceserver-side:GetNonChatStringForBroadcastAsyncfor text all players see,GetNonChatStringForUserAsyncfor one recipient. "It's just a pet name" is how games get moderated. - Fail closed. Filter calls are async and can throw — pcall, and on failure display nothing (or a placeholder like "..."), never the raw string. Store only the filtered result; the raw input never touches a DataStore or a TextLabel.
- TextChatService is the only chat.
ChatVersionmust beTextChatService; the legacy Lua chat is dead. Never fork legacy chat modules from old tutorials. - Filter results are per-receiver. One player's filter output is not another's — age settings differ. For chat, TextChatService handles this; for custom display paths to a specific player, use the per-user variant with the receiver's UserId.
- Delivery callbacks never yield.
ShouldDeliverCallbackandOnIncomingMessagerun per message; a yield or throw inside them silently kills delivery.
Passes
- Service config — set
ChatVersion = Enum.ChatVersion.TextChatService(Studio property on TextChatService; not scriptable at runtime). Style viaChatWindowConfigurationandChatInputBarConfiguration(font, colors, corner radius from the game's tokens);BubbleChatConfigurationfor overhead bubbles (BackgroundColor3, TextColor3, MaxDistance ~64–100 studs). - Channels — one
TextChannelper scope underTextChatService, created server-side.AddUserAsync(userId)on PlayerAdded (pcall — the TextSource may not exist yet on very early joins; retry once). Scope delivery withShouldDeliverCallbackon the channel: team checks viaPlayer.Team, proximity via character distance ≤ N studs. Return true fast; no yields. - Tags and formatting — client-side
OnIncomingMessagereturns aTextChatMessagePropertieswithPrefixTextfor [VIP]/level/team tags (rich-text color the prefix, never the body). Read gamepass/team state from attributes replicated by the server — never a remote call inside the callback. - Commands —
TextChatCommandinstances withPrimaryAlias/SecondaryAlias("/trade", "/e dance");Triggeredfires on client and server — do the authoritative work in the server connection only. - Non-chat surfaces — a single server module
FilterTextwrapping the two TextService calls with pcall + fail-closed fallback; every sign/pet-name/booth feature calls it. One module, one law, no per-feature copies. - Verify — two-client Studio playtest: send in each channel, confirm scoping, confirm
tags render, type a filtered-word test string and confirm hashtags appear for the
other client, check
get_console_outputfor callback errors after every exchange.
Performance budget
OnIncomingMessage and ShouldDeliverCallback complete in well under 1ms — table lookups
and attribute reads only, no remote calls, no WaitForChild, no yields. Custom send surfaces
rate-limit at the server (≥ 1s between sends per player per channel via rbx-net-ratelimit
middleware). Filter calls for bulk content (loading 50 saved sign texts) are batched with
task.spawn per string, never serialized on one thread at join.
Load with
rbx-net-ratelimit (send-path limits — don't ask, include it), rbx-security (server
authority over anything a command grants), rbx-policy (what content is allowed at all),
rbx-ui-tokens (chat window styling matches the game).
AI-tells
- ☐ Player-typed string parented straight to a TextLabel or BillboardGui, no filter call
- ☐ Filtering done client-side, or only on the sender's machine
- ☐ No pcall around TextService calls, or failure path shows the raw string (fails open)
- ☐ Forked legacy chat modules or
ChatServicerequires from 2019 tutorials - ☐ Remote call or WaitForChild inside OnIncomingMessage / ShouldDeliverCallback
- ☐ One broadcast-filtered string reused for whisper/targeted display
- ☐ Raw (unfiltered) input written to DataStore
- ☐ Chat window left at default gray when the game has a token palette
Memory
Read: the game's projects.md block (existing channels, tag scheme, token palette) before
adding channels — the second channel matches the first one's naming and prefix style.
Write: channel names, tag scheme, and the FilterText module path into the game's
projects.md block; the FilterText module itself into module-library.md once it ships in
a second game, per MEMORY-PROTOCOL.md.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

