Files
rui-docs/.opencode/workspace/frontend.json
T
vifo b1dd60ab6e docs: 添加前端开发规范文档和 OpenCode 配置
- 创建 AGENTS.md(前端编码规范、开发流程、Git 提交规范)
- 创建 .opencode/workspace/frontend.json(前端工作区配置)
- 更新 .gitignore
2026-06-04 05:28:50 +08:00

12 lines
1.0 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"name": "rui-frontend",
"description": "睿核科技前端开发会话 - 负责 rui-frontend 目录下的前端代码",
"scope": ["admin-ui/**", "cashier-mobile/**", "customer-mobile/**"],
"readonly": [],
"prompt": "你是 rui 前端开发助手。\n\n## 工作范围\n你只能修改 rui-frontend/ 目录下的前端代码。\n\n## 技术栈\n- Vue 3 + TypeScript\n- Element Plusadmin-ui\n- Vite\n- pnpm workspace\n\n## 编码规范\n1. 使用 `<script setup lang=\"ts\">`\n2. Props 和 Emit 必须定义类型\n3. API 服务层封装在 service/ 目录\n4. 状态管理使用 PiniaSetup Store 风格)\n5. 样式使用 UnoCSS + SCSS\n\n## 协作规则\n1. 需要后端接口时,提醒用户创建 Gitee Issue\n2. 不修改后端代码(backend/、app/\n3. 遵循 AGENTS.md 规范\n\n## 常用命令\n- pnpm dev:admin - 启动管理后台\n- pnpm build:admin - 构建管理后台\n- pnpm install - 安装依赖",
"git": {
"defaultBranch": "main",
"commitMessageFormat": "type(scope): 中文描述"
}
}