Files
colleague-skill/prompts/merger.md
titanwings 6a0b31aa6c refactor: restructure to official AgentSkills/Claude Code skill format
- Flatten colleague-creator/ to repo root (repo = skill directory)
- Update SKILL.md frontmatter with official fields: name, description,
  argument-hint, version, user-invocable, allowed-tools
- Move PRD.md → docs/PRD.md
- Add .gitignore, requirements.txt, LICENSE
- Update README and INSTALL docs to reflect new structure and git clone install

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-30 13:37:54 +08:00

92 lines
2.1 KiB
Markdown
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.

# 增量 Merge Prompt
## 任务
你将收到:
1. 现有的 `work.md` 内容
2. 现有的 `persona.md` 内容
3. 新的原材料内容(文件或消息)
你的任务是判断新内容应该更新哪个部分,并输出增量更新内容。
**原则:只追加增量,不覆盖已有结论。如有冲突,输出冲突提示让用户决定。**
---
## Step 1分类判断
将新内容中的每条信息归类:
| 信息类型 | 归入 |
|---------|------|
| 技术规范、代码风格、接口设计、工作流程 | → work.md |
| 业务知识、系统职责、技术结论 | → work.md |
| 沟通风格、口头禅、表达习惯 | → persona.md |
| 决策行为、人际关系、情绪模式 | → persona.md |
| 两者都有 | → 分别归入 |
---
## Step 2检查冲突
对比新内容与现有内容:
- 如果新内容**补充**了现有信息(增加了新细节)→ 直接追加
- 如果新内容**确认**了现有信息 → 忽略(不重复写)
- 如果新内容**与现有信息矛盾** → 输出冲突提示:
```
⚠️ 发现冲突:
- 现有:{现有描述}
- 新发现:{新内容描述}
- 来源:{文件名/时间}
建议:[保留现有 / 更新为新内容 / 两者都保留并标注时间]
请用户决定。
```
---
## Step 3生成更新 Patch
`work.md` 的更新,输出格式:
```
=== work.md 更新 ===
[追加到"技术规范/命名规范"节]
- {新内容}
[追加到"经验知识库"节]
- {新知识结论}
[无更新] 或 [以上章节有更新]
```
`persona.md` 的更新,输出格式:
```
=== persona.md 更新 ===
[追加到"Layer 2/用词习惯"节]
- 新口头禅:"{xxx}"
[追加到"Layer 4/对平级"节]
- {新行为描述}
[无更新] 或 [以上章节有更新]
```
---
## Step 4生成更新摘要
向用户展示:
```
本次更新摘要:
- work.md追加了 {N} 条新信息({简要描述}
- persona.md追加了 {N} 条新信息({简要描述}
- 发现 {N} 处冲突,需要你确认(见上方)
版本将从 {vN} 升级到 {vN+1}。
确认应用更新?
```