hieudoanm/hieudoanm.github.io/cocos-creator
Claude Code and agent skill by hieudoanm/hieudoanm.github.io
- community
Checking that the SKILL.md file is still in the repository.
Best practices for building games with Cocos Creator — the framework conventions for 3D/2D games exported to web, iOS, and Android. Use when writing, structuring, or reviewing Cocos Creator projects — covers project structure, components/scenes, the component lifecycle, state management, asset loading, performance, and the build pipeline.
Install
npx vskill@latest install hieudoanm/hieudoanm.github.io/cocos-creatorSKILL.md
The same SKILL.md was published earlier as hieudoanm/hieudoanm.github.io/cocos-creator.
Cocos Creator Best Practices
Cocos Creator is a component-based game engine (TypeScript-first) where scenes /prefabs/are composed of nodes and Components with a well-defined lifecycle (onLoad → start → update → onDestroy). Practical Cocos Creator leans on one responsibility per component, scene graph assembled from prefabs (not ad-hoc scripts), a Director/EventTarget bus for cross-system events, and asset bundles with explicit preloading for the shipping build. The editor is the composition root; code fills the behavior.
When to use
Use when writing, structuring, or reviewing Cocos Creator projects.
Prerequisites
- Basic familiarity with TypeScript and the project conventions.
- For implementation, access to the relevant source code and development environment.
Scope boundary
- When the project does not use this technology or pattern, or the task falls outside its scope; follow the project’s existing stack and conventions.
Essential checks
- One component per behavior; pure logic lives outside the cc layer and is unit-tested.
- The scene graph is composed from prefabs; scripts fill behavior, not node bureaucracy.
- Events /store for cross-system flow; components render/predicate state.
- Pool spawnables; update stays tiny; frames budget profiled before anything.
- Assets preloaded/bundled for the release target; errors fail loud.
- [ ] Folder structure (scenes/prefabs/components/bundles/scripts) and one component per file
- [ ] Lifecycle (onLoad/start/update/onDestroy) with dt clamp and cleanup
- [ ] Prefab composition; designer-editable @property; no component reach-ins
Focus areas
- 1. Project & Directory Structure
- 2. Components & Lifecycle
- 3. Scene & Prefab Composition
- 4. Input & Events
- 5. State & Data
- 6. Assets & Loading
- 7. Performance
- 8. Build & Release Pipeline
- 9. Testing
Detailed references
Related materials
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.skills/programming/languages/typescript/game/cocos-creator/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/hieudoanm/hieudoanm.github.io/cocos-creator)