Index of every page on this site: llms.txt
All skills
oahc09 avatar

/cocosair-agent-session

@ed38648
by oahc09oahc09/cocosairjs3 stars
2
Run it yourself

Inspect live scenes and frames with devtools; read runtime diagnostics. Use for scoped session writes, pixel probes or duplicate requestId INVALID_ARGUMENT errors.

  • 9 files
  • 34.7 KB
  • MIT
  • Updated last month
  • GitHub
Use this Skill: https://skilld.dev/gh/oahc09/cocosairjs/cocosair-agent-session

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencestriggers.md

≈360 tokens on demand. Your agent reads this file only when SKILL.md points to it.

agent session and inspection triggers

For original references to the contracts below, see Contracts. Source annotations refer to the AIR checkout.

When to use what

  • "let an agent or panel see the running app" -> the app sets window.__airApp = app (examples/automation/main.ts:31); the devtools panel reads options.app ?? window.__airApp (tools/debug/panel.ts:67). There is no runtime global the engine installs for you.
  • "read the scene structure" -> session.inspectScene() for a flat SceneSummary, session.inspectNode(id) for a NodeSummary (tools/debug/agent-session.ts:451, :505). Observation is read-only and never adds asset refs.
  • "apply a controlled change" -> session.dispatch({ requestId, action, targetId, params }) for a whitelisted write (tools/debug/agent-session.ts:665). Writes require the target to be inside writableScenes; otherwise OUT_OF_SCOPE.
  • "prove a frame changed" -> session.captureFrame() reads the canvas on the AFTER_DRAW hook (tools/debug/agent-session.ts:589).
  • "collect what broke at runtime" -> devtools session.getRuntimeErrors() ring buffer (tools/debug/agent-session.ts:647) versus the runtime app.diagnostics bounded channel (src/air/diagnostics.ts:14).
  • "measure a rendered region" -> tools/debug/pixel-regions.mjs conventions, screenshot top-left origin versus raw canvas bottom-left (tools/debug/pixel-regions.mjs:5, :53).

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at ed38648. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated last month
layer
subsystem
All 1 allowed tools
Read Bash
Other metadata
compatibility
Cocos AIR source checkout or installed cocosair.js package. Browser rendering requires WebGL 2; source tooling requires Node.js >=18. Use the host-provided tools and user-authorized workspace.
when_to_use
[
  "inspect the running scene or node",
  "apply a scoped change through an agent session",
  "capture a frame after drawing",
  "read runtime errors and diagnostics",
  "duplicate requestId is rejected"
]
owns
[
  "agent-session",
  "scene-inspection",
  "scoped-writes",
  "frame-capture",
  "pixel-probes",
  "runtime-diagnostics"
]
not_for
[
  "app startup or shutdown -> cocosair-application",
  "verification gates and release evidence -> cocosair-verification",
  "scene-tree implementation -> cocosair-scene-graph"
]
metadata
{
  "author": "oahc09@gmail.com",
  "version": "1.0.0",
  "last-updated": "2026-10-13",
  "description_zh": "使用开发工具观察运行时、按明确范围写入、捕获画面和读取诊断。用于实时应用检查或受控自动化,工具不属于默认运行时包。"
}

README badge

README badge for oahc09/cocosairjs/cocosair-agent-session