# hope-agent - Doramagic AI Context Pack

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

## 充分原则

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

## 给宿主 AI 的使用方式

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

## Claim 消费规则

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

## 它最适合谁

- **正在使用 Claude/Codex/Cursor/Gemini 等宿主 AI 的开发者**：README 或插件配置提到多个宿主 AI。 证据：`README.md` Claim：`clm_0003` supported 0.86
- **希望把专业流程带进宿主 AI 的用户**：仓库包含 Skill 文档。 证据：`skills/email-draft/SKILL.md`, `skills/feishu/SKILL.md`, `skills/ha-browser/SKILL.md`, `skills/ha-code-review/SKILL.md` 等 Claim：`clm_0004` supported 0.86

## 它能做什么

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

## 怎么开始

- `curl -fsSL https://shiwenwen.github.io/hope-agent-linux-repo/pubkey.gpg | \` 证据：`README.md` Claim：`clm_0005` supported 0.86
- `git clone https://github.com/shiwenwen/hope-agent.git` 证据：`README.md` Claim：`clm_0006` supported 0.86

## 继续前判断卡

- **当前建议**：仅建议沙盒试装
- **为什么**：项目存在安装命令、宿主配置或本地写入线索，不建议直接进入主力环境，应先在隔离环境试装。

### 30 秒判断

- **现在怎么做**：仅建议沙盒试装
- **最小安全下一步**：先跑 Prompt Preview；若仍要安装，只在隔离环境试装
- **先别相信**：真实输出质量不能在安装前相信。
- **继续会触碰**：命令执行、宿主 AI 配置、本地环境或项目文件

### 现在可以相信

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

### 现在还不能相信

- **真实输出质量不能在安装前相信。**（unverified）：Prompt Preview 只能展示引导方式，不能证明真实项目中的结果质量。
- **宿主 AI 版本兼容性不能在安装前相信。**（unverified）：Claude、Cursor、Codex、Gemini 等宿主加载规则和版本差异必须在真实环境验证。
- **不会污染现有宿主 AI 行为，不能直接相信。**（inferred）：Skill、plugin、AGENTS/CLAUDE/GEMINI 指令可能改变宿主 AI 的默认行为。 证据：`AGENTS.md`, `CLAUDE.md`, `skills/email-draft/SKILL.md`, `skills/feishu/SKILL.md` 等
- **可安全回滚不能默认相信。**（unverified）：除非项目明确提供卸载和恢复说明，否则必须先在隔离环境验证。
- **真实安装后是否与用户当前宿主 AI 版本兼容？**（unverified）：兼容性只能通过实际宿主环境验证。
- **项目输出质量是否满足用户具体任务？**（unverified）：安装前预览只能展示流程和边界，不能替代真实评测。
- **安装命令是否需要网络、权限或全局写入？**（unverified）：这影响企业环境和个人环境的安装风险。 证据：`README.md`

### 继续会触碰什么

- **命令执行**：包管理器、网络下载、本地插件目录、项目配置或用户主目录。 原因：运行第一条命令就可能产生环境改动；必须先判断是否值得跑。 证据：`README.md`
- **宿主 AI 配置**：Claude/Codex/Cursor/Gemini/OpenCode 等宿主的 plugin、Skill 或规则加载配置。 原因：宿主配置会改变 AI 后续工作方式，可能和用户已有规则冲突。 证据：`AGENTS.md`, `CLAUDE.md`, `skills/email-draft/SKILL.md`, `skills/feishu/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_0007` inferred 0.45
- **命令执行会修改本地环境**：安装命令可能写入用户主目录、宿主插件目录或项目配置。 处理方式：先在隔离环境或测试账号中运行。 证据：`README.md` Claim：`clm_0008` 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/email-draft/SKILL.md`, `skills/feishu/SKILL.md`, `skills/ha-browser/SKILL.md`, `skills/ha-code-review/SKILL.md` 等 Claim：`clm_0001` supported 0.86
- **命令行启动或安装流程**：先说明这是安装后验证能力，再给出安装前检查清单。 边界：必须真实安装或运行后验证。 证据：`README.md` Claim：`clm_0002` supported 0.86

### 上下文规模

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

### 证据不足时的处理

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

## Prompt Recipes

### 适配判断

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

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

### 安装前体验

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

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

请严格输出四段：
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
请基于 hope-agent 的 AI Context Pack，生成一段我可以粘贴给宿主 AI 的开工前指令。这段指令必须遵守 not_runtime=true，不能声称项目已经安装、运行或产生真实结果。
```

## 角色 / Skill 索引

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

