rbx-assets-sanitize
Skill0 starsChanged 3 months agoMITView on GitHub
The mechanical cleanup that turns a cleared insert into a native-feeling asset — scripts stripped to the modelscan verdict, dead welds and watermark decals removed, scale measured against the metric table, pivot seated, anchoring and collision flags set, names rewritten out of the creator's voice. Use when an `insert_asset` has just landed, when the user says "clean up this model", "it's the wrong size", "this thing won't stay still", "fix the free model", or when an inserted asset floats, sinks, blocks the player, tanks the frame rate, or drags `Part47`-style names into the tree. Do not use to judge whether the model's scripts are malicious — load rbx-security-modelscan first — or to compose several inserts into one scene — load rbx-build-kitbash 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-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-chat-moderationSkill
- 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 54
Verify with a single screen_capture at the player's approach angle: floating and sunken are the two failures nobody catches from the …
- Very specific: line 99
Read: asset-library.md for a prior sanitize of the same id — the stored scale factor and collision settings make this a one-pass job.
≈ “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-assets-sanitize
Laws
- Verdict first, cleanup second. This skill runs only on a model whose
rbx-security-modelscanverdict isclean,scripts-stripped, orrebuilt. No verdict means the model is still in quarantine and nothing here touches it. - Measure, never eyeball.
GetExtentsSize()against therbx-build-scaletable, thenModel:ScaleTo(factor)on the whole model — scaling individual parts breaks welds, meshes, and any attachment offsets the asset shipped with. - Everything static is Anchored. An unanchored store model is a physics bill and a comedy: buildings drift, props fall through, assemblies explode on first contact. Anchor the whole tree, then unanchor only the parts that must simulate.
- Decorative geometry gets all three flags.
CanCollide = false,CanQuery = false,CanTouch = false. Two out of three still costs raycast and touch work every frame in crowded scenes. - The tree ships in your naming voice.
Model,MeshPart,Union,Part47, and the creator's signature parts are a delivery tell as loud as bad scale. Rename to the game's convention before it entersworkspace.
Passes
- Census —
inspect_instanceon the quarantined root, then oneexecute_luauthat prints the counts that decide the rest: total parts, MeshParts and Unions, remaining scripts, Decals/Textures, welds and constraints, unanchored parts, andGetExtentsSize().get_console_outputafter. This is the work order. - Strip — destroy every script the verdict says goes; then the debris a store model
carries: dead
Weld/ManualWeld/Motor6Dleft from the creator's rig,BodyVelocityand other legacy movers,SurfaceGuiad boards, watermark and signature Decals, empty Folders, disabled test parts, and sealed interior geometry the player can never see — store buildings routinely hide 100+ such parts. - Scale — extents vs the metric table: R15 is ≈ 5 studs tall, a usable doorway is 10–12
studs high and 5–6 wide, a table sits ≈ 3 studs. Compute one factor,
ScaleToonce, then re-measure and record the factor in the delivery notes and in memory. Snap the result to the map's 4-stud grid where the modular kit lives. - Seat — set the pivot to the logical base (
PivotTowith the model's base plane on the floor, not its centroid) so future placement lands on the ground rather than half-buried. Verify with a singlescreen_captureat the player's approach angle: floating and sunken are the two failures nobody catches from the Explorer. - Physics flags —
Anchored = trueacross the static tree;CollisionFidelity = Boxon props players don't walk through,Hullfor simple solids,PreciseConvexDecompositiononly for walkable or complex-collide geometry;RenderFidelity = Automaticunless the asset is inspected up close; law 4's three flags on decoration. Where the asset must be walk-through but still visible, register it into a collision group (PhysicsService:RegisterCollisionGroup,CollisionGroupSetCollidable(group, "Default", false), thenpart.CollisionGroup = group) rather than sprinkling per-part exceptions. - Rename & verify — rename the root and every meaningful child to the game's convention,
re-run the census for a before/after line, then
screen_captureat 15–30 stud gameplay distance. Fix what the shot shows, max 3 rounds per quality-bars.md.
Performance budget
Six passes in ≤ 4 execute_luau chunks — census, strip, transform, flags — each idempotent so
a re-run does not double-destroy or double-scale. Never one call per part: a 400-part model is
one GetDescendants loop, not 400 tool calls. Post-sanitize targets on the low-end mobile
reference: no unanchored static parts, zero scripts beyond what the verdict kept, Box collision
on everything decorative, and ≤ 20 unique store meshes per zone (rbx-build-kitbash owns the
zone-level count).
Load with
rbx-security-modelscan — the gate that must precede this, don't ask, include it.
rbx-build-scale supplies the metric table pass 3 measures against; rbx-build-kitbash takes
over for scene composition, palette unification, and seam hiding; rbx-assets-toolbox and
rbx-assets-web are the two lanes that feed this skill; rbx-memory-assets stores the scale
factor so the next insert of the same asset skips pass 3.
AI-tells
- ☐ Model placed into
workspacebefore the modelscan verdict exists - ☐ Scale "looked right" — extents never measured against the table
- ☐ Individual parts resized instead of
Model:ScaleTo, breaking welds and offsets - ☐ Static parts left unanchored; assemblies drifting or falling on first touch
- ☐ Pivot untouched — asset floats above the floor or sinks into it
- ☐ Decoration blocking the player, or set
CanCollide = falsewith query and touch still on - ☐ Mesh collision left at the import default on a 5,000-triangle prop
- ☐ Creator naming voice, watermark decals, or ad
SurfaceGuis left in the tree - ☐ Dead welds, legacy body movers, and sealed interior parts still shipping
Memory
Read: asset-library.md for a prior sanitize of the same id — the stored scale factor and
collision settings make this a one-pass job; the game's projects.md block for the naming
convention, grid size, and collision-group names already in use. Write: the scale factor,
collision-fidelity choice, and pivot fix onto that asset's asset-library.md row the moment
it ships; any new collision group into the game's projects.md block; a standing user rule
("all toolbox props go in the Decor group") into preferences.md 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.

