What problem does it solve?
This Skill eliminates the guesswork and inconsistencies of writing TypeScript gameplay logic for Cocos Creator 3.8.x playables, ensuring components follow engine best practices, coding standards, and performance budgets out of the box.
Core Features & Use Cases
- Production-Ready Component Authoring: Write Component-derived TypeScript scripts for input handling, state machines, tween animations, audio integration, and CTA flows that comply with TheOne Studio development standards.
- Battle-Tested Templates & Snippets: Access pre-built patterns for common mechanics like swipe detection, juicy button interactions, and end-card reveals to speed up development.
- Cross-Session Logic Consistency: Integrate with agentmemory to persist state machine diagrams and component contracts across development sessions, avoiding redundant work and misalignment with the cocos-engineer.
- Use Case: When the design team delivers a wireframe for a new hook gameplay screen, use this Skill to write the SwipeHook component with correct @property decorators, input event handling, and state logic, then hand it off to the cocos-engineer with clear mount instructions.
Quick Start
Use this skill to write a SwipeDetector component for the main playfield that tracks touch swipes, emits direction events, and includes proper event cleanup in onDestroy.