Cocos2d

Use when the user asks about Cocos Creator 3.x, Cocos2d-x, a Cocos game, node and component scripting in TypeScript, Cocos builds for web or mobile, or Cocos performance. Produces Cocos project structure, gameplay code and build settings. Not for Cocos2d-x engine internals (use cocos2d-patterns) or other engines (use unity or godot).

45 stars 6 forksSoftware Development

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add j4flmao/agent-skills --skill cocos2d
Manual install
git clone --depth 1 https://github.com/j4flmao/agent-skills.git /tmp/agent-skills
mkdir -p ~/.claude/skills
cp -r /tmp/agent-skills/skills/game/cocos2d ~/.claude/skills/cocos2d

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# Cocos2d-x / Cocos Creator Deep Engineering Guide

## Purpose
Cocos2d is a family of open-source game frameworks for 2D (and now 3D in Creator) with strong mobile focus. Cocos2d-x is the C++ core; Cocos Creator is the full editor + scene system built on top. This guide focuses on Cocos Creator 3.x (which uses Cocos2d-x under the hood).

## Agent Protocol

### Trigger
"cocos2d", "cocos2d-x", "cocos creator", "cocos game", "cocos build".

### Input Context
- Cocos Creator or Cocos2d-x version
- Target platforms (web, iOS, Android, mini-games)
- Game type and performance targets

### Output Artifact
TypeScript/C++ code, project settings or a performance plan. No file unless requested.

### Response Format
```
Engine: {Cocos Creator 3.x | Cocos2d-x}
Change: {what and why}
Code: {snippet}
Perf check: {draw calls, memory, FPS on target device}
```

## 1. Engine Architecture

```
Cocos Creator 3.x
  Application
    Scene -> Node tree
      Component (Script, Render, Audio, UI, Physics...)
    Scheduler (main loop): tick() -> update() -> lateUpdate()
    Director: scene management, frame pacing
```

- **Director** is the central controller; `director.mainLoop()` runs the frame.
- **Nodes** are the tree; **Components** (scripts) attach behavior.
- **Scheduler**: manages `update()`, `lateUpdate()`, `physicsUpdate()` with priorities.

### 1.1 Update Order
Read the full skill on GitHub

Details

Skill name
cocos2d
Path
skills/game/cocos2d/SKILL.md
License
MIT
Repo updated
17 November 2026

FAQ

What does the Cocos2d skill do?

Use when the user asks about Cocos Creator 3.x, Cocos2d-x, a Cocos game, node and component scripting in TypeScript, Cocos builds for web or mobile, or Cocos performance. Produces Cocos project structure, gameplay code and build settings. Not for Cocos2d-x engine internals (use cocos2d-patterns) or other engines (use unity or godot).

How do I install the Cocos2d skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add j4flmao/agent-skills --skill cocos2d. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Cocos2d popular?

It lives in j4flmao/agent-skills, which has 45 GitHub stars and 6 forks.

Related skills

Agent Observability

45

j4flmao/agent-skills

Use when the user asks about agent observability, tracing agent reasoning, debugging an agent loop, OpenTelemetry GenAI spans for LLM calls, LLM cost tracking per agent, agent audit logs or hallucination/eval monitoring in production. Produces instrumentation config, trace schema, dashboards, alerts and cost attribution. Not for generic service tracing without LLMs (use devops-opentelemetry).

DevOps & Cloud

AI Agent Architectures

45

j4flmao/agent-skills

Use when the user asks to build an AI agent, design an agent that calls tools and keeps memory, write an agent system prompt or pick an agent framework (Claude Agent SDK, OpenAI Agents SDK, LangGraph). Produces an architecture brief covering loop, tools, memory, guardrails and evals, routing depth to child skills. Not for workflow patterns (use ai-agentic-workflows).

AI, LLMs & Agents

AI Agent Core Loop

45

j4flmao/agent-skills

Use when the user asks about the agent loop, ReAct vs plan-and-solve, re-planning, Reflexion, an agent stuck in a loop, max iterations or termination conditions. Produces a loop spec or patch with state, success predicate, caps and no-progress detection. Not for overall agent design (use ai-agent-architectures) or tool schemas (use tool-calling-principles).

AI, LLMs & Agents

Cocos2d Patterns

45

j4flmao/agent-skills

Use when the user asks about Cocos2d-x internals: the Director loop, scene graph, render queue and auto-batching, event dispatcher, or Ref/retain/release and autorelease pools. Explains engine internals to write fast C++ game code. Not for Cocos Creator gameplay scripting (use cocos2d).

Software Development

Cloud Architecture

45

j4flmao/agent-skills

Use when the user asks about cloud architecture, the Well-Architected Framework across AWS/Azure/GCP, landing zones, multi-cloud strategy, cloud governance, or reference architectures. Produces provider-neutral architecture decisions and trade-offs. Not for provider-specific setup (use aws, devops-azure or devops-gcp) or migration waves (use cloud-migration).

Software Development

Cuda Programming

45

j4flmao/agent-skills

Use when the user asks about a CUDA kernel, nvcc, shared memory tiling, coalesced access, warp divergence, occupancy, CUDA streams or __syncthreads. Produces CUDA C++ kernels with launch config, error checking and an Nsight Compute profiling plan. Not for Triton kernels (use triton-kernels) or PTX/SASS reading (use ptx-assembly).

Software Development

Browse the most popular Claude skills, all software development skills, or write your own with the skills generator.