theone-cocos-standards

Enforce TheOne Studio Cocos Creator TypeScript standards during code reviews.

Updated Jan 13, 2026
One-click install
npx skills add https://github.com/danielctc/ReactSpacesMonoRepo --skill theone-cocos-standards-danielctc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: theone-cocos-standards
Source: https://github.com/danielctc/ReactSpacesMonoRepo/tree/main/.claude/skills/theone-cocos-standards
Command: npx skills add https://github.com/danielctc/ReactSpacesMonoRepo --skill theone-cocos-standards-danielctc

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires eslint, typescript, and includes references (resource) components.

What problem does it solve?

TheOne Studio Cocos Creator projects often suffer from inconsistent code quality, unclear architecture, and suboptimal playable-ads performance. This skill codifies TheOne standards to ensure TypeScript hygiene, component lifecycle discipline, and performance-oriented patterns across teams.

Core Features & Use Cases

  • Enforces TypeScript strict mode, ESLint rules, and proper access modifiers for maintainable code.
  • Guides Cocos Creator architecture (EC patterns, lifecycle, EventDispatcher) and playable ads optimizations (draw calls, atlas usage, GPU skinning).
  • Used during writing, reviewing, or refactoring Cocos TypeScript code, and during code reviews or architecture planning to ensure consistent quality and performance.

Quick Start

Use the skill as a checklist during PR reviews, apply the guidelines to new code, and reference the references/ documentation to resolve questions about patterns and best practices.

Frequently Asked Questions about theone-cocos-standards

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

FAQPage Schema
How do I enforce TypeScript strict mode and ESLint rules in Cocos Creator projects?

You can enforce TypeScript strict mode and ESLint rules in Cocos Creator by applying this skill as a checklist during code reviews, ensuring proper access modifiers, lifecycle discipline, and consistent component architecture.

What are the best practices for optimizing playable ads performance in Cocos Creator?

Optimizing playable ads performance in Cocos Creator involves applying DrawCall batching, atlas usage optimization, and GPU skinning patterns defined in this skill to reduce runtime overhead and improve rendering efficiency.

How do I manage Cocos Creator component lifecycle and EventDispatcher patterns correctly?

Managing Cocos Creator component lifecycle and EventDispatcher patterns correctly requires following EC architectural guidelines that dictate strict lifecycle discipline and event handling standards codified in this skill.

Can I use this skill for refactoring existing Cocos TypeScript codebases?

Yes, you can use this skill for refactoring existing Cocos TypeScript codebases by referencing its included documentation to resolve architectural questions, enforce strict mode, and apply performance-oriented patterns during code reviews.

Do I need ESLint and TypeScript dependencies to apply these Cocos development standards?

Yes, you need ESLint and TypeScript dependencies installed in your Cocos Creator environment to effectively apply these development standards, as the skill relies on them to enforce code quality and strict typing rules.

Why does my Cocos Creator playable ad have high DrawCall counts and poor performance?

High DrawCall counts and poor performance in Cocos Creator playable ads often stem from unbatched rendering, improper atlas usage, and lack of GPU skinning, which this skill's standards explicitly target for optimization.