Skip to content

AI turns documents or topics into real, native PowerPoint decks—with native shapes, transitions and animations, data-backed charts and tables on demand, audio narration from speaker notes, and support for your own .pptx templates. · by Hugo He

docs: 新增源内容自动处理规则,强制 AI 代理主动调用转换工具

hugohe34276610211e7
diff --git a/AGENTS.md b/AGENTS.md
index 0511c7d0..25590bfd 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -120,6 +120,50 @@ Optimizer_CRAP (可选)
---
+## 源内容自动处理(强制触发)
+
+### ⚠️ 强制规则:识别到源内容时必须立即调用工具
+
+当用户消息中出现以下内容时,**必须立即调用对应工具**,不得忽视或仅做文字回复:
+
+| 用户提供的内容 | 识别特征 | 必须调用的工具 | 示例命令 |
+| -------------- | -------- | -------------- | -------- |
+| **PDF 文件** | `.pdf` 扩展名或用户明确提及"PDF" | `pdf_to_md.py` | `python3 tools/pdf_to_md.py <文件路径>` |
+| **网页链接** | `http://` 或 `https://` 开头的 URL | `web_to_md.py` 或 `web_to_md.cjs` | `python3 tools/web_to_md.py <URL>` |
+| **已转换的 Markdown 文件** | `.md` 扩展名,在 `projects/` 目录下 | 直接使用 `view_file` 读取 | `view_file <路径>` |
+
+### 执行流程
+
+```
+用户提供 PDF/URL
+ │
+ ▼
+ 识别源内容类型
+ │
+ ├─ PDF → 立即运行 python3 tools/pdf_to_md.py <路径>
+ │
+ ├─ URL → 立即运行 python3 tools/web_to_md.py <URL>
+ │ (微信/高防站点用 node tools/web_to_md.cjs <URL>)
+ │
+ └─ Markdown → 使用 view_file 读取内容
+ │
+ ▼
+ 切换到 Strategist 角色,开始八项确认
+```
+
+### 禁止行为
+
+> ❌ **禁止**:用户提供 PDF/URL 后,仅回复"请问您是否需要我使用工具转换?"
+> ❌ **禁止**:用户提供 PDF/URL 后,仅解释工具的用法而不实际调用
+> ❌ **禁止**:等待用户明确说"请转换"才开始处理
+
+### 正确行为
+
+> ✅ **正确**:识别到 PDF/URL 后,立即调用工具转换,然后切换到 Strategist 开始内容分析
+> ✅ **正确**:工具执行完成后,读取转换结果,自动进入八项确认流程
+
+---
+
## 关键规则(必须遵守)
### 1. 策略师初次沟通(强制)