Files
EPEEAIKit/.cursor/rules/common/profile-recall.mdc

26 lines
1.1 KiB
Plaintext
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.
---
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"的确认流程。