TRAE_SKILLS.md 15 KB

Trae Skills for UniApp Migration (Granular)

UniApp 迁移技能 (细粒度)

This document contains highly granular skills derived from WX_TO_UNIAPP_RULES.md for precise context injection in Trae. 本文档包含源自 WX_TO_UNIAPP_RULES.md 的高细粒度技能,用于 Trae 的精准上下文注入。

Skill: File Extension & Project Structure Migration

技能:文件扩展名与项目结构迁移

Description: Rules for converting file types and mapping project configuration. (文件类型转换与项目配置映射规则) Instructions:

  1. File Merging (文件合并):
    • Merge .wxml, .wxss, and .js into a single .vue file. (将 .wxml, .wxss, .js 合并为单个 .vue 文件)
    • .wxml content goes into <template>. (.wxml 内容放入 )
    • .wxss content goes into <style lang="scss">. (.wxss 内容放入 )
    • .js content goes into <script setup lang="ts">. (.js 内容放入