From 3b03f87a02458f719e2eb4bf112a13441b427d14 Mon Sep 17 00:00:00 2001 From: ‘chensiAb’ <‘chenchenco03@163.com’> Date: Tue, 25 Mar 2025 13:54:34 +0800 Subject: [PATCH] Merge branch 'master' of ssh://dev.zhiheiot.com:29418/mob-components --- _cursor.ai/文档说明.md | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 47 insertions(+), 0 deletions(-) diff --git "a/_cursor.ai/\346\226\207\346\241\243\350\257\264\346\230\216.md" "b/_cursor.ai/\346\226\207\346\241\243\350\257\264\346\230\216.md" new file mode 100644 index 0000000..3515ffc --- /dev/null +++ "b/_cursor.ai/\346\226\207\346\241\243\350\257\264\346\230\216.md" @@ -0,0 +1,47 @@ +# 文件夹介绍 + +## 1. rules 文件夹 + +rules 是指 AI 根据一定条件自动读取的工作环境设定,是我们控制项目代码生成质量的重要手段 + +### 1.1 规则类型:全局使用 `Always` + +所有的聊天(Agent、Ask、Edit)和 ctrl+k 编辑,都会参考此规则生成代码 + +- [系统角色](/src/components/_cursor.ai/rules/all-system-role.mdc) +- [项目介绍](/src/components/_cursor.ai/rules/all-project-info.mdc) +- [开发规范](/src/components/_cursor.ai/rules/all-dev-specification.mdc) + +### 1.2 规则类型:按路径匹配 `Auto-Attached` + +当文件名称或路径匹配上时,会参考此规则生成代码 + +- [请求集](/src/components/_cursor.ai/rules/type-fetchers.mdc) +- [数据控制器](/src/components/_cursor.ai/rules/type-pilot.mdc) +- [界面](/src/components/_cursor.ai/rules/type-surface.mdc) +- [子组件&公共组件](/src/components/_cursor.ai/rules/type-component.mdc) + +### 1.3 规则类型:自主决定 `Agent-Requested` + +在 Agent 模式下,由 AI 根据 Description 的文字描述,自主决定是否需要参考此规则生成代码 +非 Agent 模式需要我们自己 @ 此规则才能生效 + +- [请求集基类](/src/components/_cursor.ai/rules/fit-base-fetcher.mdc) +- [数据控制器基类](/src/components/_cursor.ai/rules/fit-base-pilot.mdc) +- 表单验证规则 + +## 2. prompts 文件夹 + +prompts 存放我们主动提出的指令 +和我们在聊天窗口要求 ai 完成工作一样,就是对需要经常执行的有具体要求的操作,存下来方便反复使用 + +## 3. 文档文件夹 + +公共组件库组件对应的文档 + +| 文档目录 | 对应的组件目录 | +| ------------- | ----------------------- | +| `common.doc` | src/components/common/ | +| `forms.doc` | src/components/forms/ | +| `layout.doc` | src/components/layout/ | +| `plugins.doc` | src/components/plugins/ | \ No newline at end of file -- Gitblit v1.9.1