Agent Skills › majidmanzarpour/threejs-game-skills › threejs-debug-profiler

threejs-debug-profiler

GitHub

用于调试和性能分析 Three.js 浏览器游戏,涵盖空白画布、加载失败、渲染错误及性能瓶颈排查与优化。

skills/threejs-debug-profiler/SKILL.md majidmanzarpour/threejs-game-skills

Trigger Scenarios

Three.js 游戏出现空白画布或渲染错误 需要分析游戏性能瓶颈如 Draw Calls 或内存占用

Install

npx skills add majidmanzarpour/threejs-game-skills --skill threejs-debug-profiler -g -y
More Options

Use without installing

npx skills use majidmanzarpour/threejs-game-skills@threejs-debug-profiler

指定 Agent (Claude Code)

npx skills add majidmanzarpour/threejs-game-skills --skill threejs-debug-profiler -a claude-code -g -y

安装 repo 全部 skill

npx skills add majidmanzarpour/threejs-game-skills --all -g -y

预览 repo 内 skill

npx skills add majidmanzarpour/threejs-game-skills --list

SKILL.md

Frontmatter
{
    "name": "threejs-debug-profiler",
    "description": "Debug and profile Three.js browser games: blank canvases, render and runtime bugs, asset and audio loading, animation, resize, mobile input, plus performance profiling of draw calls, triangles, textures, memory, shader and post-processing cost, and bundle size."
}

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

Reproduce first, with the same command and URL the user had, and read the console, page, and network errors. Find the module that owns the failure (renderer, loop, camera, scene, assets, audio, input, physics, UI, or base path), fix the root cause there, and retest the exact broken path. The playbook's triage order covers the common causes, such as more than one active loop, a canvas whose display size doesn't match its drawing buffer, and wrong delta units.

Profile

Profile the production preview when user-facing performance matters. Baseline one fixed scenario, classify the bottleneck (CPU, GPU draw, fragment, vertex, memory, or network), change one thing, and re-measure the same scenario, confirming visuals and playability held. The playbook lists the metrics to baseline and the optimizations in order of payoff.

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.

Version History

  • 8286774 Current 2026-10-18 16:22

    根据 Opus 5.5 行为调整提示词,简化 Debug 步骤并指向 Playbook,优化触发逻辑以降低 Token 成本。

  • e5f301d 2026-09-11 11:09

Same Skill Collection

skills/threejs-3d-generator/SKILL.md
skills/threejs-aaa-graphics-builder/SKILL.md
skills/threejs-audio-generator/SKILL.md
skills/threejs-game-director/SKILL.md
skills/threejs-game-ui-designer/SKILL.md
skills/threejs-gameplay-systems/SKILL.md
skills/threejs-image-generator/SKILL.md
skills/threejs-qa-release/SKILL.md

Metadata

Files
0
Version
8286774
Hash
1cf28e59
Indexed
2026-09-11 11:09

Home - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-10-19 15:26
浙ICP备14020137号-1