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.

referencesenvironment.md

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

Derived from package.json, README.md, AGENTS.md, build/README.md and the suite's actual file layout; checked on 2026-10-11.

Locate the working environment

Resolve the environment before interpreting a path or running a command. Skill installation does not install the runtime or automatically grant access to the engine source checkout.

Application consuming npm

  • The application root is the user's project; its package manager and build scripts belong to that application.
  • Locate the installed cocosair.js package through the application's dependency resolution. Its package root contains package.json, README.md, shipped docs/, skills/ and declarations under build/.
  • Use cocosair.js, cocosair.js and cocosair.js imports with the application's bundler. The repository alias cocosair and /build/ URLs work only with a matching importmap and server mapping.
  • src/, tools/, examples/, AGENTS.md and Git metadata are not in the npm files list. Source annotations in references explain provenance; do not attempt to read those paths relative to the user's app or the host skill directory.
  • Validate with the application's compiler, build and real browser. Repository verify:*, gallery:* and runtime-build scripts require a source checkout and are not consumer commands.
  • Agent-session factories and /__debug/ routes require repository development tooling; the runtime does not provide them as package exports.

Engine source checkout

  • Confirm the selected root contains the cocosair.js package identity together with src/, tools/ and AGENTS.md. Resolve source annotations and canonical docs from this root, not from the current skill folder.
  • Run repository npm commands from that root with installed development dependencies. Inspect command prerequisites and writes before running them. Use the repository's authoritative AGENTS.md command table when present.
  • /build/cocosair.module.js snippets need an existing bundle and the repository development server. Builds, prepack and evidence collectors may write generated artifacts or advance build metadata; do not run them merely to read a skill.
  • Validate only the affected behavior. A source/declaration claim, a default-bundle claim, a variant build and a current browser PASS are different claims.

Copied host skills or missing dependencies

A copied skill folder is not a checkout or an installed package. Locate the application's installed package or the user-selected source checkout through the workspace context first. Read only relevant shipped docs/declarations or available source files. If neither is available, identify the missing dependency and continue only with self-contained guidance; do not invent a root, fetch a different baseline or call nonexistent tools.

Sibling links assume the suite's directory layout is preserved. For a standalone copied subsystem, the shared rules are: use package imports and shipped docs for consumers; use repository scripts and source paths only in a confirmed checkout. If a sibling skill is unavailable, consult the applicable canonical chapter instead and disclose that fallback.

Path and freshness conventions

Relative Markdown links resolve from the containing skill/reference file. Backticked docs/, build/, src/, tools/ and examples/ paths resolve from the selected package or checkout root according to the rules above. Generated artifacts and historical evidence may be absent; their absence is not a reason to fabricate them.

Use relative Markdown links for navigation between skills and references, including links from one reference to a sibling reference. Cross-skill paths must identify the destination skill explicitly; the camera references link to the scene-graph layers.md. Run node skills/cocosair/scripts/check-paths.cjs from the located checkout/package root after navigation changes. For a copied suite, run the script from its actual folder with an explicit --root=<skills-directory> if needed. The checker prints JSON and exits nonzero for missing targets or unlinked prose navigation paths; it leaves repository provenance and fenced code outside its scope.

Source file paths are stable locators; line numbers and recorded dates are search hints, not immutable identities. Re-read the directly relevant implementation when checking an error literal, hard limit or evidence contract. If source and older prose disagree, report the conflict and use the current implementation for its actual behavior. Do not claim browser verification from an old reference table.

The path checker accepts inline destinations (including angle brackets, URL encoding and balanced/escaped parentheses), double/single/parenthesized titles, and reference definitions. It ignores backtick/tilde fenced examples according to the opening marker and length, inline code examples and HTML comments. Code-formatted link labels remain valid navigation. Bare code-formatted navigation such as a dot-relative reference path must instead be a Markdown link. Empty scopes, scopes without SKILL.md, unreadable roots and malformed local URL encoding fail; --selftest covers these contracts in memory. External URLs and Markdown anchors are not resolved. This is a local navigation check, not a general Markdown linter or runtime gate.

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