cocos-ts-compile-check-sop
Use when running TypeScript compile check on Cocos Creator 3.x project.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when running TypeScript compile check on Cocos Creator 3.x project.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when installing Cocos Creator 3.x and setting up a headless test bootstrap.
Use when setting up a GUI-free CLI build pipeline for Cocos Creator 3.x.
Use when building code-driven scrollable UI panels in Cocos Creator 3.x.
Use when code-driven UI nodes in Cocos Creator 3.x fail to render text or colors.
Use when Cocos Creator 3.x CLI build fails with scene or library errors.
Use when installing Cocos Creator 3.x and debugging scene import errors.
| name | cocos-ts-compile-check-sop |
| description | Use when running TypeScript compile check on Cocos Creator 3.x project. |
Mandatory TypeScript compile check before committing code to a Cocos Creator 3.x project.
npx tsc --noEmit
Must pass with zero errors before any commit.
| Error | Fix |
|---|---|
Cannot find module 'cc' | Add @cocos/creator-types to tsconfig |
Property 'xxx' does not exist | Check Cocos API version compatibility |
Type 'X' is not assignable | Check Cocos 3.x type differences from 2.x |
compilerOptions.target: "ES2015" or highercompilerOptions.module: "commonjs" or "ES2015"compilerOptions.strict: true recommendedcompilerOptions.skipLibCheck: true for faster checksinclude: covers all assets/**/*.tsSee references/tsconfig-template.md for a complete working tsconfig.json.