# officecli - Doramagic AI Context Pack

> 定位：安装前体验与判断资产。它帮助宿主 AI 有一个好的开始，但不代表已经安装、执行或验证目标项目。

## 充分原则

- **充分原则，不是压缩原则**：AI Context Pack 应该充分到让宿主 AI 在开工前理解项目价值、能力边界、使用入口、风险和证据来源；它可以分层组织，但不以最短摘要为目标。
- **压缩策略**：只压缩噪声和重复内容，不压缩会影响判断和开工质量的上下文。

## 给宿主 AI 的使用方式

你正在读取 Doramagic 为 officecli 编译的 AI Context Pack。请把它当作开工前上下文：帮助用户理解适合谁、能做什么、如何开始、哪些必须安装后验证、风险在哪里。不要声称你已经安装、运行或执行了目标项目。

## Claim 消费规则

- **事实来源**：Repo Evidence + Claim/Evidence Graph；Human Wiki 只提供显著性、术语和叙事结构。
- **事实最低状态**：`supported`
- `supported`：可以作为项目事实使用，但回答中必须引用 claim_id 和证据路径。
- `weak`：只能作为低置信度线索，必须要求用户继续核实。
- `inferred`：只能用于风险提示或待确认问题，不能包装成项目事实。
- `unverified`：不得作为事实使用，应明确说证据不足。
- `contradicted`：必须展示冲突来源，不得替用户强行选择一个版本。

## 它最适合谁

- **AI 研究者或研究型 Agent 构建者**：README 明确围绕研究、实验或论文工作流展开。 证据：`README.md` Claim：`clm_0003` supported 0.86
- **正在使用 Claude/Codex/Cursor/Gemini 等宿主 AI 的开发者**：README 或插件配置提到多个宿主 AI。 证据：`README.md` Claim：`clm_0004` supported 0.86
- **希望把专业流程带进宿主 AI 的用户**：仓库包含 Skill 文档。 证据：`skills/morph-ppt/SKILL.md`, `skills/morph-ppt-3d/SKILL.md`, `skills/officecli-academic-paper/SKILL.md`, `skills/officecli-data-dashboard/SKILL.md` 等 Claim：`clm_0005` supported 0.86

## 它能做什么

- **AI Skill / Agent 指令资产库**（可做安装前预览）：项目包含可被宿主 AI 读取的 Skill 或 Agent 指令文件，可用于把专业流程带入 Claude、Codex、Cursor 等宿主。 证据：`skills/morph-ppt/SKILL.md`, `skills/morph-ppt-3d/SKILL.md`, `skills/officecli-academic-paper/SKILL.md`, `skills/officecli-data-dashboard/SKILL.md` 等 Claim：`clm_0001` supported 0.86
- **命令行启动或安装流程**（需要安装后验证）：项目文档中存在可执行命令，真实使用需要在本地或宿主环境中运行这些命令。 证据：`README.md` Claim：`clm_0002` supported 0.86

## 怎么开始

- `curl -fsSL https://officecli.ai/SKILL.md` 证据：`README.md` Claim：`clm_0006` supported 0.86, `clm_0008` supported 0.86
- `curl -fsSL https://raw.githubusercontent.com/iOfficeAI/OfficeCLI/main/install.sh | bash` 证据：`README.md` Claim：`clm_0007` supported 0.86
- `curl -fsSL https://officecli.ai/SKILL.md -o ~/.claude/skills/officecli.md` 证据：`README.md` Claim：`clm_0008` supported 0.86

## 继续前判断卡

- **当前建议**：先做研究框架试用
- **为什么**：这个项目面向研究工作流，核心风险是资料可信度和输出质量；先用 Prompt Preview 验证研究框架，再在隔离环境试装。

### 30 秒判断

- **现在怎么做**：先做研究框架试用
- **最小安全下一步**：先用 Prompt Preview 验证研究框架；满意后再隔离试装
- **先别相信**：研究结论、引用和实验结果不能在安装前相信。
- **继续会触碰**：研究判断、命令执行、宿主 AI 配置

### 现在可以相信

- **适合人群线索：AI 研究者或研究型 Agent 构建者**（supported）：有 supported claim 或项目证据支撑，但仍不等于真实安装效果。 证据：`README.md` Claim：`clm_0003` supported 0.86
- **适合人群线索：正在使用 Claude/Codex/Cursor/Gemini 等宿主 AI 的开发者**（supported）：有 supported claim 或项目证据支撑，但仍不等于真实安装效果。 证据：`README.md` Claim：`clm_0004` supported 0.86
- **适合人群线索：希望把专业流程带进宿主 AI 的用户**（supported）：有 supported claim 或项目证据支撑，但仍不等于真实安装效果。 证据：`skills/morph-ppt/SKILL.md`, `skills/morph-ppt-3d/SKILL.md`, `skills/officecli-academic-paper/SKILL.md`, `skills/officecli-data-dashboard/SKILL.md` 等 Claim：`clm_0005` supported 0.86
- **能力存在：AI Skill / Agent 指令资产库**（supported）：可以相信项目包含这类能力线索；是否适合你的具体任务仍要试用或安装后验证。 证据：`skills/morph-ppt/SKILL.md`, `skills/morph-ppt-3d/SKILL.md`, `skills/officecli-academic-paper/SKILL.md`, `skills/officecli-data-dashboard/SKILL.md` 等 Claim：`clm_0001` supported 0.86
- **能力存在：命令行启动或安装流程**（supported）：可以相信项目包含这类能力线索；是否适合你的具体任务仍要试用或安装后验证。 证据：`README.md` Claim：`clm_0002` supported 0.86
- **存在 Quick Start / 安装命令线索**（supported）：可以相信项目文档出现过启动或安装入口；不要因此直接在主力环境运行。 证据：`README.md` Claim：`clm_0006` supported 0.86, `clm_0008` supported 0.86

### 现在还不能相信

- **研究结论、引用和实验结果不能在安装前相信。**（unverified）：研究 Skill 可以组织问题和路径，但不能替代真实资料检索、论文核验和实验复现。
- **是否适合你的具体研究领域不能直接相信。**（unverified）：Skill 覆盖很多研究主题，不代表对你的领域、资料要求和可信度标准足够。
- **真实输出质量不能在安装前相信。**（unverified）：Prompt Preview 只能展示引导方式，不能证明真实项目中的结果质量。
- **宿主 AI 版本兼容性不能在安装前相信。**（unverified）：Claude、Cursor、Codex、Gemini 等宿主加载规则和版本差异必须在真实环境验证。
- **不会污染现有宿主 AI 行为，不能直接相信。**（inferred）：Skill、plugin、AGENTS/CLAUDE/GEMINI 指令可能改变宿主 AI 的默认行为。 证据：`SKILL.md`, `skills/morph-ppt-3d/SKILL.md`, `skills/morph-ppt/SKILL.md`, `skills/officecli-academic-paper/SKILL.md` 等
- **可安全回滚不能默认相信。**（unverified）：除非项目明确提供卸载和恢复说明，否则必须先在隔离环境验证。
- **真实安装后是否与用户当前宿主 AI 版本兼容？**（unverified）：兼容性只能通过实际宿主环境验证。
- **项目输出质量是否满足用户具体任务？**（unverified）：安装前预览只能展示流程和边界，不能替代真实评测。

