threejs-debug-profiler

threejs-debug-profiler is a skill for Codex from majidmanzarpour/threejs-game-skills. It costs 58 tokens per session (515 once invoked), scanned A, original, MIT.

A debugging and performance workflow for Three.js browser games. Performance profiling means measuring where rendering or runtime resources are being used.

In plain words
What is it for?
It helps inspect browser errors, canvas sizes, cameras, lights, materials, asset paths, animation, audio, input, collisions, draw calls, triangles, textures, memory, shaders, and bundle size.
Why use it?
It helps identify the actual cause of blank screens, broken controls, loading failures, visual bugs, and slow performance.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit It helps inspect browser errors, canvas sizes, cameras, lights, materials, asset paths, animation, audio, input, collisions, draw calls, triangles, textures, memory, shaders, and bundle size.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/majidmanzarpour/threejs-game-skills/threejs-debug-profiler
About the project

Three.js Game Skills is a collection of agent skills for creating playable browser games with Three.js, a JavaScript library for rendering interactive 3D graphics. It is for users building games with gameplay, graphics, interfaces, generated assets, debugging, and release checks, with bundled Vite, TypeScript, and Three.js materials plus testing templates. The catalogue entries are the skills and instruction that coordinate these parts of the game-building workflow.

majidmanzarpour/threejs-game-skills · 1,939 stars · on GitHub

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 majidmanzarpour/threejs-game-skills --skill threejs-debug-profiler
Clone the repo
git clone --depth 1 https://github.com/majidmanzarpour/threejs-game-skills

Made for: Codex.

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 threejs-debug-profiler

README.md
[![agentmods](https://agentmods.dev/badge/skills/majidmanzarpour/threejs-game-skills/threejs-debug-profiler/github.svg)](https://agentmods.dev/skills/majidmanzarpour/threejs-game-skills/threejs-debug-profiler)
Your own site
<a href="https://agentmods.dev/skills/majidmanzarpour/threejs-game-skills/threejs-debug-profiler"><img src="https://agentmods.dev/badge/skills/majidmanzarpour/threejs-game-skills/threejs-debug-profiler/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 threejs-debug-profiler

Your own site · 80×15
<a href="https://agentmods.dev/skills/majidmanzarpour/threejs-game-skills/threejs-debug-profiler"><img src="https://agentmods.dev/badge/skills/majidmanzarpour/threejs-game-skills/threejs-debug-profiler.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 515 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. Third-party audits
  • Socket pass 6 Sept 2026
  • Snyk pass 6 Sept 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00058 $0.00515
Opus 5 $0.00029 $0.00258
Sonnet 5 $0.00012 $0.00103
Haiku 4.5 $0.00006 $0.00052

Measured 4d ago against content hash d0f768904065, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

threejs-debug-profiler 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 4d 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.

skills/threejs-debug-profiler/SKILL.md · 38 lines

How it starts

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

Three.js Debug Profiler

Find root causes and optimize measured bottlenecks without breaking playability.

Follow the changed behavior's scope. Reuse the lead's existing reproduction and evidence; verify the affected path after a fix. A passing focused check only needs broader testing when shared behavior changed or an unresolved risk warrants it. Return measurements and defects to the lead for the consolidated verification pass.

Reference

references/debug-playbook.md — ordered triage for blank canvas, asset and audio loading, loop/animation/physics, input and mobile, the profiling sequence, and the __THREE_GAME_DIAGNOSTICS__ shape. Read it when debugging or profiling anything non-obvious.

Debug

  1. Reproduce locally with the same command and URL the user had.
  2. Read console, page, and network errors.
  3. Check canvas display size against drawing-buffer size.
  4. Check renderer, context, and loop ownership — more than one active loop is a common cause.
  5. Check camera aspect, near/far, lights, materials, fog, scene contents, transforms.
  6. Check asset paths, loaders, CORS, and base path.
  7. Check animation delta units, physics update order and fixed timestep, collider and body ownership, input listeners, pointer and touch behavior, resize, and audio context unlock when audio is involved.
  8. Fix the root cause in the module that owns it, then retest the exact broken path.

Profile

  1. Reproduce in the correct build mode — production preview when user-facing performance matters.
  2. Baseline the scenario: FPS and frame time, draw calls, triangles, geometries, textures, memory, bundle.
  3. Classify the bottleneck as CPU, GPU draw, GPU fragment, GPU vertex, memory, or network.
  4. Change one thing — instancing, shared resources, culling, LOD, DPR cap, cheaper shadows or post, texture discipline.
  5. Re-measure the same scenario and confirm visuals and playability held.

Report

Lead with the root cause or the measured bottleneck. Then files changed, baseline and post metrics, commands, screenshots, the broken path retested, and residual risks.

Read the full file on GitHub · 38 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 4d ago Changed · -1 lines · +2 tokens per session d0f768904065
  2. 11d ago First seen · 39 lines · 56 tokens per session scan A b0c52a47a047

Subscribe to this mod's changes

threejs-debug-profiler is a skill published in the GitHub repository majidmanzarpour/threejs-game-skills (1,939 stars, last pushed 5d ago), licensed MIT. It adds 58 tokens to every session and 515 once invoked, about $0.0003 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-08-30.

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