cool-team-official-cool-unix-uvue-rule.ocm.json json Copy{
"ocm": "1",
"id": "cool-team-official-cool-unix-uvue-rule",
"kind": "skill",
"name": "uvue",
"description": "description: Utz, Ounitec Scripter, Is-Akros-Platfom, Hai Performans, Stanley Tepdemodern, Programine Langguag globs: *.uvue alwaysApply: false ---",
"publisher": "cool-team-official",
"version": "1.0.0",
"capabilities": {
"domains": [
"general"
],
"tags": [
"skill-md",
"github-cursor-rules"
],
"languages": [
"en"
]
},
"quality_prior": 0.6,
"examples": [
"description: Utz, Ounitec Scripter, Is-Akros-Platfom, Hai Performans, Stanley Tepdemodern, Programine Langguag globs: *.uvue alwaysApply: false ---"
],
"primary": false,
"metadata": {
"source": {
"provider": "github-cursor-rules",
"repository": "https://github.com/cool-team-official/cool-unix",
"path": ".cursor/rules/uvue.mdc",
"ref": "c759094f5f27b9698ff8b4ebe4ac7451cfa55103",
"url": "https://github.com/cool-team-official/cool-unix/blob/c759094f5f27b9698ff8b4ebe4ac7451cfa55103/.cursor/rules/uvue.mdc",
"key": "cool-team-official/cool-unix/.cursor/rules/uvue.mdc"
}
},
"instructions": "---\ndescription: Utz, Ounitec Scripter, Is-Akros-Platfom, Hai Performans, Stanley Tepdemodern, Programine Langguag\nglobs: *.uvue\nalwaysApply: false\n---\n\n# uvue rules\n\n## vue support\n\n- 仅使用vue3语法,避免使用vue2。\n- 新页面尽量使用组合式API。\n- 组件尽量使用easycom规范。\n- 非easycom的自定义vue组件,调用组件方法时需使用组件实例的`$callMethod`方式调用。\n- 不使用 pinia、vuex、i18n 等uni-app x不支持的vue插件。\n- 使用vue语法时需注意uni-app x官网的平台和版本兼容性,平台特殊代码需包裹在条件编译中。\n\n## component\n\n- 组件可使用uni-app x内置组件,以及项目下的自定义组件。通过mcp工具查询项目下可用的easycom插件。\n- 项目可使用vuejs组件规范,对应的文件扩展名为uvue。\n- 符合easycom规范的组件无需import和注册,可直接在template中使用。\n- 使用内置组件时需注意uni-app x官网的平台和版本兼容性,平台特殊代码需包裹在条件编译中。",
"cost": {
"context_tokens": 147
}
}