agentleFS
szlayszlay/roblox-base/.claude/skills/roblox-assets/SKILL.md

roblox-assets

Skill1 starsChanged 4 months agoMITView on GitHub

Use when the game needs models, textures or sounds: finding them on free CC0 sites, uploading to Roblox, cataloguing and placing them in the world.

  • Reads credentials

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 3 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    1. Never spend money: Only CC0 or otherwise free sources.

    line 22
  2. Very specific:

    If nothing fits: generate_mesh in Studio (Roblox's own generator, free, rate limited) or build the shape from parts and CSG.

    line 43
  3. Distinctive:

    If the credit cannot be given, pick a different asset.

    line 54
  4. Distinctive:

    If the key is rejected with "Invalid API Key", it has expired.

    line 87
  5. Very specific:

    Catalog it: Add an entry to src/shared/Assets.luau with meshId, textureId, source and license.

    line 95
  6. Very specific:

    Run AssetLoader.sanitize(instance).

    line 118

≈ “Common” is an estimate: at least 1 in 5 of the 372,429 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Roblox Assets (free sources only)

When to Load

Load whenever the game needs a visual or audio asset it does not have yet - a prop, a building, a character, a texture, a sound effect. Covers finding it, getting it into Roblox, and placing it in the world. Pair with roblox-building for layout and roblox-studio-mcp for the Studio side.

If the asset is animated - a creature, a pet, a walking character - load roblox-animated-models as well. The upload half is the same; getting the animation to play is a different pipeline entirely.

Two hard rules

1. Never spend money. Only CC0 or otherwise free sources. No paid marketplace assets, no paid generation services, no subscriptions. If the only good option costs money, build it from parts instead and say so.

2. Never import executable content. A Roblox Creator Store Model can carry a hidden backdoor script that hands its uploader control of the game. A mesh, a texture and a sound are pure data and cannot execute anything. So: import geometry, never models.

Where assets come from

Work down this list. Everything here is free and needs no account.

SourceWhat it hasLicenceFormat
Kenney40k+ game-ready low-poly kits, textures, audioCC0GLB, FBX, OBJ
Quaterniuslow-poly models, animated charactersCC0GLB, FBX
Poly Pizza10k+ low-poly propsCC0 and CC-BYGLB
ambientCGPBR materials and texturesCC0PNG
Poly Haventextures, HDRIs, some modelsCC0PNG, GLB

If nothing fits: generate_mesh in Studio (Roblox's own generator, free, rate limited) or build the shape from parts and CSG. Both stay inside the two rules.

Only if all of the above fail: the Roblox Creator Store, filtered to priceFilter: "free" and assetType: "MeshPart" or "Mesh" - never "Model". Say why the free sites did not work.

Licence handling

  • CC0 needs no credit, but still record where it came from.
  • CC-BY requires credit. Add the creator and a link to docs/credits.md. If the credit cannot be given, pick a different asset.
  • Anything with unclear licensing: skip it. Uploading someone else's work without the right can get the user's Roblox account banned.

Pipeline

Roblox cannot read a mesh off the local disk. Every mesh has to be uploaded once and then referenced by ID. That upload is the only step that needs credentials, and it is a one-off per asset.

find on a CC0 site -> download to _assets/ -> upload -> read the raw IDs
    -> write the catalog entry -> build it in game -> screenshot to verify
  1. Find and download. Save the raw file under _assets/<source>/. That folder is gitignored - the repo keeps the catalog, not the binaries.
  2. Check before uploading. Format must be .glb, .gltf or .fbx - .obj is rejected by Roblox, convert or pick another download. File must be under 20 MB.
  3. Upload. pwsh scripts/upload-asset.ps1 -Path <file> -Name <Name> Prints the asset ID. Needs .env (see .env.example); if it is missing, tell the user in one sentence what to create and stop - do not improvise.

    Textures upload separately. Kit models (Kenney, Quaternius) reference one shared texture file that is not embedded in the .glb, so the mesh arrives untextured. Upload the kit's colormap.png (or equivalent) too, with -AssetType Image - not Decal: MeshPart.TextureID accepts an Image asset and silently ignores a Decal one. One texture usually serves the whole kit, so upload it once and reuse the ID for every model from that kit.

    If the key is rejected with "Invalid API Key", it has expired. Ask the user for a fresh one; do not try to work around it.

  4. Read the raw IDs. Insert the uploaded asset once in Studio (insert_asset), find the MeshPart inside it, and read MeshId and TextureID. Those two content IDs are what the game actually uses. Destroy the inserted instance afterwards.
  5. Catalog it. Add an entry to src/shared/Assets.luau with meshId, textureId, source and license. The repo is the source of truth: an asset that only exists inside a Studio session is lost.
  6. Use it. AssetLoader.build("Name") returns a fresh MeshPart. It caches the template, so calling it a hundred times costs one fetch.
  7. Verify. screen_capture and look at it. Check scale against a character (~5 studs tall) - imported models are frequently 10x or 100x off. Set Size explicitly rather than trusting the import.

Placing meshes well

  • Anchor anything that should not fall: part.Anchored = true.
  • Set CollisionFidelity deliberately. Box for scenery the player only walks past, Default for anything they interact with, PreciseConvexDecomposition only when the shape really matters - it is expensive.
  • RenderFidelity = Enum.RenderFidelity.Automatic for distant scenery.
  • Reuse one catalog entry for many instances instead of uploading variants. Recolour and rescale clones instead.

If a Model ever gets in anyway

Run AssetLoader.sanitize(instance). It strips every Script, LocalScript, ModuleScript, RemoteEvent, RemoteFunction, BindableEvent and BindableFunction, and returns how many it removed. A non-zero count means the source was not clean - report that to the user in plain language, and prefer a different source next time.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.