/playcanvas:inspect-runtimefrom PlayCanvas
Reads live state from a running PlayCanvas app via the Engine devtools hook without modifying app code. Useful for debugging, inspecting entities, stats, and animations.
Ships in PlayCanvas. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
From Engine 2.23, every app announces itself to the hook below. Read live state through it, not
window.app or debug code.
Inject this as an init script, before any page script; a later hook misses existing apps. It chains an earlier hook, such as a devtools extension's:
{
const key = Symbol.for('playcanvas.inspector');
const prev = globalThis[key];
const apps = (globalThis.__playcanvasApps ??= new Map());
if (!prev?.playcanvasApps) {
globalThis[key] = {
playcanvasApps: apps,
register(app, info) {
apps.set(app, info);
prev?.register?.(app, info);
},
unregister(app) {
apps.delete(app);
prev?.unregister?.(app);
}
};
}
}
globalThis.__playcanvasApps maps each live app to { version, revision, protocol } from
app.init() until app.destroy().devtools: false. The Engine swallows hook errors.frameend, so values reflect a rendered frame.app.root.findByName() and findByTag(), world positions and
meshInstance.aabb, app.stats.drawCallCount and frameTime, and
entity.anim.baseLayer.activeState.app.timeScale = 0; update still runs with a zero dt. Step one frame by restoring
the scale, then zeroing it again on the next frameend.@playcanvas/inspector is a debug panel: new Inspector(app) shows the hierarchy, assets, GPU
resources, frame graph, physics, and frame timings; record: true records from creation. It must
import the app's own playcanvas package, so add it only to development builds. It draws over the
canvas and applies view overrides, so destroy it before verify-pixels captures. Stepping through
draws needs the debug build.
With mcp: true (0.5.0+), await inspector.executeTool(name, args) runs the tools getTools()
lists: find entities, get objects by $id, record frames, take screenshots, and read logs.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub playcanvas/skills --plugin playcanvas16 skills in this plugin
/add-effectsUse when adding visual effects to a PlayCanvas app, to choose between particle systems, shader chunks, runtime meshes, and post-processing./apply-conventionsUse when writing PlayCanvas Engine code touching transforms, cameras, lights, materials, meshes, bounds, or imports, to apply Engine conventions and avoid legacy APIs./assemble-sceneUse when composing PlayCanvas entity hierarchies from models, colliders, rigid bodies, and scripts, so each object has one semantic root and clear lifecycle./bake-lightingUse when static PlayCanvas lighting, shadows, or ambient occlusion cost too much per frame and should be baked into lightmaps./build-appUse when creating or restructuring a PlayCanvas app with the Engine API, @playcanvas/react, or @playcanvas/web-components, covering bootstrap, input, resize, physics, update loop, UI, and lifecycle./calibrate-modelUse before repeatedly placing GLB models in PlayCanvas to record each asset's uniform scale, grounding offset, pivot compensation, and yaw once.Other plugins' skills for the same job