perf-profile

perf-profile is a skill for Claude Code from CodePhobiia/claude-roblox-game-studio. It costs 30 tokens per session (825 once invoked), scanned A, original, MIT.

A guide to measuring and investigating performance problems in a Roblox game, such as low frame rates, lag, memory growth, or heavy network use. It explains which Roblox Studio profiling tools to use and what common bottlenecks to inspect.

In plain words
What is it for?
Use it to profile server and client frame time, script CPU and memory use, network traffic, and common causes such as heavy loops or poorly timed data operations.
Why use it?
It gives the investigation a starting point instead of relying on vague reports that a game feels slow. It connects each symptom with measurements and likely areas of code or networking to check.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it to profile server and client frame time, script CPU and memory use, network traffic, and common causes such as heavy loops or poorly timed data operations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/codephobiia/claude-roblox-game-studio/perf-profile
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add CodePhobiia/claude-roblox-game-studio --skill perf-profile
Clone the repo
git clone --depth 1 https://github.com/CodePhobiia/claude-roblox-game-studio

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for perf-profile

README.md
[![agentmods](https://agentmods.dev/badge/skills/codephobiia/claude-roblox-game-studio/perf-profile/github.svg)](https://agentmods.dev/skills/codephobiia/claude-roblox-game-studio/perf-profile)
Your own site
<a href="https://agentmods.dev/skills/codephobiia/claude-roblox-game-studio/perf-profile"><img src="https://agentmods.dev/badge/skills/codephobiia/claude-roblox-game-studio/perf-profile/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for perf-profile

Your own site · 80×15
<a href="https://agentmods.dev/skills/codephobiia/claude-roblox-game-studio/perf-profile"><img src="https://agentmods.dev/badge/skills/codephobiia/claude-roblox-game-studio/perf-profile.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 825 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00030 $0.00825
Opus 5 $0.00015 $0.00413
Sonnet 5 $0.00006 $0.00165
Haiku 4.5 $0.00003 $0.00082

Measured 9d ago against content hash 3e7c3e071735, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

perf-profile scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/perf-profile/SKILL.md · 134 lines

How it starts

The opening of the file, as written. The whole thing — 134 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/perf-profile — Performance Profiling Guide

Delegate to: performance-analyst

When to Use

  • Game feels laggy on mobile
  • Server frame time is high
  • Memory usage growing over session
  • Network bandwidth high
  • Any specific performance concern reported by users

Steps

1. Define the Problem

Ask:

  • "What's the symptom?" (FPS drop, memory growth, lag spike, high network)
  • "When does it happen?" (always, combat, crowded servers, specific action)
  • "What devices?" (mobile, PC, console, specific model)
  • "What was the baseline?" (was this working before a change?)

2. Pick the Right Tool

MicroProfiler (primary tool)
  • Server: Ctrl+F6 in Studio
  • Client: Ctrl+Alt+F6 during playtest
  • Shows per-frame breakdown — find what's eating the frame
Developer Console (F9)
  • Stats tab for general metrics
  • Log tab for errors
Script Profiler (Ctrl+Alt+F5)
  • Per-script CPU usage
  • Heap usage per script
Network Tab
  • Bandwidth breakdown per remote

3. Common Server Bottlenecks

Heartbeat Time > 33ms

Check:

  • Scripts in heavy loops over many instances
  • DataStore calls not yielding
  • Synchronous operations that should be async
Memory Growth

Check:

  • Tables accumulating without cleanup
  • Connections not disconnected
  • Instances created without Destroy()
DataStore Budget Exhausted

Check:

  • Save frequency too high
  • Not debouncing saves
  • Retries running too often on failure

4. Common Client Bottlenecks

FPS Drop on Mobile

Check:

  • Transparency overdraw (stacked transparent parts)
  • Particle rates too high
  • Dynamic lights > 8 visible
  • Post-processing stack (Bloom, DepthOfField)
  • Part count in visible area
Lag Spikes

Check:

  • Tweens starting and stopping (allocations)
  • Large table creations per frame
  • Heavy operations in Heartbeat
Memory Growth (Client)

Check:

  • UI connections not cleaned up on PlayerGui destruction
  • Image/sound caching without eviction
  • Accumulating local state

5. Profiling Walkthrough

Read the full file on GitHub · 134 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 134 lines · 30 tokens per session scan A 3e7c3e071735

Subscribe to this mod's changes

perf-profile is a skill published in the GitHub repository CodePhobiia/claude-roblox-game-studio (9 stars, last pushed 4mo ago), licensed MIT. It adds 30 tokens to every session and 825 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

minecraft-debug-mcp

Operate and debug the live Minecraft bot through its built-in MCP REPL server. Use when work requires starting the bot with pnpm dev, connecting to the local MCP endpoint, inspecting cognitive state/logs/history, injecting synthetic chat/events, or running targeted REPL code against the running brain during…

moeru-ai/airi · 68 tokens

graphics-api-hooking

Analyze Direct3D/DXGI, OpenGL, and Vulkan rendering, presentation, composition, and capture evidence. Use to distinguish API samples, PresentMon event metrics, Tracy instrumentation, compatibility translation, frame images, and validation diagnostics; review swap chains, overlays, resource lifetime, and…

gmh5225/awesome-game-security · 90 tokens

console-get-logs

Retrieve Unity Editor logs from the MCP plugin's LogCollector, optionally filtered by log type or time window. Useful for debugging and monitoring Editor activity.

IvanMurzak/Unity-MCP · 35 tokens

editor-application-get-state

Return the current state of UnityEditor.EditorApplication — playmode, paused state, compilation state, and related flags.

IvanMurzak/Unity-MCP · 31 tokens

console-clear-logs

Clear the MCP log cache (used by 'console-get-logs') and the Unity Editor Console window. Useful for isolating logs to a specific action by clearing the slate first.

IvanMurzak/Unity-MCP · 41 tokens

profiler-start

Enable Unity's runtime profiler and open the Profiler window. Idempotent: calling when already enabled returns the current enabled state without error.

IvanMurzak/Unity-MCP · 32 tokens