agentleFS
AshExplainedAshExplained/roblox-skills/roblox-performance-optimization/SKILL.md

roblox-performance-optimization

Skill5 starsChanged 5 months agoMITView on GitHub

Analyze and optimize Roblox scene and script performance. Use for mobile frame rate, memory, instance count, rendering cost, physics, particles, lighting, asset budgets, streaming, leaks, and using the rbx-scene-analysis workflow.

The file

We split this skill into the rules it gives an agent

9 rules. About 0 are common, 5 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Keep the experience smooth on lower-end phones.

    line 10
  2. Very specific:

    When available, invoke rbx-scene-analysis before deep performance work.

    line 14
  3. Very specific:

    Use search_game_tree and inspect_instance to identify heavy hierarchies.

    line 19
  4. Very specific:

    Use execute_luau for targeted counts, tag scans, memory snapshots, or property audits.

    line 20
  5. Very specific:

    Use screen_capture to preserve before/after visuals.

    line 21
  6. Distinctive:

    Prefer fewer meaningful effects over many constant effects.

    line 38
  7. Distinctive:

    Use Level of Detail thinking for distant props.

    line 39
  8. Distinctive:

    Keep UI lightweight and avoid per-frame layout work.

    line 40
  9. Distinctive:

    Test phones and tablet-like viewport sizes, not only desktop Studio.

    line 41

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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 Performance Optimization

Goal

Keep the experience smooth on lower-end phones. Favor measurable fixes over visual guesses.

Use The Scene Analysis Skill

When available, invoke rbx-scene-analysis before deep performance work. Use it to inspect rendering, memory, instance composition, unparented instances, and animation or audio asset usage.

MCP Workflow

  1. Confirm Studio state with get_studio_state.
  2. Use search_game_tree and inspect_instance to identify heavy hierarchies.
  3. Use execute_luau for targeted counts, tag scans, memory snapshots, or property audits.
  4. Use screen_capture to preserve before/after visuals.
  5. Playtest with start_stop_play and check get_console_output.

Optimization Targets

  • Instance count and deeply nested hierarchies.
  • Unanchored parts causing physics cost.
  • Excessive constraints, touched events, or per-frame loops.
  • Large textures, too many unique materials, and high-poly meshes.
  • Particle emitters with high rate/lifetime combinations.
  • Dynamic lights, shadows, post-processing, and expensive transparency.
  • Scripts that connect events repeatedly or leave stale connections.
  • Workspace content that should stream or load later.

Mobile Budget Habits

  • Build the first area to be visually strong but technically cheap.
  • Prefer fewer meaningful effects over many constant effects.
  • Use Level of Detail thinking for distant props.
  • Keep UI lightweight and avoid per-frame layout work.
  • Test phones and tablet-like viewport sizes, not only desktop Studio.

Report Format

Return:

  • Biggest performance risks.
  • Evidence from scene analysis, instance inspection, console output, or captures.
  • Fixes ranked by likely player impact.
  • Verification steps and any tradeoffs.

Next

Confirm the gains on-device with roblox-mobile-playtest, and re-run roblox-playtest-qa to make sure nothing regressed.

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.