### 继续会触碰什么

- **研究判断**：问题拆解、资料路径、实验路径、结论结构和可信度判断。 原因：研究型 Skill 可能让输出看起来更专业，但不能替代真实证据核验。
- **命令执行**：包管理器、网络下载、本地插件目录、项目配置或用户主目录。 原因：运行第一条命令就可能产生环境改动；必须先判断是否值得跑。 证据：`README.md`
- **宿主 AI 配置**：Claude/Codex/Cursor/Gemini/OpenCode 等宿主的 plugin、Skill 或规则加载配置。 原因：宿主配置会改变 AI 后续工作方式，可能和用户已有规则冲突。 证据：`SKILL.md`, `skills/morph-ppt-3d/SKILL.md`, `skills/morph-ppt/SKILL.md`, `skills/officecli-academic-paper/SKILL.md` 等
- **本地环境或项目文件**：安装结果、插件缓存、项目配置或本地依赖目录。 原因：安装前无法证明写入范围和回滚方式，需要隔离验证。 证据：`README.md`
- **宿主 AI 上下文**：AI Context Pack、Prompt Preview、Skill 路由、风险规则和项目事实。 原因：导入上下文会影响宿主 AI 后续判断，必须避免把未验证项包装成事实。

### 最小安全下一步

- **先跑 Prompt Preview**：先验证它能否正确界定研究问题和证据边界，不要先相信研究输出。（适用：任何项目都适用，尤其是输出质量未知时。）
- **只在隔离目录或测试账号试装**：避免安装命令污染主力宿主 AI、真实项目或用户主目录。（适用：存在命令执行、插件配置或本地写入线索时。）
- **先备份宿主 AI 配置**：Skill、plugin、规则文件可能改变 Claude/Cursor/Codex 的默认行为。（适用：存在插件 manifest、Skill 或宿主规则入口时。）
- **安装后只验证一个最小任务**：先验证加载、兼容、输出质量和回滚，再决定是否深用。（适用：准备从试用进入真实工作流时。）

### 退出方式

- **保留安装前状态**：记录原始宿主配置和项目状态，后续才能判断是否可恢复。
- **准备移除宿主 plugin / Skill / 规则入口**：如果试装后行为异常，可以把宿主 AI 恢复到试装前状态。
- **保留资料和结论核验清单**：如果后续发现引用或实验路径不可靠，可以回到证据边界阶段重新校验。
- **记录安装命令和写入路径**：没有明确卸载说明时，至少要知道哪些目录或配置需要手动清理。
- **如果没有回滚路径，不进入主力环境**：不可回滚是继续前阻断项，不应靠信任或运气继续。

## 哪些只能预览

- 解释项目适合谁和能做什么
- 基于项目文档演示典型对话流程
- 帮助用户判断是否值得安装或继续研究

## 哪些必须安装后验证

- 真实安装 Skill、插件或 CLI
- 执行脚本、修改本地文件或访问外部服务
- 验证真实输出质量、性能和兼容性

## 边界与风险判断卡

- **把安装前预览误认为真实运行**：用户可能高估项目已经完成的配置、权限和兼容性验证。 处理方式：明确区分 prompt_preview_can_do 与 runtime_required。 Claim：`clm_0009` inferred 0.45
- **命令执行会修改本地环境**：安装命令可能写入用户主目录、宿主插件目录或项目配置。 处理方式：先在隔离环境或测试账号中运行。 证据：`README.md` Claim：`clm_0010` supported 0.86
- **待确认**：真实安装后是否与用户当前宿主 AI 版本兼容？。原因：兼容性只能通过实际宿主环境验证。
- **待确认**：项目输出质量是否满足用户具体任务？。原因：安装前预览只能展示流程和边界，不能替代真实评测。
- **待确认**：安装命令是否需要网络、权限或全局写入？。原因：这影响企业环境和个人环境的安装风险。

## 开工前工作上下文

### 加载顺序

- 先读取 how_to_use.host_ai_instruction，建立安装前判断资产的边界。
- 读取 claim_graph_summary，确认事实来自 Claim/Evidence Graph，而不是 Human Wiki 叙事。
- 再读取 intended_users、capabilities 和 quick_start_candidates，判断用户是否匹配。
- 需要执行具体任务时，优先查 role_skill_index，再查 evidence_index。
- 遇到真实安装、文件修改、网络访问、性能或兼容性问题时，转入 risk_card 和 boundaries.runtime_required。

### 任务路由

- **AI Skill / Agent 指令资产库**：先基于 role_skill_index / evidence_index 帮用户挑选可用角色、Skill 或工作流。 边界：可做安装前 Prompt 体验。 证据：`skills/morph-ppt/SKILL.md`, `skills/morph-ppt-3d/SKILL.md`, `skills/officecli-academic-paper/SKILL.md`, `skills/officecli-data-dashboard/SKILL.md` 等 Claim：`clm_0001` supported 0.86
- **命令行启动或安装流程**：先说明这是安装后验证能力，再给出安装前检查清单。 边界：必须真实安装或运行后验证。 证据：`README.md` Claim：`clm_0002` supported 0.86

### 上下文规模

- 文件总数：984
- 重要文件覆盖：40/984
- 证据索引条目：80
- 角色 / Skill 条目：10

### 证据不足时的处理

- **missing_evidence**：说明证据不足，要求用户提供目标文件、README 段落或安装后验证记录；不要补全事实。
- **out_of_scope_request**：说明该任务超出当前 AI Context Pack 证据范围，并建议用户先查看 Human Manual 或真实安装后验证。
- **runtime_request**：给出安装前检查清单和命令来源，但不要替用户执行命令或声称已执行。
- **source_conflict**：同时展示冲突来源，标记为待核实，不要强行选择一个版本。

## Prompt Recipes

### 适配判断

- 目标：判断这个项目是否适合用户当前任务。
- 预期输出：适配结论、关键理由、证据引用、安装前可预览内容、必须安装后验证内容、下一步建议。

```text
请基于 officecli 的 AI Context Pack，先问我 3 个必要问题，然后判断它是否适合我的任务。回答必须包含：适合谁、能做什么、不能做什么、是否值得安装、证据来自哪里。所有项目事实必须引用 evidence_refs、source_paths 或 claim_id。
```

### 安装前体验

- 目标：让用户在安装前感受核心工作流，同时避免把预览包装成真实能力或营销承诺。
- 预期输出：一段带边界标签的体验剧本、安装后验证清单和谨慎建议；不含真实运行承诺或强营销表述。