- **email-draft**（skill）：Use when the user asks to draft, polish, translate, or reply to an email. Produces a clean draft with subject line, greeting, body, and sign-off, plus a pre-send self-check. 激活提示：当用户任务与“email-draft”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`skills/email-draft/SKILL.md`
- **feishu**（skill）：Use when the user mentions 飞书 / Feishu / Lark workspace operations: docx 云文档 read/write, bitable 多维表格 records / views / dashboards, drive 云盘 upload/download, wiki 知识库 link resolution, approval 审批 instance create/cancel/query, calendar 日历 event create/list/update + attendees, contact 联系人 user/department lookup, hire 招聘 job/talent/application listing. Trigger on phrases like 'OKR 周报', '把这份文档发到飞书云盘', '给团队拉个评审会议', '查 姓名… 激活提示：当用户任务与“feishu”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`skills/feishu/SKILL.md`
- **ha-browser**（skill）：Hope Agent browser automation — the standard status → tabs → snapshot → act loop, stale-ref recovery rules, and what to do when login / 2FA / captcha / camera-prompt / dialog blocks progress. Load this skill whenever you reach for the browser tool. Trigger on: user asks the agent to open / control / click / scrape / log into / verify something in a web app 'open X and click Y', '打开 X 然后点击 Y', 'log into my Gmail', 's… 激活提示：当用户任务与“ha-browser”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`skills/ha-browser/SKILL.md`
- **ha-code-review**（skill）：Hope-native review of uncommitted, staged, commit, branch, or PR changes: discover concrete regressions, independently verify candidates, and report actionable findings first without speculative noise. 激活提示：当用户任务与“ha-code-review”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`skills/ha-code-review/SKILL.md`
- **ha-coding-common**（skill）：Hope-native baseline for implementing, fixing, refactoring, and maintaining code: inspect the repository first, protect user changes, keep scope narrow, and finish with direct evidence. 激活提示：当用户任务与“ha-coding-common”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`skills/ha-coding-common/SKILL.md`
- **ha-coding-plan**（skill）：Hope-native implementation planning for non-trivial code changes: ground the plan in repository evidence, order dependencies, name critical files and risks, define verification, then continue execution when allowed. 激活提示：当用户任务与“ha-coding-plan”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`skills/ha-coding-plan/SKILL.md`
- **ha-data-analytics**（skill）：Hope-native local-first data analysis and Artifact reporting. Use for CSV/XLSX analysis, KPI readouts, metric diagnosis, product/business analysis, data-quality review, dashboards, charts, analytical reports, 数据分析, 指标诊断, 数据质量, 分析报告, or when the user wants a shareable offline HTML/ZIP/Markdown/PDF result. Produces the versioned AnalysisArtifactV1 contract and registers it with the artifact tool; never guesses missing… 激活提示：当用户任务与“ha-data-analytics”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`skills/ha-data-analytics/SKILL.md`
- **ha-data-stores**（skill）：Map of Hope Agent's local data stores and safe read-only query workflow. Use when the user asks where Hope Agent stores data, wants to inspect sessions/messages/memory/logs/background jobs/knowledge indexes/settings, asks the model to query local app data, or debugging requires checking persisted state. Trigger phrases: data stores, database path, sessions.db, memory.db, logs.db, background jobs.db, knowledge index,… 激活提示：当用户任务与“ha-data-stores”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`skills/ha-data-stores/SKILL.md`
- **ha-debug**（skill）：Hope-native debugging for code failures, regressions, crashes, flaky behavior, and bad output: reproduce or characterize, rank falsifiable hypotheses, fix the smallest root cause, and prove the failing path. 激活提示：当用户任务与“ha-debug”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`skills/ha-debug/SKILL.md`
- **ha-find-skills**（skill）：Discover and install third-party skills from external registries when the user needs a capability that no currently-active skill covers. Trigger when: 1 the user explicitly asks 'find a skill for X', 'is there a skill that does X', 'install a skill to X', 2 the user requests a well-known integration Slack, Notion, Trello, GitHub, Hue, Sonos, iMessage, weather, TTS, transcription … that isn't in the active skill cata… 激活提示：当用户任务与“ha-find-skills”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`skills/ha-find-skills/SKILL.md`
- **ha-knowledge**（skill）：Working method for the Hope Agent knowledge space — how to capture, organize, link, retrieve, and maintain Markdown notes well with the note tools. Load whenever you are reading or writing notes in an attached knowledge base. Trigger on: user asks to take / save / organize / restructure notes, build or grow a knowledge base / vault / second brain, link related notes, find related or similar notes, distill a long not… 激活提示：当用户任务与“ha-knowledge”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`skills/ha-knowledge/SKILL.md`
- **ha-logs**（skill）：Self-service diagnostics — query Hope Agent's local SQLite databases logs / sessions / background jobs directly via the exec tool to investigate problems, analyze usage, and locate root causes. Trigger on: user reports something broken / failing / slow / stuck / not responding 'X 不工作', 'X 报错', 'X 卡住', '为什么 X 失败', 'why did X fail', 'show me the logs', 'check what happened' ; ad-hoc data analysis 'this week's token us… 激活提示：当用户任务与“ha-logs”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`skills/ha-logs/SKILL.md`
- **ha-mac-control**（skill）：Hope Agent native macOS desktop control — the standard mac control status / diagnostics / apps / dock / spaces / snapshot / visual / windows / menu / clipboard / dialog loop, target-first action rules, no-blind-coordinate policy, and recovery for stale AX/window/menu/dialog state. Load whenever using mac control , or when the user asks to control local Mac apps, Dock, Spaces, click/type/menu/window/dialog/clipboard,… 激活提示：当用户任务与“ha-mac-control”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`skills/ha-mac-control/SKILL.md`
- **ha-manual**（skill）：Answer 'how do I use X / where is setting Y / what does panel Z do' questions about Hope Agent from the built-in bilingual user guide instead of guessing from memory. Trigger on: 怎么用, 在哪设置, 怎么开启, 如何配置, 使用手册, 用户手册, 功能说明, how to use, where is the setting, how do I enable, user guide, manual. The guide covers install & onboarding, models & providers, chat & sessions, memory, knowledge space, design space, tools & permi… 激活提示：当用户任务与“ha-manual”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`skills/ha-manual/SKILL.md`
- **ha-multi-agent-coding**（skill）：Hope-native multi-agent coding orchestration: fan out only independent valuable work, enforce bounded scope and isolation, consume structured results progressively, steer or cancel, and keep synthesis with the main Agent. 激活提示：当用户任务与“ha-multi-agent-coding”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`skills/ha-multi-agent-coding/SKILL.md`
- **ha-self-diagnosis**（skill）：Self-understanding and issue reporting for Hope Agent itself. Use when the user asks how Hope Agent works internally, asks about its own source code/docs/runtime behavior, reports a bug/failure/slowness/crash, asks to diagnose logs, or asks to create/submit a GitHub issue for a bug, feature request, or improvement including when there is no bug . Chinese triggers: 自查, 了解自己, 自我诊断, 排查 Hope Agent, 提交 issue, 需求 issue, 功… 激活提示：当用户任务与“ha-self-diagnosis”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`skills/ha-self-diagnosis/SKILL.md`
- **ha-self-update**（skill）：Check for and install Hope Agent updates through conversation. Use whenever the user asks about upgrades, new versions, release notes, or reports a bug that might already be fixed upstream — phrases like 'upgrade Hope Agent', 'update hope agent', 'check for new version', '升级一下', '有新版本吗', '帮我升级', 'is there a newer build', 'check release notes', 'install the latest'. Also use proactively when an app update action=\"ch… 激活提示：当用户任务与“ha-self-update”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`skills/ha-self-update/SKILL.md`
- **ha-settings**（skill）：Manage Hope Agent application settings through conversation. Use when the user wants to view or change any app configuration: theme, language, enhanced focus indicators, proxy, temperature, notifications, tool timeout, context compaction, automatic session titles, web search, GitHub issue reporting, memory, embedding, multimodal embedding, dreaming offline memory consolidation , recap, behavior awareness, smart-mode… 激活提示：当用户任务与“ha-settings”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`skills/ha-settings/SKILL.md`
- **ha-skill-creator**（skill）：Create, edit, improve, or audit Hope Agent skills. Use when the user wants to: 1 create a new skill from scratch, 2 edit or improve an existing skill, 3 review or clean up a SKILL.md file, 4 run evaluations to test skill effectiveness, 5 optimize skill descriptions for better trigger accuracy. Trigger phrases: 'create a skill', 'make a skill', 'improve this skill', 'review skill', 'audit skill'. 激活提示：当用户任务与“ha-skill-creator”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`skills/ha-skill-creator/SKILL.md`
- **ha-test-strategy**（skill）：Hope-native test strategy for features, fixes, and refactors: select test-first, regression-first, characterization, integration, E2E, or manual evidence according to risk and repository rules. 激活提示：当用户任务与“ha-test-strategy”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`skills/ha-test-strategy/SKILL.md`
- **ha-verify**（skill）：Hope-native completion and verification discipline: map each requirement to current direct evidence, choose the smallest sufficient checks, and distinguish proven, failed, blocked, stale, or unverified claims. 激活提示：当用户任务与“ha-verify”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`skills/ha-verify/SKILL.md`
- **ha-workflow-script**（skill）：Hope-native authoring and review for durable workflow.js runs: deterministic host APIs, typed child results, bounded parallel/pipeline execution, budgets, replay-safe identity, staged consumption, and honest closure. 激活提示：当用户任务与“ha-workflow-script”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`skills/ha-workflow-script/SKILL.md`
- **meeting-notes**（skill）：Use when the user asks to capture, structure, or summarize meeting notes / call notes / 1:1 discussion / standup notes. Produces a standard template with attendees, agenda, decisions, action items owner + deadline , and open questions. 激活提示：当用户任务与“meeting-notes”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`skills/meeting-notes/SKILL.md`
- **mermaid-diagram**（skill）：Use when the user asks for a flowchart, architecture diagram, sequence diagram, ER diagram, state machine, gantt chart, or any visual that fits Mermaid syntax. Hope Agent's chat renders Mermaid blocks natively, so the diagram appears inline. 激活提示：当用户任务与“mermaid-diagram”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`skills/mermaid-diagram/SKILL.md`
- **office-docx**（skill）：Use when the user asks to create, edit, inspect, polish, verify, or deliver Word .docx documents, Google Docs-targeted drafts, business briefs, forms, reports, tables, checklists, redraft-ready document sections, or PDF/Word source-to-DOCX transformations. 激活提示：当用户任务与“office-docx”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`skills/office-docx/SKILL.md`
- **office-pptx**（skill）：Use when the user asks to create, inspect, verify, polish, or deliver PowerPoint .pptx decks, Google Slides-targeted deck artifacts, strategy narratives, operating reviews, pitch decks, teaching decks, section slides, bullet slides, or source-to-PPTX transformations. 激活提示：当用户任务与“office-pptx”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`skills/office-pptx/SKILL.md`
- **office-xlsx**（skill）：Use when the user asks to create, inspect, verify, analyze, format, or deliver Excel .xlsx workbooks, Google Sheets-targeted spreadsheet artifacts, trackers, budgets, models, tables, dashboards, formulas, CSV/TSV-to-XLSX conversions, or spreadsheet-ready data packs. 激活提示：当用户任务与“office-xlsx”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`skills/office-xlsx/SKILL.md`
- **status-report**（skill）：Use when the user asks for a weekly / monthly status report, project update, individual or team progress summary. Produces a tight, scannable update with what shipped, what's in flight, what's blocked, and metrics. 激活提示：当用户任务与“status-report”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`skills/status-report/SKILL.md`

