skills/cocos-build/SKILL.md
Cocos Creator 2.x 项目编译技能 - 自动触发脚本编译并验证效果
npx skillsauth add 958877748/skills cocos-buildInstall 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.
用于 Cocos Creator 2.x 项目的开发工作流自动化。
修改任何 assets/ 目录下的脚本文件后,执行以下命令触发编译:
curl.exe http://localhost:7456/update-db
成功返回:Changes submitted
assets/ 下的 .ts 文件curl.exe http://localhost:7456/update-dbhttp://localhost:7456/创建新的 TypeScript 组件时:
assets/ 目录下创建 .ts 文件.meta 文件(包含 uuid)使用 frontend-tester agent 截图验证:
task(subagent_type="frontend-tester")
预览地址:http://localhost:7456/
curl.exe 而非 curl(PowerShell 别名问题)tools
Cocos Creator 2.4.x 场景/预制体命令行工具,支持读写 .fire/.prefab、JSON 生成 UI、截图预览
development
查询公网IP地址的地理位置信息,包括国家、省份、城市、ISP、时区等
tools
Cocos Creator 有限状态机 (FSM) 实现,用于管理游戏对象的状态转换
tools
Cocos Creator 2.4.x 粒子系统修饰器开发框架。用于创建、使用和调试自定义粒子修饰器,支持修改粒子位置、颜色、大小、旋转、速度等属性。当需要在 Cocos Creator 中实现复杂的粒子效果控制时使用此技能。