```text
请把 officecli 当作安装前体验资产，而不是已安装工具或真实运行环境。

请严格输出四段：
1. 先问我 3 个必要问题。
2. 给出一段“体验剧本”：用 [安装前可预览]、[必须安装后验证]、[证据不足] 三种标签展示它可能如何引导工作流。
3. 给出安装后验证清单：列出哪些能力只有真实安装、真实宿主加载、真实项目运行后才能确认。
4. 给出谨慎建议：只能说“值得继续研究/试装”“先补充信息后再判断”或“不建议继续”，不得替项目背书。

硬性边界：
- 不要声称已经安装、运行、执行测试、修改文件或产生真实结果。
- 不要写“自动适配”“确保通过”“完美适配”“强烈建议安装”等承诺性表达。
- 如果描述安装后的工作方式，必须使用“如果安装成功且宿主正确加载 Skill，它可能会……”这种条件句。
- 体验剧本只能写成“示例台词/假设流程”：使用“可能会询问/可能会建议/可能会展示”，不要写“已写入、已生成、已通过、正在运行、正在生成”。
- Prompt Preview 不负责给安装命令；如用户准备试装，只能提示先阅读 Quick Start 和 Risk Card，并在隔离环境验证。
- 所有项目事实必须来自 supported claim、evidence_refs 或 source_paths；inferred/unverified 只能作风险或待确认项。

```

### 角色 / Skill 选择

- 目标：从项目里的角色或 Skill 中挑选最匹配的资产。
- 预期输出：候选角色或 Skill 列表，每项包含适用场景、证据路径、风险边界和是否需要安装后验证。

```text
请读取 role_skill_index，根据我的目标任务推荐 3-5 个最相关的角色或 Skill。每个推荐都要说明适用场景、可能输出、风险边界和 evidence_refs。
```

### 风险预检

- 目标：安装或引入前识别环境、权限、规则冲突和质量风险。
- 预期输出：环境、权限、依赖、许可、宿主冲突、质量风险和未知项的检查清单。

```text
请基于 risk_card、boundaries 和 quick_start_candidates，给我一份安装前风险预检清单。不要替我执行命令，只说明我应该检查什么、为什么检查、失败会有什么影响。
```

### 宿主 AI 开工指令

- 目标：把项目上下文转成一次对话开始前的宿主 AI 指令。
- 预期输出：一段边界明确、证据引用明确、适合复制给宿主 AI 的开工前指令。

```text
请基于 officecli 的 AI Context Pack，生成一段我可以粘贴给宿主 AI 的开工前指令。这段指令必须遵守 not_runtime=true，不能声称项目已经安装、运行或产生真实结果。
```

## 角色 / Skill 索引

- 共索引 10 个角色 / Skill / 项目文档条目。

- **morph-ppt-3d**（skill）：3D Morph PPT — extends morph-ppt with GLB model insertion, cinematographic camera, model-content layout, and enriched visual design system. 激活提示：当用户任务与“morph-ppt-3d”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`skills/morph-ppt-3d/SKILL.md`
- **morph-ppt**（skill）：Use this skill when the user wants a .pptx with smooth cross-slide animation — PowerPoint Morph transitions, Keynote-style continuous motion, shapes that grow / move / rotate as the slide advances. Trigger on: 'morph', 'morph transition', 'smooth transition', 'continuous animation across slides', 'Keynote-style transition', 'animated slide sequence', 'shape continuity across slides'. Output is a single .pptx. This s… 激活提示：当用户任务与“morph-ppt”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`skills/morph-ppt/SKILL.md`
- **officecli-academic-paper**（skill）：Use this skill to build academic-style .docx output: journal / conference / thesis chapters carrying formal citation style APA, Chicago, IEEE, MLA , numbered equations, figure & table cross-references, footnotes/endnotes, bibliography, or multi-column journal layout. Trigger on: 'research paper', 'journal paper', 'conference paper', 'manuscript', 'thesis', 'APA', 'MLA', 'Chicago', 'IEEE two-column', 'bibliography',… 激活提示：当用户任务与“officecli-academic-paper”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`skills/officecli-academic-paper/SKILL.md`
- **officecli-data-dashboard**（skill）：Use this skill to build a multi-element Excel dashboard — Dashboard sheet on open, multiple formula-driven KPI cards, multiple charts, sparklines, and conditional formatting — from CSV or tabular input. Trigger on: 'dashboard', 'KPI dashboard', 'analytics dashboard', 'executive dashboard', 'metrics dashboard', 'CSV to dashboard', 'data visualization'. Output is a single .xlsx. Scene-layer on officecli-xlsx: inherits… 激活提示：当用户任务与“officecli-data-dashboard”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`skills/officecli-data-dashboard/SKILL.md`
- **officecli-docx**（skill）：Use this skill any time a .docx file is involved -- as input, output, or both. This includes: creating Word documents, reports, letters, memos, or proposals; reading, parsing, or extracting text from any .docx file; editing, modifying, or updating existing documents; working with templates, tracked changes, comments, headers/footers, or tables of contents. Trigger whenever the user mentions 'Word doc', 'document', '… 激活提示：当用户任务与“officecli-docx”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`skills/officecli-docx/SKILL.md`
- **officecli-financial-model**（skill）：Use this skill when the user wants to build a financial model — 3-statement model, DCF valuation, LBO, SaaS unit economics, sensitivity / scenario analysis, debt schedule, or fundraising projections — in Excel. Trigger on: 'financial model', '3-statement model', 'P&L + BS + CF', 'DCF', 'WACC', 'NPV', 'terminal value', 'LBO', 'debt schedule', 'cash sweep', 'MOIC', 'IRR / XIRR', 'sensitivity table', 'scenario analysis… 激活提示：当用户任务与“officecli-financial-model”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`skills/officecli-financial-model/SKILL.md`
- **officecli-pitch-deck**（skill）：Use this skill when the user is building a fundraising / investor pitch deck — seed, Series A / B / C, convertible note, SAFE round, strategic raise. Trigger on: 'pitch deck', 'investor deck', 'Series A deck', 'Series B deck', 'Series C deck', 'fundraising deck', 'seed pitch', 'VC deck', 'raising capital', 'term sheet presentation'. Output is a single .pptx. This skill is a scene layer on top of officecli-pptx — inh… 激活提示：当用户任务与“officecli-pitch-deck”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`skills/officecli-pitch-deck/SKILL.md`
- **officecli-pptx**（skill）：Use this skill any time a .pptx file is involved -- as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx file; editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates, layouts, speaker notes, or comments. Trigger whenever the user mentions 'deck', 'slides', 'present… 激活提示：当用户任务与“officecli-pptx”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`skills/officecli-pptx/SKILL.md`
- **officecli-word-form**（skill）：Use this skill to create fillable Word forms .docx with real Content Controls SDT + legacy FormField checkboxes + MERGEFIELD mail-merge placeholders + document protection. Trigger on: 'fillable form', 'form fields', 'content controls', 'SDT', 'word form', 'fill in', 'only editable fields', 'protect document', 'onboarding form', 'HR intake', 'survey template', 'contract / SOW template', 'mail-merge template', 'compli… 激活提示：当用户任务与“officecli-word-form”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`skills/officecli-word-form/SKILL.md`
- **officecli-xlsx**（skill）：Use this skill any time a .xlsx file is involved -- as input, output, or both. This includes: creating spreadsheets, financial models, dashboards, or trackers; reading, parsing, or extracting data from any .xlsx file; editing, modifying, or updating existing workbooks; working with formulas, charts, pivot tables, or templates; importing CSV/TSV data into Excel format. Trigger whenever the user mentions 'spreadsheet'… 激活提示：当用户任务与“officecli-xlsx”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`skills/officecli-xlsx/SKILL.md`

