新增cursor初始化skill
This commit is contained in:
31
.cursor/rules/common/cursor-init-recall.mdc
Normal file
31
.cursor/rules/common/cursor-init-recall.mdc
Normal file
@@ -0,0 +1,31 @@
|
||||
---
|
||||
description: 当用户要求初始化/重置 .cursor 目录(新项目首次落地模板)时,引导 Agent 读取 cursor-init Skill 并按其流程执行
|
||||
globs:
|
||||
alwaysApply: false
|
||||
---
|
||||
|
||||
## .cursor 初始化触发
|
||||
|
||||
当用户表达以下意图之一时,读取并执行 `cursor-init` Skill:
|
||||
|
||||
**触发关键词**(匹配任意一条即可):
|
||||
|
||||
- "初始化cursor" / "初始化 cursor" / "cursor 初始化"
|
||||
- "重置 cursor" / "reset cursor"
|
||||
- "cursor init" / "init cursor"
|
||||
- "把复制过来的 .cursor 清理一下" / "按 baserule 归位一下"
|
||||
|
||||
**执行方式**:
|
||||
|
||||
1. 读取 `.cursor/skills/cursor-init/SKILL.md`
|
||||
2. 严格按 Skill 中的 0 → 6 阶段流程执行
|
||||
3. **稳定准确优先于 token 成本**:
|
||||
- 破坏性操作(删除、重置、移动)前必须给用户 dry-run 清单
|
||||
- 分类不清的文件必须逐条询问用户,不要猜
|
||||
- 开始前先执行 `git status` 并提醒用户 commit/stash
|
||||
4. 本 Skill 预期在新项目生命周期中只运行一次,但设计为幂等——重复运行在已干净状态下不应造成破坏
|
||||
|
||||
**不触发本 Skill 的情况**:
|
||||
|
||||
- 用户只是问"cursor 有什么 skill"——这是浏览需求,走 `epee-orchestrator` 的操作 A
|
||||
- 用户只是想初始化某个具体数据文件(比如"初始化画像")——这是对应 Skill 自己的流程(如 `profile-memory`),不涉及全局结构重置
|
||||
Reference in New Issue
Block a user