// Pattern usage examples would go here
// Analyze actual code for specific implementations
Code Examples
Basic Usage
# Import from 2d
import { Sprite, Label } from '2d';
Usage Guide
When to Use This Skill
Working with 2d module
Implementing features related to this domain
Refactoring code in this module
Debugging issues in this area
Best Practices
Understand the domain: Review the module's purpose and patterns
Follow conventions: Use the naming and structure patterns found in the codebase
Check dependencies: Be aware of module dependencies
Test changes: Ensure changes don't break existing functionality
Common Tasks
Adding new functionality to the module
Refactoring existing code
Fixing bugs
Adding tests
1---2name: 2d3description: 2d4---56# 2d78## Overview910This skill provides expertise for the **2d** module.1112**Location**: `cocos/2d`1314**Language**: typescript1516**Files**: 10 files1718## Domain Expertise1920### Patterns21- ui-system22- component-based2324### Key Concepts25- `Sprite`26- `Label`27- `Mask`28- `Graphics`29- `UIComponent`3031## Key APIs3233### Classes34- `Sprite`35- `Label`36- `Mask`37- `Graphics`38- `UIComponent`3940### Functions41- `updateVertexData()`42- `updateMaterial()`4344### Public API45- `Sprite`46- `Label`47- `Mask`48- `Graphics`4950## Common Patterns5152- **ui-system**: Common pattern in this module53- **component-based**: Common pattern in this module5455### Usage Examples5657```typescript58// Pattern usage examples would go here59// Analyze actual code for specific implementations60```6162## Code Examples6364### Basic Usage6566```typescript67# Import from 2d6869import { Sprite, Label } from '2d';70```71## Usage Guide7273### When to Use This Skill7475- Working with 2d module76- Implementing features related to this domain77- Refactoring code in this module78- Debugging issues in this area7980### Best Practices81821. **Understand the domain**: Review the module's purpose and patterns832. **Follow conventions**: Use the naming and structure patterns found in the codebase843. **Check dependencies**: Be aware of module dependencies854. **Test changes**: Ensure changes don't break existing functionality8687### Common Tasks8889- Adding new functionality to the module90- Refactoring existing code91- Fixing bugs92- Adding tests93
Run npx skillmds@latest add kongshan001/2d in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
2d It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. Capability flags: docs only. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
kongshan001 (@kongshan001) published this skill. Their other Agent Skills are listed on their SkillMD profile.