跨项目开发skill基础提交
This commit is contained in:
25
.cursor/rules/common/profile-recall.mdc
Normal file
25
.cursor/rules/common/profile-recall.mdc
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
description: 每次会话开始时读取用户画像和项目画像,将精简 Profile 注入上下文以指导 Agent 行为
|
||||
alwaysApply: true
|
||||
---
|
||||
|
||||
## 画像上下文注入
|
||||
|
||||
每次会话处理用户第一个任务前,执行以下操作:
|
||||
|
||||
1. 读取 `~/.cursor/profile/user-profile.md`(不存在则跳过)
|
||||
2. 读取 `.cursor/profile/project-profile.md`(不存在则跳过)
|
||||
3. 如文件存在且有实质内容(非空模板),将其内容作为背景知识纳入考量
|
||||
4. 在后续回复中,Agent 应自然地参考画像信息,无需显式引用
|
||||
|
||||
### 注意
|
||||
|
||||
- 画像信息是背景参考,不是硬性约束——当用户当前指令与画像冲突时,以当前指令为准
|
||||
- 不要在回复中提及"根据你的画像"之类的措辞,自然融入即可
|
||||
- 画像的记录和管理由 `profile-memory` Skill 负责,本 Rule 只负责读取和注入
|
||||
|
||||
## 被动检测提醒
|
||||
|
||||
Agent 在整个对话过程中应保持对画像信号的被动感知。
|
||||
当对话结束、用户的主线任务完成后,如果检测到了新的画像信息,
|
||||
应读取 `profile-memory` Skill 并执行其"操作 A"的确认流程。
|
||||
Reference in New Issue
Block a user