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

/cocosair-project-setup

@ed38648
by oahc09oahc09/cocosairjs3 stars
2
Run it yourself

Set up npm imports, package entries, importmap, TypeScript and variant builds. Use for cocosair.js installation, unresolved-import errors, page shells or build artifacts.

  • 9 files
  • 27.7 KB
  • MIT
  • Updated last month
  • GitHub
Use this Skill: https://skilld.dev/gh/oahc09/cocosairjs/cocosair-project-setup

Nothing lands on disk. Nothing to clean up.

Fork this Skill

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

referencesentries.md

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

Main runtime entry

The only public package entry is cocosair.js. It exports the full default browser engine, createAirApp, and the experimental HTML texture helpers. Repository pages use the cocosair importmap alias for build/cocosair.module.js.

Purpose File
Development runtime build/cocosair.module.js and its map
Minified runtime build/cocosair.module.min.js and its map
Modern TypeScript build/cocosair.module.d.ts
TS <5.0 build/cocosair.legacy.d.ts, which re-exports the main declarations
npm runtime build/npm/cocosair.module.js; source-map-free copy prepared by prepack

Main is browser-only, but it may be imported before creating a canvas. Supply the selected canvas and pixelRatioCap to createAirApp; no pre-import globals are needed. For deferred loading, use an application-owned dynamic import('cocosair.js'). There are no independent bootstrap/html-source package entries and no Node/SSR import promise for the full runtime.

build generates development JS; build:min generates minified JS; build:dts generates declarations; build:all prepares all default files and the two npm JS copies. These builds remove the explicitly retired standalone entries, preserving decoders and optional Spark artifacts. Do not hand-edit generated files.

See contracts and the repository docs/reference/npm-scripts.md for scope and write behavior.

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 Edit Write 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
[
  "install or import cocosair.js",
  "imports resolve to the wrong entry",
  "TypeScript editor declarations fail",
  "wire a page importmap and canvas",
  "which build command produces this artifact"
]
owns
[
  "package-entries",
  "importmap",
  "typescript",
  "html-shell",
  "feature-flags",
  "build-artifacts"
]
not_for
[
  "createAirApp startup failures -> cocosair-application",
  "live HTML textures or overlays -> cocosair-graphics-and-dom",
  "proving build artifacts -> cocosair-verification"
]
metadata
{
  "author": "oahc09@gmail.com",
  "version": "1.0.0",
  "last-updated": "2026-10-13",
  "description_zh": "安装和配置 Cocos AIR 项目,选择包入口、importmap、TypeScript 声明和变体构建。用于安装导入、页面骨架、类型解析或构建产物问题。"
}

README badge

README badge for oahc09/cocosairjs/cocosair-project-setup