skills/cocos-skills/cocos2d-x/SKILL.md
Provides comprehensive guidance for Cocos2d-x v4 game engine including scene graph, nodes, sprites, actions, animations, physics, rendering, shaders, and platform deployment. Use when the user asks about Cocos2d-x, needs to create games, implement game features, set up development environments, or deploy games to multiple platforms.
npx skillsauth add teachingai/full-stack-skills cocos2d-xInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this skill whenever the user wants to:
To work with Cocos2d-x v4:
Identify the topic from the user's request:
examples/getting-started/about-engine.mdexamples/getting-started/quick-start.mdexamples/getting-started/installation.mdexamples/core/node-scene.mdexamples/core/sprite.mdexamples/core/texture.mdexamples/core/animation.mdexamples/core/action.mdexamples/core/label.mdexamples/core/scene.mdexamples/core/input.mdexamples/core/event.mdexamples/advanced/physics.mdexamples/advanced/rendering.mdexamples/advanced/shader.mdexamples/advanced/particle.mdexamples/tools/build-system.mdexamples/tools/deployment.mdLoad the appropriate example file from the examples/ directory:
examples/getting-started/about-engine.md - Engine overview and featuresexamples/getting-started/quick-start.md - Create first projectexamples/getting-started/installation.md - Environment setupexamples/core/node-scene.md - Node and Scene conceptsexamples/core/sprite.md - Sprite creation and manipulationexamples/core/texture.md - Texture loading and managementexamples/core/animation.md - Animation systemexamples/core/action.md - Action system and sequencesexamples/core/label.md - Label and text renderingexamples/core/scene.md - Scene management and transitionsexamples/core/input.md - Touch, mouse, and keyboard inputexamples/core/event.md - Event system and listenersexamples/advanced/physics.md - Physics engine integrationexamples/advanced/rendering.md - Rendering pipelineexamples/advanced/shader.md - Custom shadersexamples/advanced/particle.md - Particle effectsexamples/tools/build-system.md - CMake and build configurationexamples/tools/deployment.md - Platform-specific deploymentFollow the specific instructions in that example file for syntax, structure, and best practices
Each example file contains:
Generate C++ code following Cocos2d-x v4 conventions:
USING_NS_CC; for namespaceCREATE_FUNC() macro for create functionsReference the official documentation:
api/ directory for detailed API documentationexamples/ directory for code examplesUse templates when creating new projects:
templates/project-structure.md - Standard project structuretemplates/cmake-config.md - CMake configuration examplesCocos2d-x v4 supports:
cocos commandFor migrating from older versions:
examples/migration/ for migration guidesapi/ directoryexamples/ directorytemplates/ directorycocos2d-x, cocos2d, game engine, game development, C++ game, 2D game, cross-platform game, sprite, scene, node, action, animation, physics, rendering, shader, particle system, CMake, game framework, 游戏引擎, 游戏开发, 精灵, 场景, 节点, 动作, 动画, 物理引擎, 渲染, 着色器, 粒子系统
tools
Automates browser interactions via CLI using agent-browser by Vercel Labs. Covers navigation, clicking, form filling, snapshots, refs-based selectors, agent mode with JSON output, session management, and CDP integration. Use when the user needs to automate web browsing, scrape pages, fill forms, or integrate browser automation into AI agent workflows.
testing
Creates museum-quality visual art as .png or .pdf by first generating a design philosophy manifesto, then expressing it on canvas with precise composition, color palettes, and typography. Use when the user asks to create a poster, art piece, visual design, or static creative piece. Outputs original designs using design-forward principles.
development
Applies Anthropic brand colors (dark #141413, orange #d97757, blue #6a9bcc, green #788c5d), Poppins headings, and Lora body text to artifacts such as presentations, documents, or visuals. Use when the user needs Anthropic brand styling, brand color application, corporate typography, or visual formatting following Anthropic design standards.
development
Creates gallery-quality algorithmic art using p5.js with seeded randomness, interactive parameter controls, and seed navigation, outputting a single self-contained HTML artifact with Anthropic branding. Use when the user requests generative art, algorithmic art, flow fields, particle systems, or code-based visual art using p5.js.