## 证据索引

- 共索引 80 条证据。

- **OfficeCLI**（documentation）：OfficeCLI is the world's first and the best Office suite designed for AI agents. 证据：`README.md`
- **OfficeCLI Examples**（documentation）：Comprehensive examples demonstrating OfficeCLI capabilities for Word, Excel, and PowerPoint automation. 证据：`examples/README.md`
- **officecli**（documentation）：CLI for reading and writing Office documents .docx , .xlsx , .pptx via a document DOM API. 证据：`npm/README.md`
- **schemas/**（documentation）：Agent-facing capability schemas for officecli. Single source of truth for what the CLI supports, consumed in three places: 证据：`schemas/README.md`
- **PowerPoint Style Templates**（documentation）：Professional presentation style templates for OfficeCLI. Each style includes a pre-generated .pptx file and reference build script. 证据：`examples/ppt/templates/README.md`
- **@officecli/sdk**（documentation）：A thin async Node.js client over officecli https://github.com/iOfficeAI/OfficeCLI 's resident pipe. It does one thing: forward a command to the running resident and hand back the response. There is no second vocabulary to learn — a command is the same object you'd put in an officecli batch list. 证据：`sdk/node/README.md`
- **officecli — Python SDK**（documentation）：A thin Python SDK for the officecli https://officecli.ai resident pipe . It does one thing: forward an officecli command to a running resident over its named pipe and hand back the response — no per-command process spawn, so a loop of edits is ~hundreds of times faster than shelling out to the CLI per command. 证据：`sdk/python/README.md`
- **officecli**（skill_instruction）：AI-friendly CLI for .docx, .xlsx, .pptx. Single binary, no dependencies, no Office installation needed. 证据：`SKILL.md`
- **Morph PPT — 3D Extension**（skill_instruction）：This skill extends morph-ppt . All morph-ppt rules naming, ghosting, design, verification apply in full. This file covers 3D-specific additions and an enriched design system combining morph-ppt aesthetics with concrete color palettes, font pairings, and layout quality guardrails. 证据：`skills/morph-ppt-3d/SKILL.md`
- **OfficeCLI Morph-PPT Skill**（skill_instruction）：This skill is a scene layer on top of officecli-pptx . Every pptx hard rule — visual delivery floor title ≥ 36pt / body ≥ 18pt / title ≥ 2× body , 12-column grid on 33.87×19.05cm, canonical palettes, chart-choice decision table, connector canon, shell escape, resident + batch, Delivery Gate 1–5a — is inherited, not re-taught. This file adds only what Morph needs on top: cross-slide shape-name binding, Scene Actors vs content prefixing, ghost discipline, transition=morph CLI quirks, 52-style visual library lookup, and a morph-specific fresh-eyes Gate 5b extension. 证据：`skills/morph-ppt/SKILL.md`
- **OfficeCLI Academic Paper Skill**（skill_instruction）：This skill is a scene layer on top of officecli-docx . Every docx hard rule — style architecture, heading hierarchy, shell quoting, break=newPage alias, belt-and-suspenders page breaks, live PAGE field, Delivery Gate, renderer quirks — is inherited, not re-taught. This file adds only what academic papers need on top: citation styles, equations, SEQ / PAGEREF cross-refs, multi-column journal layout, bibliography hanging indent, abstract/keywords/affiliation block. 证据：`skills/officecli-academic-paper/SKILL.md`
- **Data Dashboard scene-layer on officecli-xlsx**（skill_instruction）：Data Dashboard scene-layer on officecli-xlsx 证据：`skills/officecli-data-dashboard/SKILL.md`
- **OfficeCLI DOCX Skill**（skill_instruction）：- macOS / Linux : curl -fsSL https://d.officecli.ai/install.sh bash - Windows PowerShell : irm https://d.officecli.ai/install.ps1 iex 证据：`skills/officecli-docx/SKILL.md`
- **OfficeCLI Financial-Model Skill**（skill_instruction）：This skill is a scene layer on top of officecli-xlsx . Every xlsx hard rule — shell quoting, incremental execution, Help-First Rule, visual delivery floor, CFO 4-color code blue input / black formula / green cross-sheet / yellow-fill assumption , number-format standards years as text, zero as - , % one decimal, negatives in parens , assumption-cell discipline, CSV batch import, chart data-feed forms a/b/c , the 5-gate Delivery cycle, cache-drift guidance, Known Issues the cross-sheet ! trap, batch + resident for formulas, renderer caveats — is inherited, not re-taught . This file adds only what a financial model requires on top: three-zone architecture, 3 model-type recipes 3-statement / DC… 证据：`skills/officecli-financial-model/SKILL.md`
- **OfficeCLI Pitch Deck Skill**（skill_instruction）：This skill is a scene layer on top of officecli-pptx . Every pptx hard rule — visual delivery floor title ≥ 36pt / body ≥ 18pt / title ≥ 2× body , 12-column grid on 33.87×19.05cm, 4 canonical palettes, chart-choice decision table, connector canon shape / from / to / tailEnd=triangle , shell escape, resident + batch, Delivery Gate 1–5a — is inherited, not re-taught. This file adds only what fundraising needs on top: stage diagnosis A / B / C , 5 赛道 arc templates, 10 key-slide recipes cover / problem / solution / market / product / model / traction / team / financials / ask , pitch-specific numbers convention, a VC ship-check, and a pitch-specific fresh-eyes Gate 6. 证据：`skills/officecli-pitch-deck/SKILL.md`
- **OfficeCLI PPTX Skill**（skill_instruction）：- macOS / Linux : curl -fsSL https://d.officecli.ai/install.sh bash - Windows PowerShell : irm https://d.officecli.ai/install.ps1 iex 证据：`skills/officecli-pptx/SKILL.md`
- **OfficeCLI Word-Form Skill**（skill_instruction）：This skill is INDEPENDENT, not a scene layer on docx. A form's payload — controls, legacy fields, mail-merge, documentProtection — is a distinct element class from docx's paragraph/heading/style primitives. Its QA is different too: docx's Delivery Gate cares about visual layout and live PAGE fields, this skill's cares about data plumbing protection enforced / alias+tag / items injected / name ≤ 20 / no underscore anti-pattern . Reverse handoff: if the user's document has no fillable fields report, letter, memo, thesis, proposal , route to officecli-docx or a docx scene skill — don't use this one. 证据：`skills/officecli-word-form/SKILL.md`
- **OfficeCLI XLSX Skill**（skill_instruction）：- macOS / Linux : curl -fsSL https://d.officecli.ai/install.sh bash - Windows PowerShell : irm https://d.officecli.ai/install.ps1 iex 证据：`skills/officecli-xlsx/SKILL.md`
- **Package**（package_manifest）：{ "name": "@officecli/officecli", "version": "1.0.123", "description": "OfficeCLI — CLI for reading and writing Office documents .docx, .xlsx, .pptx via a document DOM API. The native binary is fetched on install for your platform.", "license": "Apache-2.0", "author": "goworm", "homepage": "https://github.com/iOfficeAI/OfficeCLI", "repository": { "type": "git", "url": "git+https://github.com/iOfficeAI/OfficeCLI.git" }, "bugs": { "url": "https://github.com/iOfficeAI/OfficeCLI/issues" }, "keywords": "office", "docx", "xlsx", "pptx", "word", "excel", "powerpoint", "ooxml", "cli" , "bin": { "officecli": "officecli.js" }, "main": "lib/install-binary.js", "exports": { ".": "./lib/install-binary.j… 证据：`npm/package.json`
- **Contributing to OfficeCLI**（documentation）：中文版 / Chinese version: CONTRIBUTING.zh.md ./CONTRIBUTING.zh.md 证据：`CONTRIBUTING.md`
- **Package**（package_manifest）：{ "name": "@officecli/sdk", "version": "0.1.2", "description": "Node.js SDK for officecli — a thin async client over the officecli resident pipe read/write .docx/.xlsx/.pptx .", "license": "Apache-2.0", "author": "goworm", "homepage": "https://github.com/iOfficeAI/OfficeCLI/tree/main/sdk/node", "repository": { "type": "git", "url": "git+https://github.com/iOfficeAI/OfficeCLI.git", "directory": "sdk/node" }, "bugs": { "url": "https://github.com/iOfficeAI/OfficeCLI/issues" }, "keywords": "officecli", "office", "docx", "xlsx", "pptx", "word", "excel", "powerpoint", "ooxml", "sdk" , "main": "index.js", "types": "index.d.ts", "files": "index.js", "index.d.ts", "README.md" , "engines": { "node":… 证据：`sdk/node/package.json`
- **License**（source_file）：Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ 证据：`LICENSE`
- **Dev Install**（source_file）：set -e SCRIPT DIR="$ cd "$ dirname "$0" " && pwd " PROJECT="$SCRIPT DIR/src/officecli/officecli.csproj" BINARY NAME="officecli" OS=$ uname -s tr ' :upper: ' ' :lower: ' ARCH=$ uname -m case "$OS" in darwin case "$ARCH" in arm64 RID="osx-arm64" ;; x86 64 RID="osx-x64" ;; echo "Unsupported architecture: $ARCH"; exit 1 ;; esac ;; linux LIBC="gnu" if command -v ldd /dev/null 2 &1 && ldd --version 2 &1 grep -qi musl; then LIBC="musl" elif -f /etc/alpine-release ; then LIBC="musl" fi case "$ARCH" in x86 64 if "$LIBC" = "musl" ; then RID="linux-musl-x64"; else RID="linux-x64"; fi ;; aarch64 arm64 if "$LIBC" = "musl" ; then RID="linux-musl-arm64"; else RID="linux-arm64"; fi ;; echo "Unsupported arc… 证据：`dev-install.sh`
- **Mirror primary, github fallback. The mirror is exercised first so issues**（source_file）：$repo = "iOfficeAI/OfficeCLI" $asset = "officecli-win-x64.exe" $binary = "officecli.exe" 证据：`install.ps1`
- **Resolve the latest tag up-front so we download from the IMMUTABLE versioned**（source_file）：set -e REPO="iOfficeAI/OfficeCLI" BINARY NAME="officecli" MIRROR BASE="https://d.officecli.ai" GITHUB RELEASE BASE="https://github.com/$REPO/releases/latest/download" GITHUB RAW BASE="https://raw.githubusercontent.com/$REPO/main" fetch with fallback { local primary="$1" fallback="$2" out="$3" if curl -fsSL --max-time 300 --connect-timeout 5 "$primary" -o "$out" 2 /dev/null; then echo " via mirror " return 0 fi echo " mirror unreachable, falling back to github..." curl -fsSL --max-time 300 "$fallback" -o "$out" 2 /dev/null } resolve version { local url url=$ curl -fsSL --max-time 30 --connect-timeout 5 -o /dev/null -w '%{url effective}' \ "$MIRROR BASE/releases/latest" 2 /dev/null case "$url… 证据：`install.sh`
- **Pivot Tables**（source_file）：FILE = os.path.join os.path.dirname os.path.abspath file , "pivot-tables.xlsx" ⋮---- def add sheet name ⋮---- def pivot sheet, props ⋮---- data items = ⋮---- rows = C = "ABCDEFGHIJ" 证据：`examples/excel/pivot-tables.py`
- **Animations**（source_file）：FILE = os.path.join os.path.dirname os.path.abspath file , "animations.pptx" ⋮---- def add slide props ⋮---- def add shape slide, props ⋮---- def add anim slide, shape, props ⋮---- def setp path, props ⋮---- def card slide, text, fill, x, y ⋮---- entrances = items = sh = 2 ⋮---- exits = ⋮---- props = dict effect=eff, cls="exit", duration=dur ⋮---- emphases = ⋮---- paths = ⋮---- props = {"cls": "motion", "path": path, "duration": "1000"} ⋮---- def ellipse text, fill, x, size="13" 证据：`examples/ppt/animations.py`
- **Document Formatting**（source_file）：FILE = os.path.join os.path.dirname os.path.abspath file , "document-formatting.docx" ⋮---- def doc set props ⋮---- def para text, props ⋮---- node = doc.send {"command": "get", "path": "/"} fmt = node.get "data", {} .get "results", {} 0 .get "format", {} ⋮---- r = subprocess.run "officecli", "validate", FILE , capture output=True, text=True 证据：`examples/word/document-formatting.py`
- **Commandbuilder**（source_file）：static partial class CommandBuilder ⋮---- public static RootCommand BuildRootCommand ⋮---- var rootCommand = new RootCommand """ ⋮---- rootCommand.Add jsonOption ; ⋮---- var openCommand = new Command "open", "Start a resident process to keep the document in memory for faster subsequent commands" ; openCommand.Add openFileArg ; openCommand.Add jsonOption ; ⋮---- openCommand.SetAction result = { var json = result.GetValue jsonOption ; return SafeRun = ⋮---- var file = result.GetValue openFileArg !; ⋮---- if ResidentClient.TryConnect filePath, out ⋮---- ResidentClient.SendSetIdleTimeout filePath, DefaultOpenIdleSeconds ; ⋮---- if json Console.WriteLine OutputFormatter.WrapEnvelopeText msg ; el… 证据：`src/officecli/CommandBuilder.cs`
- **Batchexecutor**（source_file）：public static class BatchExecutor ⋮---- public static string ExecuteBatch IDocumentHandler handler, string itemsJson, bool json, bool stopOnError = false ⋮---- var items = JsonSerializer.Deserialize itemsJson, BatchJsonContext.Default.ListBatchItem ?? new List ; ⋮---- var results = CommandBuilder.RunNonResidentBatch handler, items, stopOnError, json, unrecognizedLatex ; ⋮---- CommandBuilder.PrintBatchResults results, json, items.Count, sw ; var inner = sw.ToString .TrimEnd '\n', '\r' ; ⋮---- warnings.Add new CliWarning ⋮---- var success = results.Count == 0 !results.Any r = !r.Success ; return OutputFormatter.WrapEnvelope inner, warnings, success ; ⋮---- public static string ExecuteSend IDo… 证据：`src/officecli/Core/BatchExecutor.cs`
- **Templatemerger**（source_file）：internal static class TemplateMerger ⋮---- private static readonly Regex PlaceholderPattern = new @"\{\{\s \w \w.\-\ \ ? \s \}\}", RegexOptions.Compiled ; ⋮---- public static Dictionary ParseMergeData string dataArg ⋮---- if dataArg.EndsWith ".json", StringComparison.OrdinalIgnoreCase && File.Exists dataArg ⋮---- jsonText = File.ReadAllText dataArg ; ⋮---- var jsonNode = JsonNode.Parse jsonText ?? throw new CliException "Invalid JSON data: parsed to null" ⋮---- throw new CliException "JSON data must be an object not array or primitive " ⋮---- // Pass 2: flatten nested objects into dot paths "a"→{"b":"v"} → ⋮---- private static void FlattenArray JsonArray arr, string prefix, Dictionary data… 证据：`src/officecli/Core/TemplateMerger.cs`
- **Updatechecker**（source_file）：internal static class UpdateChecker ⋮---- internal static string ConfigDir = Path.Combine Environment.GetFolderPath Environment.SpecialFolder.UserProfile , ".officecli" ; private static string ConfigPath = Path.Combine ConfigDir, "config.json" ; ⋮---- internal static void CheckInBackground ⋮---- try { Directory.CreateDirectory ConfigDir ; } catch { } ⋮---- try { SkillInstaller.RefreshInstalled ; } catch { } ⋮---- internal static void RunRefresh ⋮---- try { Diagram.MermaidImageRenderer.RefreshCacheIfPresent ; } catch { } ⋮---- using var handler = new HttpClientHandler { AllowAutoRedirect = true }; using var client = new HttpClient handler ; ⋮---- client.Timeout = TimeSpan.FromSeconds 10 ; ⋮-… 证据：`src/officecli/Core/UpdateChecker.cs`
- **Watchnotifier**（source_file）：internal static class WatchNotifier ⋮---- private static readonly TimeSpan PipeTimeout = TimeSpan.FromSeconds 5 ; ⋮---- public static void NotifyIfWatching string filePath, WatchMessage message ⋮---- var pipeName = WatchServer.GetWatchPipeName filePath ; using var client = new NamedPipeClientStream ".", pipeName, PipeDirection.InOut ; client.Connect 100 ; ⋮---- var json = JsonSerializer.Serialize message, WatchMessageJsonContext.Default.WatchMessage ; ⋮---- using var writer = new StreamWriter client, new UTF8Encoding false , leaveOpen: true { AutoFlush = true }; writer.WriteLine json ; ⋮---- using var reader = new StreamReader client, new UTF8Encoding false , detectEncodingFromByteOrderMark… 证据：`src/officecli/Core/Watch/WatchNotifier.cs`
- **Watchserver**（source_file）：internal class WatchServer : IDisposable ⋮---- private readonly TcpListener tcpListener; ⋮---- private CancellationTokenSource cts = new ; ⋮---- private DateTime lastActivityTime = DateTime.UtcNow; private readonly TimeSpan idleTimeout; ⋮---- // Shared shutdown Task so every teardown entrypoint — idle watchdog, // unwatch command, SIGTERM/SIGINT, Dispose — converges on a single // ordered sequence. Before this, idle/unwatch just called // cts.Cancel and hoped the async chain would unwind; but // TcpListener.AcceptTcpClientAsync on macOS under .NET 10 does NOT // reliably honour the cancellation token, so the main loop would // hang indefinitely in await AcceptTcpClientAsync token and the //… 证据：`src/officecli/Core/Watch/WatchServer.cs`
- **Mcpserver**（source_file）：public static class McpServer ⋮---- public static async Task RunAsync ⋮---- using var reader = new StreamReader Console.OpenStandardInput ; using var writer = new StreamWriter Console.OpenStandardOutput { AutoFlush = true }; ⋮---- if string.IsNullOrEmpty Environment.GetEnvironmentVariable "OFFICECLI NO AUTO RESIDENT" Environment.SetEnvironmentVariable "OFFICECLI NO AUTO RESIDENT", "1" ; ⋮---- if string.IsNullOrEmpty Environment.GetEnvironmentVariable "OFFICECLI BATCH ALLOW STDIN REDIRECT" Environment.SetEnvironmentVariable "OFFICECLI BATCH ALLOW STDIN REDIRECT", "1" ; ⋮---- using var upgradeCts = new CancellationTokenSource ; ⋮---- var line = await reader.ReadLineAsync ; ⋮---- if string.IsN… 证据：`src/officecli/McpServer.cs`
- **Program**（source_file）：OfficeCli.Core.UpdateChecker.RunRefresh ; ⋮---- var tail = args.Skip 1 .ToArray ; ⋮---- : new { "help" }.Concat tail .ToArray ; ⋮---- var tail = args.Skip 2 .ToArray ; ⋮---- : new { "help", args 0 }.Concat tail .ToArray ; ⋮---- await OfficeCli.McpServer.RunAsync ; ⋮---- OfficeCli.McpInstaller.Install "list" ; ⋮---- return OfficeCli.McpInstaller.Uninstall args 2 ? 0 : 1; ⋮---- return OfficeCli.McpInstaller.Install args 1 ? 0 : 1; ⋮---- OfficeCli.CommandBuilder.WriteEarlyDispatchUsage "mcp", Console.Error ; ⋮---- return OfficeCli.Core.Installer.Run args.Skip 1 .ToArray ; ⋮---- OfficeCli.Core.SkillInstaller.ListSkills ; ⋮---- OfficeCli.Core.SkillInstaller.Install "install" ; ⋮---- var result =… 证据：`src/officecli/Program.cs`
- **Residentclient**（source_file）：public static class ResidentClient ⋮---- public static bool TryConnect string filePath, out string pipeName ⋮---- pipeName = ResidentServer.GetPipeName filePath ; ⋮---- using var client = new NamedPipeClientStream ".", pipeName + "-ping", PipeDirection.InOut ; client.Connect 100 ; ⋮---- var pingRequest = new ResidentRequest { Command = " ping " }; var json = System.Text.Json.JsonSerializer.Serialize pingRequest, ResidentJsonContext.Default.ResidentRequest ; ⋮---- if string.IsNullOrEmpty response.Stdout return false; var residentFilePath = Path.GetFullPath response.Stdout ; var requestedFilePath = Path.GetFullPath filePath ; return string.Equals residentFilePath, requestedFilePath, StringCom… 证据：`src/officecli/ResidentClient.cs`
- **Residentserver**（source_file）：public class ResidentServer : IDisposable ⋮---- private IDocumentHandler handler; ⋮---- private CancellationTokenSource mainCts = new ; private CancellationTokenSource pingCts = new ; private readonly SemaphoreSlim commandLock = new 1, 1 ; ⋮---- private TimeSpan CurrentIdleTimeout = TimeSpan.FromTicks Volatile.Read ref idleTimeoutTicks ; private CancellationTokenSource idleCts = new ; ⋮---- private CancellationTokenSource autosaveCts = new ; ⋮---- private static void LogStderr string message ⋮---- try { Console.Error.WriteLine message ; } catch IOException { } ⋮---- private static readonly TimeSpan DefaultIdleTimeout = TimeSpan.FromMinutes 12 ; ⋮---- private static TimeSpan ResolveIdleTimeo… 证据：`src/officecli/ResidentServer.cs`
- **为 OfficeCLI 贡献代码**（documentation）：English / 英文主文件: CONTRIBUTING.md ./CONTRIBUTING.md 证据：`CONTRIBUTING.zh.md`
- **OfficeCLI**（documentation）：OfficeCLI は世界初にして最高の、AI エージェント向けに設計された Office スイートです。 证据：`README_ja.md`
- **OfficeCLI**（documentation）：OfficeCLI는 세계 최초이자 최고의, AI 에이전트를 위해 설계된 Office 스위트입니다. 证据：`README_ko.md`
- **OfficeCLI**（documentation）：OfficeCLI 是全球首个、也是最好的专为 AI 智能体设计的 Office 套件。 证据：`README_zh.md`
- **Security Policy**（documentation）：OfficeCLI reads and writes .docx , .xlsx , and .pptx files, which may come from untrusted sources. If you discover a security vulnerability, please report it privately — do not open a public issue . 证据：`SECURITY.md`
- **OfficeCli Plugin Protocol**（documentation）：Status : v1 — final draft. No backward-compatibility goal; all plugins are pre-release and re-align with this document. Audience : Plugin authors and OfficeCli contributors. 证据：`plugins/plugin-protocol.md`
- **Cell Formatting Showcase**（documentation）：Exercises the full xlsx cell property surface — the single most-used Excel element. Three files work together: 证据：`examples/excel/cell-formatting.md`
- **charts — Master chart showcase**（documentation）：Generates charts.xlsx : eight chart types across four data sheets, built with the high-level officecli add --type chart command one add per chart . Each chart references its sheet data by cell range dataRange — or, where the source cells aren't contiguous, inline series / categories . 证据：`examples/excel/charts.md`
- **Advanced Charts Showcase**（documentation）：This demo consists of three files that work together: 证据：`examples/excel/charts/charts-advanced.md`
- **Area Charts Showcase**（documentation）：This demo consists of three files that work together: 证据：`examples/excel/charts/charts-area.md`
- **Bar Horizontal Charts Showcase**（documentation）：This demo consists of three files that work together: 证据：`examples/excel/charts/charts-bar.md`
- **Basic Charts Showcase**（documentation）：This demo consists of three files that work together: 证据：`examples/excel/charts/charts-basic.md`
- **Box-Whisker Chart Showcase**（documentation）：This demo consists of three files that work together: 证据：`examples/excel/charts/charts-boxwhisker.md`
- **Bubble Charts Showcase**（documentation）：This demo consists of three files that work together: 证据：`examples/excel/charts/charts-bubble.md`
- **Column Charts Showcase**（documentation）：This demo consists of three files that work together: 证据：`examples/excel/charts/charts-column.md`
- **Combo Charts Showcase**（documentation）：This demo consists of three files that work together: 证据：`examples/excel/charts/charts-combo.md`
- **Extended Chart Types Showcase**（documentation）：This demo consists of three files that work together: 证据：`examples/excel/charts/charts-extended.md`
- **Histogram Charts — Grand Showcase**（documentation）：The most thorough histogram demo officecli can produce. Every binning knob, every styling vocabulary, every canonical distribution shape, six design themes, four font-family type specimens, and a cohesive production-grade ML dashboard. 证据：`examples/excel/charts/charts-histogram.md`
- **Line Charts Showcase**（documentation）：This demo consists of three files that work together: 证据：`examples/excel/charts/charts-line.md`
- **Pie & Doughnut Charts Showcase**（documentation）：This demo consists of three files that work together: 证据：`examples/excel/charts/charts-pie.md`
- **Radar Charts Showcase**（documentation）：This demo consists of three files that work together: 证据：`examples/excel/charts/charts-radar.md`
- **Scatter Charts Showcase**（documentation）：This demo consists of three files that work together: 证据：`examples/excel/charts/charts-scatter.md`
- 其余 20 条证据见 `AI_CONTEXT_PACK.json` 或 `EVIDENCE_INDEX.json`。

## 宿主 AI 必须遵守的规则

- **把本资产当作开工前上下文，而不是运行环境。**：AI Context Pack 只包含证据化项目理解，不包含目标项目的可执行状态。 证据：`README.md`, `examples/README.md`, `npm/README.md`
- **回答用户时区分可预览内容与必须安装后才能验证的内容。**：安装前体验的消费者价值来自降低误装和误判，而不是伪装成真实运行。 证据：`README.md`, `examples/README.md`, `npm/README.md`

## 用户开工前应该回答的问题

- 你准备在哪个宿主 AI 或本地环境中使用它？
- 你只是想先体验工作流，还是准备真实安装？
- 你最在意的是安装成本、输出质量、还是和现有规则的冲突？

## 验收标准

- 所有能力声明都能回指到 evidence_refs 中的文件路径。
- AI_CONTEXT_PACK.md 没有把预览包装成真实运行。
- 用户能在 3 分钟内看懂适合谁、能做什么、如何开始和风险边界。

---

## Doramagic Context Augmentation

下面内容用于强化 Repomix/AI Context Pack 主体。Human Manual 只提供阅读骨架；踩坑日志会被转成宿主 AI 必须遵守的工作约束。

## Human Manual 骨架

使用规则：这里只是项目阅读路线和显著性信号，不是事实权威。具体事实仍必须回到 repo evidence / Claim Graph。

宿主 AI 硬性规则：
- 不得把页标题、章节顺序、摘要或 importance 当作项目事实证据。
- 解释 Human Manual 骨架时，必须明确说它只是阅读路线/显著性信号。
- 能力、安装、兼容性、运行状态和风险判断必须引用 repo evidence、source path 或 Claim Graph。

- **入门与安装**：importance `high`
  - source_paths: README.md, SKILL.md, install.sh, install.ps1, src/officecli/Program.cs
- **三层架构与 Resident / Batch 模式**：importance `high`
  - source_paths: src/officecli/ResidentServer.cs, src/officecli/ResidentClient.cs, src/officecli/CommandBuilder.cs, src/officecli/Core/BatchExecutor.cs, src/officecli/Core/Watch/WatchServer.cs
- **Skills、MCP、SDK 与插件扩展**：importance `high`
  - source_paths: skills/officecli/SKILL.md, skills/officecli-pptx/SKILL.md, skills/officecli-xlsx/SKILL.md, skills/officecli-docx/SKILL.md, skills/morph-ppt/SKILL.md
- **常用工作流与社区高频问题排查**：importance `high`
  - source_paths: src/officecli/Core/TemplateMerger.cs, src/officecli/Core/ResidentFlushPolicy.cs, examples/word/document-formatting.py, examples/excel/pivot-tables.py, examples/ppt/animations.py

## Repo Inspection Evidence / 源码检查证据

- repo_clone_verified: true
- repo_inspection_verified: true
- repo_commit: `a44ec508846956a54880d464e746c89b5d683c0d`
- inspected_files: `README.md`, `examples/README.md`, `examples/excel/cell-formatting.md`, `examples/excel/cell-formatting.py`, `examples/excel/charts/charts-advanced.md`, `examples/excel/charts/charts-advanced.py`, `examples/excel/charts/charts-area.md`, `examples/excel/charts/charts-area.py`, `examples/excel/charts/charts-bar.md`, `examples/excel/charts/charts-bar.py`, `examples/excel/charts/charts-basic.md`, `examples/excel/charts/charts-basic.py`, `examples/excel/charts/charts-boxwhisker.md`, `examples/excel/charts/charts-boxwhisker.py`, `examples/excel/charts/charts-bubble.md`, `examples/excel/charts/charts-bubble.py`, `examples/excel/charts/charts-column.md`, `examples/excel/charts/charts-column.py`, `examples/excel/charts/charts-combo.md`, `examples/excel/charts/charts-combo.py`

宿主 AI 硬性规则：
- 没有 repo_clone_verified=true 时，不得声称已经读过源码。
- 没有 repo_inspection_verified=true 时，不得把 README/docs/package 文件判断写成事实。
- 没有 quick_start_verified=true 时，不得声称 Quick Start 已跑通。

## Doramagic Pitfall Constraints / 踩坑约束

这些规则来自 Doramagic 发现、验证或编译过程中的项目专属坑点。宿主 AI 必须把它们当作工作约束，而不是普通说明文字。

### Constraint 1: 来源证据：[Bug] Encrypted/password-protected files report "File contains corrupted data" instead of being detected as encrypted

- Trigger: GitHub 社区证据显示该项目存在一个安装相关的待验证问题：[Bug] Encrypted/password-protected files report "File contains corrupted data" instead of being detected as encrypted
- Why it matters: 可能阻塞安装或首次运行。
- Evidence: community_evidence:github | https://github.com/iOfficeAI/OfficeCLI/issues/150 | 来源讨论提到 macos 相关条件，需在安装/试用前复核。
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 2: 来源证据：BOM in presentation.xml.rels causes blank slides in PowerPoint

- Trigger: GitHub 社区证据显示该项目存在一个维护/版本相关的待验证问题：BOM in presentation.xml.rels causes blank slides in PowerPoint
- Why it matters: 可能增加新用户试用和生产接入成本。
- Evidence: community_evidence:github | https://github.com/iOfficeAI/OfficeCLI/issues/162 | 来源类型 github_issue 暴露的待验证使用条件。
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 3: 来源证据：Docs: add a Windows / Git Bash (MSYS path-conversion) section to SKILL.md

- Trigger: GitHub 社区证据显示该项目存在一个安装相关的待验证问题：Docs: add a Windows / Git Bash (MSYS path-conversion) section to SKILL.md
- Host AI rule: 来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。
- Why it matters: 可能增加新用户试用和生产接入成本。
- Evidence: community_evidence:github | https://github.com/iOfficeAI/OfficeCLI/issues/164 | 来源讨论提到 windows 相关条件，需在安装/试用前复核。
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 4: 来源证据：[Windows] stdout pipe hangs ~30s when used via AI agent shell tools (OpenCode)

- Trigger: GitHub 社区证据显示该项目存在一个安装相关的待验证问题：[Windows] stdout pipe hangs ~30s when used via AI agent shell tools (OpenCode)
- Host AI rule: 来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。
- Why it matters: 可能增加新用户试用和生产接入成本。
- Evidence: community_evidence:github | https://github.com/iOfficeAI/OfficeCLI/issues/139 | 来源讨论提到 windows 相关条件，需在安装/试用前复核。
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 5: 来源证据：watch preview does not live-update for `batch` or `create` edits (ResidentServer.ExecuteBatch never calls NotifyWatch*)

- Trigger: GitHub 社区证据显示该项目存在一个安装相关的待验证问题：watch preview does not live-update for `batch` or `create` edits (ResidentServer.ExecuteBatch never calls NotifyWatch*)
- Host AI rule: 来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。
- Why it matters: 可能增加新用户试用和生产接入成本。
- Evidence: community_evidence:github | https://github.com/iOfficeAI/OfficeCLI/issues/169 | 来源讨论提到 macos 相关条件，需在安装/试用前复核。
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 6: 来源证据：中文自动编号在view的text模式下不识别导致fallback

- Trigger: GitHub 社区证据显示该项目存在一个安装相关的待验证问题：中文自动编号在view的text模式下不识别导致fallback
- Host AI rule: 来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。
- Why it matters: 可能增加新用户试用和生产接入成本。
- Evidence: community_evidence:github | https://github.com/iOfficeAI/OfficeCLI/issues/161 | 来源类型 github_issue 暴露的待验证使用条件。
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 7: 可能修改宿主 AI 配置

- Trigger: 项目面向 Claude/Cursor/Codex/Gemini/OpenCode 等宿主，或安装命令涉及用户配置目录。
- Host AI rule: 列出会写入的配置文件、目录和卸载/回滚步骤。
- Why it matters: 安装可能改变本机 AI 工具行为，用户需要知道写入位置和回滚方法。
- Evidence: capability.host_targets | https://news.ycombinator.com/item?id=48807225 | host_targets=claude_code, claude, cursor
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 8: 来源证据：view outline fails on WPS-created .docx with numeric style IDs, and ignores explicit outlineLvl

- Trigger: GitHub 社区证据显示该项目存在一个配置相关的待验证问题：view outline fails on WPS-created .docx with numeric style IDs, and ignores explicit outlineLvl
- Host AI rule: 来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。
- Why it matters: 可能增加新用户试用和生产接入成本。
- Evidence: community_evidence:github | https://github.com/iOfficeAI/OfficeCLI/issues/163 | 来源讨论提到 node 相关条件，需在安装/试用前复核。
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 9: 能力判断依赖假设

- Trigger: README/documentation is current enough for a first validation pass.
- Host AI rule: 将假设转成下游验证清单。
- Why it matters: 假设不成立时，用户拿不到承诺的能力。
- Evidence: capability.assumptions | https://news.ycombinator.com/item?id=48807225 | README/documentation is current enough for a first validation pass.
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 10: 来源证据：[Bug] DOCX: remove /footnote[@footnoteId=N] silently deletes the wrong footnote

- Trigger: GitHub 社区证据显示该项目存在一个维护/版本相关的待验证问题：[Bug] DOCX: remove /footnote[@footnoteId=N] silently deletes the wrong footnote
- Host AI rule: 来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。
- Why it matters: 可能增加新用户试用和生产接入成本。
- Evidence: community_evidence:github | https://github.com/iOfficeAI/OfficeCLI/issues/135 | 来源讨论提到 macos 相关条件，需在安装/试用前复核。
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。
