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

/cocosair

@ed38648
by oahc09oahc09/cocosairjs3 stars
2
Run it yourself

Route AIR tasks by subsystem or visual symptom; choose direct dependencies and check capabilities.

  • 10 files
  • 72.8 KB
  • MIT
  • Updated last month
  • GitHub
Use this Skill: https://skilld.dev/gh/oahc09/cocosairjs/cocosair

Nothing lands on disk. Nothing to clean up.

Fork this Skill

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

SKILL.md

≈27 tokens for metadata: the name and description. ≈774 when used: this file. ≈13k more on demand in 8 files.

Description uses 1.4% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈109 characters, or 1.4%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Cocos AIR skill router

Stop once you can answer the task. Do not read another same-topic reference for the same question.

Choose one owner and required direct dependencies. Reuse loaded skills.

Environment: environment.

Quick Start

Minimal setup.

Siblings: owners and direct dependencies.

Triggers

  • Choose the owner of an AIR task
  • Adapt Creator knowledge to Code First
  • Separate API exports from usable capabilities

Mappings: triggers.

Code First discipline

  1. Original APIs first: use the engine's Scene, Node, Camera, Component, Material, Texture2D and Sprite; AIR helpers compose these objects. Do not invent parallel scene, node or material abstractions.
  2. Browser rendering requires WebGL 2 and nothing else; unsupported contexts reject startup with WEBGL2_REQUIRED. WebGL 1, Canvas and WebGPU are not supported renderer fallbacks. HEADLESS tests produce no rendered pixels.
  3. Use only the browser main entry cocosair.js. Main import before canvas creation is supported; pass canvas and pixelRatioCap to createAirApp. For deferred loading, dynamically import the main entry in the application. Startup and HTML texture helpers share the main declarations; there are no bootstrap/html-source package subpaths.
  4. Native material property writes require declared properties and matching value types; USE_TEXTURE must match whether the effect samples a texture.
  5. Keep ownership explicit. Detach renderers and bindings before destroying their textures; borrow shared assets and release only resources the feature owns.
  6. Skeletal joints use full paths relative to the skinning root. For glTF decoders and Spine, inspect their documented deployment and license boundaries.

Contracts

Keep source-exported, bundle-reachable, configured and browser-verified claims separate. Feature membership alone is not reachability. Default and AIR_FEATURES variant builds are different candidates; verification requires PASS on the current candidate. A typecheck or API declaration does not prove rendering, interaction or lifecycle behavior. See full qualifiers.

Common Mistakes

  • [HIGH] Check canvas admission against the current main-entry contract.
  • [HIGH] AIR has no Creator resources bundle pipeline.
  • [MEDIUM] A docs mention is not capability evidence.

Read wrong/right examples; note historical warnings.

No route matched

Use current main-entry declarations and canonical docs in the located package or checkout. Disclose missing resources; do not invent APIs or roots. Clarify only consequential missing context.

Reference map

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
router
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
[
  "which skill owns this AIR task",
  "choose only the dependencies needed for this step",
  "adapt Creator knowledge to code-first AIR",
  "distinguish source exports from proven browser capabilities"
]
owns
[
  "skill-routing",
  "primary-owner",
  "direct-dependencies",
  "code-first",
  "capability-layers"
]
not_for
[
  "startup errors -> cocosair-application",
  "material property failures -> cocosair-materials-effects"
]
metadata
{
  "author": "oahc09@gmail.com",
  "version": "1.0.0",
  "last-updated": "2026-10-13",
  "description_zh": "为 Cocos AIR 任务选择主技能和直接依赖,并遵循原生 API、启动时序与能力证据分层。用于开始 AIR 开发、定位能力归属或选择技能。"
}

README badge

README badge for oahc09/cocosairjs/cocosair