## 证据索引

- 共索引 80 条证据。

- **Hope Agent 技术文档索引**（documentation）：项目开发指南见 AGENTS.md ../AGENTS.md 更新日志见 CHANGELOG.md ../CHANGELOG.md 发版流程见 release-process.md release-process.md 面向用户的使用文档见 user-guide/ user-guide/README.md （中文;English: user-guide/en/ user-guide/en/README.md ;安装上手、每项功能的用法与设置 ;本索引下的 architecture/ 面向开发者,记录实现架构。 证据：`docs/README.md`
- **Hope Agent 使用手册**（documentation）：这是一份面向 最终用户 的完整中文使用文档,覆盖 Hope Agent 的安装、上手、每一项功能的用法与设置。 如果你想了解代码架构与实现细节,请看 docs/architecture/ ../architecture/ ;想快速浏览产品亮点,请看根目录 README.md ../../README.md 。 证据：`docs/user-guide/README.md`
- **Hope Agent User Guide**（documentation）：This is a complete user-facing manual that covers Hope Agent's installation, getting started, and the usage and settings for every feature. If you want to understand the code architecture and implementation details, see docs/architecture/ ../../architecture/ ; for a quick tour of the product highlights, see the root README.md ../../../README.en.md . 证据：`docs/user-guide/en/README.md`
- **目录**（documentation）：跨端交接、越用越懂你的桌面 AI 助手，也能服务化常驻、跑在云上 会记忆 · 能成长 · 能自主推进目标 · 会动态编排任务 · 在你所有的聊天里随叫随到 证据：`README.md`
- **AUR 包模板**（documentation）：此目录是 AUR hope-agent-bin 包的 单一真相源 。AUR 仓库（ ssh://aur@aur.archlinux.org/hope-agent-bin.git ）由 CI 自动从这里同步—— 不要在 AUR 仓库里直接 push ，下次发版会被覆盖。 证据：`aur/README.md`
- **Homebrew Cask 模板**（documentation）：此目录是 Homebrew Cask 的 单一真相源 。Tap 仓库（ shiwenwen/homebrew-hope-agent https://github.com/shiwenwen/homebrew-hope-agent ）由 CI 自动从这里同步—— 不要在 tap repo 里手改 cask 文件 ，下一次发版会被覆盖。 证据：`homebrew/README.md`
- **apt / yum repo templates**（documentation）：Single source of truth for the shiwenwen/hope-agent-linux-repo https://github.com/shiwenwen/hope-agent-linux-repo Debian + RPM repository that hosts Hope Agent on GitHub Pages. 证据：`linux-repo/README.md`
- **Scoop Bucket 模板**（documentation）：此目录是 Scoop bucket（ shiwenwen/scoop-hope-agent https://github.com/shiwenwen/scoop-hope-agent ）的 单一真相源 。Bucket 仓库由 CI 自动从这里同步—— 不要直接在 bucket 仓库手改 manifest ，下次发版会被覆盖。 证据：`scoop/README.md`
- **真实模型 Evidence 签名信任配置**（documentation）：这个目录只保存可公开分发的 Ed25519 公钥注册表；私钥不得进入仓库、Runner 磁盘、 App 配置或评测 artifact。 证据：`evals/live/trust/README.md`
- **Hope Agent Browser Control Extension**（documentation）：Hope Agent Browser Control Extension 证据：`extensions/chrome/README.md`
- **Hooks 手动端到端测试**（documentation）：GUI 目前没有 Test Runner 在 hooks.md Roadmap 里 ,所以手动验证靠: 配一条把 hook input 落盘的 command hook → 在 app 里做真实操作 → 看落盘 。本目录提供探针脚本和 全事件配置生成器。 证据：`scripts/hooks-manual/README.md`
- **Hope Agent**（documentation）：基于 Tauri 2 + React 19 + Rust 的本地 AI 助手桌面应用，内置丰富 Provider 模板与预设模型，GUI 傻瓜式配置。三种运行模式：桌面 GUI（Tauri）、HTTP/WS 守护进程（ hope-agent server ）、ACP stdio（ hope-agent acp ）。 证据：`AGENTS.md`
- **Claude**（documentation）：@AGENTS.md 证据：`CLAUDE.md`
- **前后端分离架构**（documentation）：返回 文档索引 ../README.md 关联源码： Cargo.toml , crates/ha-core/ , crates/ha-server/ , src-tauri/ 证据：`docs/architecture/backend-separation.md`
- **后台任务（Background Jobs）系统架构**（documentation）：返回 文档索引 ../README.md 更新时间：2026-06-24 证据：`docs/architecture/background-jobs.md`
- **浏览器自动化子系统**（documentation）：返回 文档索引 ../README.md 关联源码： crates/ha-core/src/browser/ ../../crates/ha-core/src/browser/ 、 crates/ha-core/src/tools/browser/mod.rs ../../crates/ha-core/src/tools/browser/mod.rs 、 src/components/chat/BrowserPanel.tsx ../../src/components/chat/BrowserPanel.tsx 、 skills/ha-browser/SKILL.md ../../skills/ha-browser/SKILL.md 证据：`docs/architecture/browser.md`
- **Coding Improvement Loop**（documentation）：返回 技术文档索引 ../README.md 状态：Phase 7.5 已实现。本文是 ha-core::coding improvement 、 dashboard::coding improvement 、Coding Trend Report、Transcript Distillation、Failure Feedback、Workflow Retro、Improvement Proposal 队列、Proposal-to-Action、Draft Promotion、Domain Learning proposals、Gold Pack / Strategy Effect history、External Model Baseline、Release Gate、Learning Generalization Gate、Benchmark Run Center、Benchmark Campaign Runner、Cross-model Leaderboard、Benchmark Task Corpus、Benchmark Report Export、Continuous Benchmark Gate、Benchmark Improvement Backlog、owner API、Workspace 质量趋势区块与 Dashboard 全局学习视图的单一技术事实源。 证据：`docs/architecture/coding-improvement-loop.md`
- **设计空间（Design Space）子系统架构文档**（documentation）：返回 文档索引 ../README.md 设计空间是 Hope Agent 的 agent 原生设计工作空间 ：用户与模型协作，从一句话或参考图产出 自包含、可交付的设计产物 （网页 / 移动原型 / 演示文稿 / 仪表盘 / 海报 / 文档 / 邮件 / 图像 / 动效 / 音频 / 交互组件），以可复用的 品牌设计系统 为底座，在沙盒面板实时预览、可视化直接微调、版本管理、一键导出，并可经 工程轴 把设计系统一路交付到代码（多平台 Token 导出 / Figma 导入 / 代码交付包 / 绑定代码工程同步），与 知识空间 knowledge-base.md 、 项目 project.md 深度联动。侧边栏入口紧贴「知识空间」下方。 产品名 设计空间 ；代码标识 design （模块 crates/ha-core/src/design/ 、agent 工具 design 、数据库 design.db 、前端视图 DesignView 、右侧面板与 i18n 命名空间 design ）。产品名与代码标识 均不引用任何外部参考实现的名称 （品牌产品名仅作设计数据出现在品牌参考系统里，见 §6.3）。 本文是子系统设计与实现的单一真相源；跨 PR 必守的红线摘要另见 AGENTS.md ../../AGENTS.md 。 证据：`docs/architecture/design-space.md`
- **Domain Workflow 控制平面**（documentation）：返回 技术文档索引 ../README.md 状态：Phase 7.1 Domain Workflow Registry 与 Phase 7.2 General Evidence Model 已实现；Phase 7.3 已在 Context Retrieval v2 context-retrieval.md 接入 domain profile、domain evidence 候选与 access issue；Phase 7.4 已由 Domain Quality 控制平面 domain-quality.md 消费 template / evidence / approval gates 生成通用领域 review / verification；Phase 7.5-7.6 已把 Domain Quality / Evidence 作为 Coding Improvement Loop coding-improvement-loop.md 的通用学习输入与 Domain Eval 与 Quality Gate 控制平面 domain-eval.md 的评分输入；Phase 7.15 已在本模块补充 Artifact Export Guard，Phase 7.16 已补 Connector Action Guard；Phase 8.2 已补 Connector E2E Gate，把真实外部系统修改从“动作前守门”推进到“读取 - 草稿 - 批准 - 执行 - 复核 - 回滚说明”的完整链路验收；Phase 8.4 已在 Workspace 补充「通用任务工作台」，把 Sources… 证据：`docs/architecture/domain-workflow.md`
- **Goal 控制平面**（documentation）：返回 文档索引 ../README.md 更新时间：2026-07-08 证据：`docs/architecture/goal.md`
- **Hooks 系统**（documentation）：事件 → 可拔插处理器。在工具调用、会话生命周期、上下文压缩、权限决策等关键节点执行用户自定义的命令 / HTTP / LLM / 子 Agent， 字段级对齐 Claude Code hooks 协议 ——社区脚本 paste 即用。 证据：`docs/architecture/hooks.md`
- **IM Channel 系统架构文档**（documentation）：- 概述 概述 - 设计目标 设计目标 - 整体架构 整体架构 - 核心抽象层 核心抽象层 - ChannelId 枚举 channelid-枚举 - ChannelPlugin Trait channelplugin-trait - MsgContext（入站消息） msgcontext入站消息 - ReplyPayload（出站消息） replypayload出站消息 - ChannelCapabilities channelcapabilities - 安全策略（SecurityConfig） 安全策略securityconfig - 消息流转架构 消息流转架构 - 入站流程 入站流程 - 出站流程 出站流程 - 完整时序图 完整时序图 - 入站附件 deferred materialize 模式 入站附件-deferred-materialize-模式 - 模块拆分 模块拆分 - Channel Registry（注册表） channel-registry注册表 - 会话管理 会话管理 - channel conversations 表 channel conversations-表 - 会话映射策略 会话映射策略 - Project 绑定与 IM 禁用命令 project-绑定与-im-禁用命令 - Worker 分发器 worker-分发器 - Telegram 插件实现 telegram-插件实现 - 架构 telegram-架构 - teloxide 封装层 teloxide-封装层 - Long-Polling 循环 long-polling-循环 - Ma… 证据：`docs/architecture/im-channel.md`
- **Knowledge Base（知识空间）**（documentation）：返回 文档索引 ../README.md 更新时间：2026-07-02 证据：`docs/architecture/knowledge-base.md`
- **Loop 控制平面**（documentation）：返回 文档索引 ../README.md 更新时间：2026-07-08 证据：`docs/architecture/loop.md`
- **平台级 MCP Server（ hope-agent mcp ）**（documentation）：返回 文档索引 ../README.md Hope Agent 当 MCP server ：把子系统能力经标准 MCP 协议暴露给本机外部 agent（Claude Code / Cursor 等）。这是「Hope Agent as MCP server」平台议题的第一块砖——共享 stdio host + ToolProvider 注册表， 设计空间（design）是首个 provider 。 与 mcp.md mcp.md 区分：那是 MCP 客户端 （我们连别人的 server）；本文是我们 当 server 。 MCP 规范里 "host" 指客户端宿主应用，故 server 侧模块命名为 mcp server （不叫 mcp host ）。 证据：`docs/architecture/mcp-server.md`
- **MCP 客户端架构文档**（documentation）：Hope Agent 的 Model Context Protocol 客户端 — 接入任意 MCP Server，把工具 / 资源 / 提示词注入主对话循环 反向（Hope Agent 当 MCP server，把自身子系统暴露给外部 agent）见 mcp-server.md mcp-server.md 。 证据：`docs/architecture/mcp.md`
- **记忆系统架构**（documentation）：记忆系统架构 返回 文档索引 ../README.md 更新时间：2026-07-13 证据：`docs/architecture/memory.md`
- **Hope Agent 系统架构总览**（documentation）：返回 文档索引 ../README.md 更新时间：2026-07-03 证据：`docs/architecture/overview.md`
- **权限 / 审批系统架构文档**（documentation）：返回 文档索引 ../README.md 更新时间：2026-07-04 证据：`docs/architecture/permission-system.md`
- **对话与模型服务架构**（documentation）：模型 Provider 系统、对话流程、Thinking/Reasoning 回传、Failover 降级、上下文管理的完整技术文档。 证据：`docs/architecture/provider-system.md`
- **可靠性与崩溃自愈**（documentation）：返回 文档索引 ../README.md 更新时间：2026-04-27 关联源码： guardian.rs ../../crates/ha-core/src/guardian.rs 、 crash journal.rs ../../crates/ha-core/src/crash journal.rs 、 self diagnosis.rs ../../crates/ha-core/src/self diagnosis.rs 、 backup.rs ../../crates/ha-core/src/backup.rs 、 platform/service.rs ../../crates/ha-core/src/platform/service.rs 、 src-tauri/src/main.rs ../../src-tauri/src/main.rs 证据：`docs/architecture/reliability.md`
- **Sandbox 架构**（documentation）：Sandbox 架构 返回 文档索引 ../README.md 更新时间：2026-06-26 关联： 权限/审批系统 permission-system.md · 工具系统 tool-system.md · 配置系统 config-system.md · API 参考 api-reference.md 证据：`docs/architecture/sandbox.md`
- **自升级（Self-Update）**（documentation）：关联源码： crates/ha-core/src/updater/ ../../crates/ha-core/src/updater · crates/ha-core/src/tools/app update.rs ../../crates/ha-core/src/tools/app update.rs · crates/ha-core/src/tools/definitions/update tools.rs ../../crates/ha-core/src/tools/definitions/update tools.rs · crates/ha-core/src/platform/ ../../crates/ha-core/src/platform · src-tauri/src/commands/update bridge.rs ../../src-tauri/src/commands/update bridge.rs · skills/ha-self-update/SKILL.md ../../skills/ha-self-update/SKILL.md 证据：`docs/architecture/self-update.md`
- **Transport 运行模式与事件流**（documentation）：返回 文档索引 ../README.md 关联文档： 前后端分离架构 backend-separation.md · API 参考 api-reference.md · Chat Engine chat-engine.md 证据：`docs/architecture/transport-modes.md`
- **Workflow Mode、Workflow Tool、Workflow Run 与 Execution Mode**（documentation）：Workflow Mode、Workflow Tool、Workflow Run 与 Execution Mode 证据：`docs/architecture/workflow.md`
- **Docker 部署**（documentation）：Hope Agent 提供官方多架构容器镜像，覆盖 linux/amd64 与 linux/arm64 ，跟随每次 Release Tag 自动构建并发布到 GitHub Container Registry。 证据：`docs/deployment/docker.md`
- **04 · Memory**（documentation）：The memory system lets the AI remember you across sessions —your preferences, your project background, your long-term habits. You only need to understand three things: always remember Core memory , recall when relevant on-demand recall , and learn from conversations automatic / manual consolidation . More advanced profiling and structured organization all live in the advanced area and, by default, need no attention from you. 证据：`docs/user-guide/en/04-memory.md`
- **06 · Design Space**（documentation）：The Design Space lets you collaborate with AI to turn a single sentence or a reference image into deliverable design artifacts —web pages, mobile prototypes, presentations, dashboards, posters, documents, emails, images, motion graphics, audio, and even genuinely interactive components. Generation previews in real time, with visual fine-tuning, version management, multi-format export, and a path all the way to a real code project. 证据：`docs/user-guide/en/06-design-space.md`
- **Package**（package_manifest）：{ "name": "hope-agent", "private": true, "version": "0.20.0", "license": "MIT", "author": "shiwenwen", "homepage": "https://github.com/shiwenwen/hope-agent", "repository": { "type": "git", "url": "git+https://github.com/shiwenwen/hope-agent.git" }, "bugs": { "url": "https://github.com/shiwenwen/hope-agent/issues" }, "type": "module", "packageManager": "pnpm@10.33.1+sha512.05ba3c1d5d1c18f68df06470d74055e62d41fc110a0c660db1b2dfb2785327f04cf0f68345d4609bc52089e7fa0343c31593b2f9594e2c5d5da426230acc9820", "scripts": { "dev": "vite", "build": "tsc -b --pretty false && vite build", "typecheck": "tsc -b --pretty false", "lint": "eslint .", "test": "vitest run", "test:watch": "vitest", "memory:smoke… 证据：`package.json`
- **贡献指南**（documentation）：欢迎贡献 Hope Agent！本文档面向 首次贡献者和日常贡献者 ——介绍如何报 Bug、提 PR、参与翻译 / 技能 / Provider / Channel 等常见方向。 证据：`CONTRIBUTING.md`
- **Package**（package_manifest）：{ "name": "@hope-agent/chrome-extension", "private": true, "version": "0.1.0", "type": "module", "scripts": { "check": "tsc -p tsconfig.json --noEmit", "package:webstore": "node scripts/package-webstore.mjs && node scripts/verify-webstore-package.mjs", "smoke-pages": "node scripts/smoke-pages.mjs", "smoke-pages:check": "node scripts/smoke-pages.mjs --check", "verify:webstore": "node scripts/verify-webstore-package.mjs" }, "devDependencies": {} } 证据：`extensions/chrome/package.json`
- **Email Draft**（skill_instruction）：Trigger phrases: "draft an email", "reply to this email", "polish this email", "翻译这封邮件", "write an email to ". 证据：`skills/email-draft/SKILL.md`
- **飞书 Lark 工作流套件**（skill_instruction）：35 个 feishu tool 覆盖飞书除 IM 之外的核心业务面：docx / bitable / drive / wiki / approval / calendar / contact / hire。所有 tool 共享同一个账号路由—— account 参数仅在配了 ≥2 个飞书账号时才必须，否则自动选唯一一个。 证据：`skills/feishu/SKILL.md`
- **Hope Agent Browser — operating loop**（skill_instruction）：Hope Agent Browser — operating loop 证据：`skills/ha-browser/SKILL.md`
- **Hope Code Review**（skill_instruction）：Review as a maintainer. The default action is to inspect and report, not to edit. Only repair findings when the user asks for fixes. 证据：`skills/ha-code-review/SKILL.md`
- **Hope Coding Common**（skill_instruction）：Use this as the default discipline for coding work. Load a narrower ha- coding skill when planning, debugging, testing, review, multi-agent execution, verification, or Workflow authoring is the real center of the task. 证据：`skills/ha-coding-common/SKILL.md`
- **Hope Coding Plan**（skill_instruction）：Plan only when planning reduces real uncertainty. A plan is an implementation map, not a ritual and not a substitute for doing the work. 证据：`skills/ha-coding-plan/SKILL.md`
- **Hope Data Analytics**（skill_instruction）：Build a decision-ready analysis and a durable local Artifact. The working files, calculations, and artifact.json live in the active workspace; the artifact tool copies the final payload into managed, immutable storage. 证据：`skills/ha-data-analytics/SKILL.md`
- **Hope Agent Data Stores**（skill_instruction）：Use this skill when you need to locate or inspect Hope Agent's persisted local data. Prefer product tools first; use direct SQLite only for diagnostics or ad-hoc analysis that existing tools do not cover. 证据：`skills/ha-data-stores/SKILL.md`
- **Hope Debug**（skill_instruction）：Debug from evidence, not from the first plausible explanation. This is a decision process, not a mandatory four-stage ceremony. 证据：`skills/ha-debug/SKILL.md`
- **Find Skills**（skill_instruction）：Hope Agent can load skills from multiple sources. When the user needs a capability the active catalog doesn't cover, this workflow finds a candidate on a public registry, confirms with the user, and installs it into ~/.hope-agent/skills/ so it's picked up on next prompt rebuild. 证据：`skills/ha-find-skills/SKILL.md`
- **Knowledge Space — operating method**（skill_instruction）：Notes in a Hope Agent knowledge base are real .md files on disk — the file is the single source of truth; the search index, link graph, and tags are a rebuildable cache derived from it. Your job is to keep that corpus coherent: the value of a knowledge base is in its links , not its file count. 证据：`skills/ha-knowledge/SKILL.md`
- **Hope Agent Logs — Self-Service Diagnostics**（skill_instruction）：Hope Agent Logs — Self-Service Diagnostics 证据：`skills/ha-logs/SKILL.md`
- **Hope Agent Mac Control**（skill_instruction）：mac control operates the user's macOS desktop from the authorized Hope Agent app process. macOS UI state is volatile: apps steal focus, AX IDs expire, sheets attach to windows, and multiple windows often share similar titles. Use a fresh observation before every meaningful action. 证据：`skills/ha-mac-control/SKILL.md`
- **Hope Agent User Guide Lookup**（skill_instruction）：You are answering a "how do I use this product" question. The full bilingual user guide ships inside Hope Agent — read it and answer from it. Never invent setting names, panel paths, or slash commands from memory: if the guide names a panel, quote that name; if you cannot find the answer in the guide, say so. 证据：`skills/ha-manual/SKILL.md`
- **Hope Multi-Agent Coding**（skill_instruction）：Use multiple Agents when parallel evidence or implementation meaningfully outweighs coordination cost. Do not make delegation the default for complex-looking work. 证据：`skills/ha-multi-agent-coding/SKILL.md`
- **Hope Agent Self-Diagnosis**（skill_instruction）：You are Hope Agent investigating Hope Agent. Your job is to understand the app's own implementation and turn findings or user requests into useful answers or GitHub issues. 证据：`skills/ha-self-diagnosis/SKILL.md`
- **Hope Agent Self-Update**（skill_instruction）：Hope Agent ships a single binary hope-agent that dispatches into three modes by subcommand: desktop GUI, hope-agent server , and hope-agent acp . All three share the same release artifacts under github.com/shiwenwen/hope-agent/releases https://github.com/shiwenwen/hope-agent/releases and the same Minisign-signed update manifest. The app update tool is the single entry point for self-upgrade; this skill is the methodology for using it well. 证据：`skills/ha-self-update/SKILL.md`
- **Settings — Application Configuration Management**（skill_instruction）：Settings — Application Configuration Management 证据：`skills/ha-settings/SKILL.md`
- **Skill Creator**（skill_instruction）：Tool for creating new skills and iteratively improving existing ones. 证据：`skills/ha-skill-creator/SKILL.md`
- 其余 20 条证据见 `AI_CONTEXT_PACK.json` 或 `EVIDENCE_INDEX.json`。

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

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

- **系统概览与三 Crate 架构**：importance `high`
  - source_paths: README.md, docs/architecture/overview.md, docs/architecture/backend-separation.md, docs/architecture/transport-modes.md, crates/ha-core/src/lib.rs
- **核心 AI 能力：记忆 / 知识空间 / 设计空间 / Goal-Workflow-Loop**：importance `high`
  - source_paths: docs/architecture/memory.md, docs/architecture/knowledge-base.md, docs/architecture/design-space.md, docs/architecture/goal.md, docs/architecture/workflow.md
- **工具集成与扩展：模型 Provider / MCP / Hooks / IM 渠道 / 浏览器**：importance `high`
  - source_paths: docs/architecture/provider-system.md, docs/architecture/mcp.md, docs/architecture/mcp-server.md, docs/architecture/hooks.md, docs/architecture/im-channel.md
- **部署、运行与可靠性：多平台分发 / 沙箱与审批 / 自更新 / 后台保活**：importance `high`
  - source_paths: docs/deployment/docker.md, docs/architecture/self-update.md, docs/architecture/permission-system.md, docs/architecture/sandbox.md, docs/architecture/reliability.md

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

- repo_clone_verified: true
- repo_inspection_verified: true
- repo_commit: `b9147cb0b813a17b6f695f95905f6d3761cb7810`
- inspected_files: `Dockerfile`, `README.md`, `docker-compose.yml`, `package.json`, `pnpm-lock.yaml`, `docs/README.md`, `docs/architecture/acp.md`, `docs/architecture/agent-config.md`, `docs/architecture/agent-control.md`, `docs/architecture/agent-team.md`, `docs/architecture/api-reference.md`, `docs/architecture/artifacts.md`, `docs/architecture/ask-user.md`, `docs/architecture/automation-model.md`, `docs/architecture/backend-separation.md`, `docs/architecture/background-jobs.md`, `docs/architecture/backup-autosave.md`, `docs/architecture/behavior-awareness.md`, `docs/architecture/browser.md`, `docs/architecture/canvas.md`

宿主 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: 依赖 Docker 环境

- Trigger: 安装/运行入口包含 Docker 命令：docker run -d --name hope-agent -p 127.0.0.1:8420:8420 -v hope-data:/data ghcr.io/shiwenwen/hope-agent:latest
- Host AI rule: 标注 Docker 前置条件，并提供非 Docker 路径或失败提示。
- Why it matters: 非工程用户可能没有 Docker，启动成本明显增加。
- Evidence: identity.distribution | https://github.com/shiwenwen/hope-agent | docker run -d --name hope-agent -p 127.0.0.1:8420:8420 -v hope-data:/data ghcr.io/shiwenwen/hope-agent:latest
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

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

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

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

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

### Constraint 4: 维护活跃度未知

- Trigger: 未记录 last_activity_observed。
- Host AI rule: 补 GitHub 最近 commit、release、issue/PR 响应信号。
- Why it matters: 新项目、停更项目和活跃项目会被混在一起，推荐信任度下降。
- Evidence: evidence.maintainer_signals | https://github.com/shiwenwen/hope-agent | last_activity_observed missing
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

- Trigger: no_demo
- Evidence: downstream_validation.risk_items | https://github.com/shiwenwen/hope-agent | no_demo; severity=medium
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 6: 存在评分风险

- Trigger: no_demo
- Why it matters: 风险会影响是否适合普通用户安装。
- Evidence: risks.scoring_risks | https://github.com/shiwenwen/hope-agent | no_demo; severity=medium
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 7: issue/PR 响应质量未知

- Trigger: issue_or_pr_quality=unknown。
- Host AI rule: 抽样最近 issue/PR，判断是否长期无人处理。
- Why it matters: 用户无法判断遇到问题后是否有人维护。
- Evidence: evidence.maintainer_signals | https://github.com/shiwenwen/hope-agent | issue_or_pr_quality=unknown
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 8: 发布节奏不明确

- Trigger: release_recency=unknown。
- Host AI rule: 确认最近 release/tag 和 README 安装命令是否一致。
- Why it matters: 安装命令和文档可能落后于代码，用户踩坑概率升高。
- Evidence: evidence.maintainer_signals | https://github.com/shiwenwen/hope-agent | release_recency=unknown
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。
