inspect-runtime

inspect-runtime is a skill for Claude Code, Codex from playcanvas/create-playcanvas. It costs 30 tokens per session (525 once invoked), scanned A, original, MIT.

A way to read the live state of a running PlayCanvas game or app through its developer hook, without editing the app's code.

In plain words
What is it for?
It helps inspect live PlayCanvas objects and values after a frame has been rendered, including finding objects by name or tag.
Why use it?
It avoids adding temporary global variables or debugging code just to inspect the running application. It also explains when the app cannot be found, such as when the hook loaded too late or the engine is too old.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps inspect live PlayCanvas objects and values after a frame has been rendered, including finding objects by name or tag.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/playcanvas/create-playcanvas/inspect-runtime
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 playcanvas/create-playcanvas --skill inspect-runtime
Clone the repo
git clone --depth 1 https://github.com/playcanvas/create-playcanvas

Made for: Claude Code, 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 inspect-runtime

README.md
[![agentmods](https://agentmods.dev/badge/skills/playcanvas/create-playcanvas/inspect-runtime/github.svg)](https://agentmods.dev/skills/playcanvas/create-playcanvas/inspect-runtime)
Your own site
<a href="https://agentmods.dev/skills/playcanvas/create-playcanvas/inspect-runtime"><img src="https://agentmods.dev/badge/skills/playcanvas/create-playcanvas/inspect-runtime/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 inspect-runtime

Your own site · 80×15
<a href="https://agentmods.dev/skills/playcanvas/create-playcanvas/inspect-runtime"><img src="https://agentmods.dev/badge/skills/playcanvas/create-playcanvas/inspect-runtime.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 525 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.00525
Opus 5.5 $0.00012 $0.00210
Sonnet 5.5 $0.00006 $0.00105
Haiku 4.5 $0.00003 $0.00052

Measured 14d ago against content hash 024613c39acb, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

inspect-runtime 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 14d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/devtools-hook.js), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

skills/inspect-runtime/SKILL.md · 42 lines

What it actually says

Inspect a running app

From Engine 2.23, every app announces itself to a hook at globalThis[Symbol.for('playcanvas.inspector')]. Read live state through it instead of adding window.app or debug code to the app.

Attach

  • Resolve scripts/devtools-hook.js relative to this skill and inject it as an init script that runs before any page script. A hook defined later misses existing apps; reload instead.
  • Page code then reads globalThis.__playcanvasApps, a Map from each live app to { version, revision, protocol }. app.init() adds the entry and app.destroy() removes it.
  • The script chains a hook defined before it, such as a devtools extension's.
  • No entry means the Engine predates 2.23, the hook loaded late, or the app set devtools: false. The Engine swallows errors thrown by the hook.
  • In 2.23.0 only the debug build (playcanvas/debug, build/playcanvas.dbg.*) announces apps; the default import never calls the hook. Later 2.23 patches fix every build.

Read state

  • Read after frameend, so values reflect a rendered frame.
  • Return plain numbers and strings to the caller, not Engine objects.
  • Useful reads: app.root.findByName() and findByTag(), world positions and meshInstance.aabb, app.stats.drawCallCount and frameTime, and entity.anim.baseLayer.activeState.
  • Pause with 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.
  • Revert anything you change to take a measurement.

Inspector panel

@playcanvas/inspector adds a panel for people: new Inspector(app) shows the hierarchy, assets, materials, shaders, textures, render targets, frame graph, and physics. 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.

Files

What ships with it

1 file 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. 14d ago First seen · 42 lines · 30 tokens per session scan A 024613c39acb

Subscribe to this mod's changes

inspect-runtime is a skill published in the GitHub repository playcanvas/create-playcanvas (60 stars, last pushed today), licensed MIT. It adds 30 tokens to every session and 525 once invoked, about $0.0001 per session on Opus 5.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-10-02.

Related

Other skills, from other repositories