roblox-performance · tabooharmony — скилл для Claude Code: что делает
Набор правил и метрик для профилирования игр в Roblox. Помогает агенту устранять просадки кадров, серверный лаг и утечки памяти.
npx skills add TabooHarmony/roblox-brain --skill roblox-performance -a claude-codeЧто делает roblox-performance
Скилл добавляет в контекст агента ориентиры для профилирования Roblox. В него заложены бюджеты: серверный тик до 16ms, 60 FPS на компьютерах и 45 FPS на телефонах. Расследование нужно начинать при тике свыше 33ms или падении кадров ниже 30. Скилл опирается на замеры через MicroProfiler, Developer Console и Script Profiler, запрещая оптимизацию на основе догадок.
Внутри собраны правила для многопоточности и горячих циклов. Актёры (Actor) используются строго после замеров процессора. Для синхронизации состояния между потоками предписан SharedTable, так как SendMessage просто копирует данные. Luau сам оптимизирует глобальные импорты, поэтому ручной перенос функций не нужен.
Отдельно разобрана потоковая загрузка StreamingEnabled. Выгруженные объекты попадают в nil, а не уничтожаются. Из-за этого вызов FindFirstChild для удалённой детали вернёт пустоту и приведёт к ошибке.
Какие задачи решает
- настроить замеры нагрузки через Script Profiler и MicroProfiler
- распределить вычисления между параллельными потоками через Actors
- предотвратить ошибки отсутствия деталей при активном StreamingEnabled
- удержать время серверного тика в пределах 16ms
Примеры запросов агенту
- Серверный тик превысил 33ms, помоги найти узкие места в скриптах через Script Profiler.
- Как передать данные между воркерами через SharedTable в Parallel Luau?
- После включения StreamingEnabled код с FindFirstChild перестал находить модель, как исправить?
Как установить roblox-performance
1Через Skills CLI (Vercel)
npx skills add TabooHarmony/roblox-brain --skill roblox-performance -a claude-code2Вручную: положить файлы
~/.claude/skills/roblox-performance/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/roblox-performance/
1Через Skills CLI (Vercel)
npx skills add TabooHarmony/roblox-brain --skill roblox-performance -a codex2Вручную: положить файлы
.agents/skills/roblox-performance/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add TabooHarmony/roblox-brain --skill roblox-performance -a cursor2Вручную: положить файлы
.cursor/skills/roblox-performance/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install TabooHarmony/roblox-brain roblox-performance2Вручную: положить файлы
.github/skills/roblox-performance/SKILL.md1Через Skills CLI (Vercel)
npx skills add TabooHarmony/roblox-brain --skill roblox-performance -a gemini-cli2Командой платформы
gemini skills install https://github.com/TabooHarmony/roblox-brain --path skills/core/roblox-performanceВручную: положить файлы
.devin/skills/roblox-performance/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add TabooHarmony/roblox-brain --skill roblox-performance -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о roblox-performance
Как установить roblox-performance в Claude Code?
Выполните команду npx skills add TabooHarmony/roblox-brain --skill roblox-performance -a claude-code.
Что делает скилл roblox-performance?
Он передаёт ИИ-ассистенту целевые показатели производительности для Roblox, сочетания клавиш встроенных профилировщиков и правила написания быстрого кода на Luau.
Как скилл рекомендует обращаться с удалёнными объектами в StreamingEnabled?
Выгруженные движком объекты перемещаются в nil, а не удаляются. Чтобы избежать сбоев, скилл требует заменять FindFirstChild на WaitForChild с обязательным таймаутом.
Исходный текст
SKILL.md · MIT
---
name: roblox-performance
description: "Use when profiling or fixing Roblox performance: low FPS, lag, memory, network load, slow phones, hot paths."
when_to_use: "Also when the game stutters, phones overheat or crash, server heartbeat drops, before adding many parts/effects/UI, and when auditing performance before release."
last_reviewed: 2026-10-02
sources:
- https://create.roblox.com/docs/en-us/performance-optimization/microprofiler
- https://create.roblox.com/docs/en-us/reference/engine/libraries/debug
- https://devforum.roblox.com/t/huge-memory-leak-prevention-for-everyone-or-most-people-atleast/3099605
- https://devforum.roblox.com/t/full-release-of-parallel-luau-v1/1836187
- https://luau.org/performance
- https://create.roblox.com/docs/reference/engine/classes/Actor
- https://create.roblox.com/docs/reference/engine/datatypes/SharedTable
- https://create.roblox.com/docs/scripting/multithreading
---
# Roblox Performance
## When to Load
Use for profiling and performance budgets. Pooling and lifecycle patterns: `roblox-luau-patterns`.
## Quick Reference
### Profiling Tools
- **MicroProfiler (Ctrl+F6)**: Frame breakdown of scripts, physics, rendering.
- **Developer Console (F9)**: Memory, network, rendering, and server stats.
- **Script Profiler (Ctrl+Alt+F5)**: Per-script CPU and heap.
- **Labels**: `debug.profilebegin`/`debug.profileend` mark regions; `debug.setmemorycategory` labels memory. Gate instrumentation behind a flag.
### Performance Targets
| Metric | Starting target | Investigate at |
|--------|-----------------|----------------|
| Server heartbeat | < 16ms | > 33ms |
| Client FPS (desktop) | 60 | < 30 |
| Client FPS (mobile) | 45 | < 30 |
| Memory | device-specific | sustained growth |
Optimize measured hot paths, not folklore. Throttle from measurements; re-profile after shipping.
### Parallel Luau
- Use Actors only after profiling identifies isolatable CPU work.
- Workers compute; synchronize before restricted DataModel writes.
- Do not rely on shared module state across Actors. `SendMessage` copies data; SharedTable supports shared state and atomic updates.
### Hot-loop cost model
- Luau optimizes global imports; avoid folklore function hoisting/unrolling. Environment impurity can disable optimizations. Profile allocations as well as CPU; GC cost may occur later.
### Object Pooling
Pre-clone and reuse. Canonical pool code (token-lease ownership): `roblox-luau-patterns`.
### StreamingEnabled Essentials
- **On by default**. Container-scoped: only Workspace descendants stream. `ModelStreamingBehavior = Improved` streams non-BasePart descendants with their parent Model; Legacy streams only BaseParts.
- **Streamed-out = parented to nil**, not destroyed. Luau refs persist if it streams back.
- **Config (Studio)**: target defaults 1024, min 64; set `StreamingIntegrityMode`; tune from data.
- **Gotcha**: `FindFirstChild("DistantPart")` returns nil if streamed out. Use WaitForChild with timeout.
### Mobile
- Profile geometry, textures, particles, UI, shadows on low-end devices.
> Full reference with code examples and API tables: [references/full.md](references/full.md)
© TabooHarmony · MIT · TabooHarmony/roblox-brain
Похожие скиллы
Всё по теме «Геймдев и 3D: Unity, Unreal, Godot, Blender» →Сначала — roblox-performance от других авторов.