cocos-creator-2x-cn

Codify Cocos Creator 2.x development standards for TypeScript and component architecture.

1|Updated Mar 8, 2026
One-click install
npx skills add https://github.com/tense-i/stock-market-simulator --skill cocos-creator-2x-cn
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cocos-creator-2x-cn
Source: https://github.com/tense-i/stock-market-simulator/tree/main/.opencode/skill/cocos-creator-2x-cn
Command: npx skills add https://github.com/tense-i/stock-market-simulator --skill cocos-creator-2x-cn

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Inconsistent quality across Cocos Creator 2.x projects is common; this Skill codifies development standards to standardize practices and reduce bugs.

Core Features & Use Cases

  • Comprehensive TypeScript guidelines (strict mode, explicit modifiers, safe error handling)
  • Cocos Creator 2.4 architecture guidance (cc.Class/cc._decorator, lifecycle, events, resource management, tween and pooling)
  • Performance and review focus (zero-allocation paths, object pools, code quality audits, playable ads optimization)

Quick Start

Audit your codebase against the guideline checklist and implement the recommended patterns to elevate project quality.

Frequently Asked Questions about cocos-creator-2x-cn

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I standardize TypeScript usage in Cocos Creator 2.x projects?

Standardize Cocos Creator 2.x TypeScript usage by enforcing strict mode configurations, applying explicit modifiers, and implementing safe error handling to reduce bugs and elevate project quality.

What is the best way to manage component lifecycles and events in Cocos Creator 2.4?

The best way to manage component lifecycles in Cocos Creator 2.4 is using explicit lifecycle definitions and lifecycle-safe event handling to ensure consistent execution across your game architecture.

How to optimize Cocos Creator 2.x performance for playable ads?

Optimize Cocos Creator 2.x playable ads performance by utilizing zero-allocation paths, implementing object pools for resource lifecycle discipline, and applying structured code quality audits.

Does this Cocos Creator 2.x architecture guidance support cc.Class and cc._decorator?

Yes, this Cocos Creator 2.x architecture guidance fully supports cc.Class and cc._decorator, providing structured patterns for component architecture, tween operations, and resource pooling.

Why does inconsistent Cocos Creator 2.x project quality occur and how to fix it?

Inconsistent Cocos Creator 2.x project quality occurs from unstandardized practices; fix it by codifying development standards into a structured review checklist covering TypeScript usage and resource management.