[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6JTWJPPRHZYM2MTFDFPBCFR":3,"skill-same:01M6JTWJPPRHZYM2MTFDFPBCFR":60},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":29,"linkOnly":30,"markdownContent":31,"markdownBody":32,"frontMatter":33,"refName":36,"commitSha":37,"skillDirectory":38,"forksCount":39,"repositoryHtmlUrl":40,"repositoryHomepageUrl":41,"ownerHtmlUrl":42,"ownerBlogUrl":43,"ownerDescription":44,"updatedAt":45,"install":46,"resources":59},"01M6JTWJPPRHZYM2MTFDFPBCFR","context-recall",null,"按需召回已归档的上下文细节：支持按关键词、阶段、类型和决策维度检索， 从 L2 归档和 Phase Ledger 中恢复压缩丢失的信息。","hashgraph-online\u002Fawesome-codex-plugins","hashgraph-online","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F160371962?v=4","01M6CNB6NRJVNNGN14TR01Q6D3","HOL (Hashgraph Online)","01M6JT1HSKKG9V68KQAQGBA7XP",1575,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002FColin4k1024\u002Ftsp\u002Fskills\u002Fcontext-recall\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28],"recall","context","context recall","harness","engineering","压缩","关键词","l2","ledger","phase","2026-11-10 10:12:30",false,"---\nname: context-recall\ndescription: >\n  按需召回已归档的上下文细节：支持按关键词、阶段、类型和决策维度检索，\n  从 L2 归档和 Phase Ledger 中恢复压缩丢失的信息。\norigin: harness-engineering\n---\n\n# Context Recall Skill\n\n按需召回已归档的上下文细节，从 L2 归档索引和 Phase Ledger 中恢复压缩过程中被移出工作记忆的信息。\n\n## 何时激活\n\n- 用户输入 `\u002Frecall` 命令\n- 需要恢复早期对话中的代码细节、工具输出或决策上下文\n- 当前上下文中缺少之前阶段的关键信息\n- 用户提到\"之前讨论过\"、\"之前的方案\"、\"找一下之前的…\"等表述\n\n## 使用方式\n\n### 基本命令\n\n```\n\u002Frecall \u003Ckeyword>              # 按关键词搜索归档\n\u002Frecall phase:\u003Cphase_name>     # 按阶段召回（如 phase:implementation）\n\u002Frecall type:\u003Celement_type>    # 按类型召回（如 type:tool_result）\n\u002Frecall decisions              # 召回所有决策记录\n\u002Frecall timeline               # 显示阶段时间线概览\n```\n\n### 组合查询\n\n```\n\u002Frecall phase:design keyword   # 在 design 阶段中搜索关键词\n\u002Frecall type:code_change api   # 在代码变更中搜索 api 相关内容\n```\n\n## 核心功能\n\n### 1. 关键词召回\n\n从 L2 归档索引中按关键词匹配，返回相关的归档元素摘要和完整内容引用。\n\n**工作原理**:\n1. 搜索 `~\u002F.claude\u002Fmemory\u002Fsessions\u002F{sid}\u002Findex.json` 中的 keywords 字段\n2. 按匹配度排序返回结果\n3. 提供 L1 摘要和 L2 完整内容的访问路径\n\n### 2. 阶段召回\n\n从 Phase Ledger 中按阶段名称检索，返回该阶段的结构化交接记录。\n\n**输出包含**:\n- 阶段目标与完成情况\n- 关键决策列表\n- 代码变更清单\n- 未解决项\n\n### 3. 决策召回\n\n跨所有阶段收集决策记录，构建完整的决策链路。适用于需要理解\"为什么这样做\"的场景。\n\n### 4. 类型召回\n\n按上下文元素类型检索：\n- `tool_result`: 工具执行结果\n- `assistant_message`: 助手回复\n- `user_message`: 用户消息\n- `code_change`: 代码变更\n- `decision`: 决策记录\n\n## 技术实现\n\n### 依赖模块\n\n| 模块 | 路径 | 职责 |\n|------|------|------|\n| `context_recall` | `scripts\u002Flib\u002Fcontext_recall.py` | 召回逻辑核心 |\n| `context_archiver` | `scripts\u002Flib\u002Fcontext_archiver.py` | L2 归档索引读取 |\n| `phase_ledger` | `scripts\u002Flib\u002Fphase_ledger.py` | Phase Ledger 读取 |\n\n### 数据源\n\n| 源 | 路径 | 内容 |\n|----|------|------|\n| L2 归档索引 | `~\u002F.claude\u002Fmemory\u002Fsessions\u002F{sid}\u002Findex.json` | 关键词索引、元素摘要 |\n| L2 归档文件 | `~\u002F.claude\u002Fmemory\u002Fsessions\u002F{sid}\u002Farchived\u002F*.md` | 完整归档内容 |\n| Phase Ledger | `docs\u002Fmemory\u002Fsessions\u002F{sid}\u002Fphase-*.md` | 阶段交接记录 |\n| Ledger 索引 | `\u002Ftmp\u002Fharness-phase-ledger-{sid}.json` | Ledger 快速索引 |\n\n### 调用示例\n\n```python\nfrom scripts.lib.context_recall import (\n    recall_by_keyword,\n    recall_by_phase,\n    recall_by_type,\n    recall_decisions,\n    get_phase_timeline,\n    format_recall_results,\n)\n\n# 按关键词\nresults = recall_by_keyword(session_id, \"api contract\")\nprint(format_recall_results(results))\n\n# 按阶段\nresults = recall_by_phase(session_id, \"design\", project_path)\nprint(format_recall_results(results))\n\n# 所有决策\nresults = recall_decisions(session_id, project_path)\nprint(format_recall_results(results))\n\n# 阶段时间线\ntimeline = get_phase_timeline(session_id, project_path)\nprint(timeline)\n```\n\n## 输出格式\n\n召回结果以 Markdown 格式返回:\n\n```markdown\n## 召回结果: \"api contract\"\n\n### 匹配 1: [tool_result] API 设计讨论\n- **阶段**: design\n- **归档时间**: 2025-01-15 14:30\n- **摘要**: 确定了 RESTful API 契约，包括认证方式和错误码规范...\n- **完整内容**: ~\u002F.claude\u002Fmemory\u002Fsessions\u002Fabc123\u002Farchived\u002Fa1b2c3d4e5f6.md\n\n### 匹配 2: [decision] 选择 OpenAPI 3.0\n- **阶段**: design\n- **摘要**: 决定使用 OpenAPI 3.0 作为 API 契约格式...\n```\n\n## 与其他能力的关系\n\n| 能力 | 关系 |\n|------|------|\n| `strategic-compact` | compact 时归档 → recall 时恢复 |\n| `pre_compact` hook | 产生 L2 归档和索引 → recall 消费 |\n| `session_start` hook | 启动时自动加载 Phase Timeline |\n| `phase_tracker` | 提供阶段上下文用于精确召回 |\n| `phase_ledger` | 提供结构化阶段交接 → recall 检索 |\n\n## 限制\n\n- 召回内容来自归档，可能不包含最近未被压缩的对话\n- 关键词匹配基于词频提取，复杂语义查询可能不精确\n- Phase Ledger 依赖阶段检测正确性，手动阶段切换可能遗漏\n- L2 归档文件存储在本地，跨机器不可用\n","# Context Recall Skill\n\n按需召回已归档的上下文细节，从 L2 归档索引和 Phase Ledger 中恢复压缩过程中被移出工作记忆的信息。\n\n## 何时激活\n\n- 用户输入 `\u002Frecall` 命令\n- 需要恢复早期对话中的代码细节、工具输出或决策上下文\n- 当前上下文中缺少之前阶段的关键信息\n- 用户提到\"之前讨论过\"、\"之前的方案\"、\"找一下之前的…\"等表述\n\n## 使用方式\n\n### 基本命令\n\n```\n\u002Frecall \u003Ckeyword>              # 按关键词搜索归档\n\u002Frecall phase:\u003Cphase_name>     # 按阶段召回（如 phase:implementation）\n\u002Frecall type:\u003Celement_type>    # 按类型召回（如 type:tool_result）\n\u002Frecall decisions              # 召回所有决策记录\n\u002Frecall timeline               # 显示阶段时间线概览\n```\n\n### 组合查询\n\n```\n\u002Frecall phase:design keyword   # 在 design 阶段中搜索关键词\n\u002Frecall type:code_change api   # 在代码变更中搜索 api 相关内容\n```\n\n## 核心功能\n\n### 1. 关键词召回\n\n从 L2 归档索引中按关键词匹配，返回相关的归档元素摘要和完整内容引用。\n\n**工作原理**:\n1. 搜索 `~\u002F.claude\u002Fmemory\u002Fsessions\u002F{sid}\u002Findex.json` 中的 keywords 字段\n2. 按匹配度排序返回结果\n3. 提供 L1 摘要和 L2 完整内容的访问路径\n\n### 2. 阶段召回\n\n从 Phase Ledger 中按阶段名称检索，返回该阶段的结构化交接记录。\n\n**输出包含**:\n- 阶段目标与完成情况\n- 关键决策列表\n- 代码变更清单\n- 未解决项\n\n### 3. 决策召回\n\n跨所有阶段收集决策记录，构建完整的决策链路。适用于需要理解\"为什么这样做\"的场景。\n\n### 4. 类型召回\n\n按上下文元素类型检索：\n- `tool_result`: 工具执行结果\n- `assistant_message`: 助手回复\n- `user_message`: 用户消息\n- `code_change`: 代码变更\n- `decision`: 决策记录\n\n## 技术实现\n\n### 依赖模块\n\n| 模块 | 路径 | 职责 |\n|------|------|------|\n| `context_recall` | `scripts\u002Flib\u002Fcontext_recall.py` | 召回逻辑核心 |\n| `context_archiver` | `scripts\u002Flib\u002Fcontext_archiver.py` | L2 归档索引读取 |\n| `phase_ledger` | `scripts\u002Flib\u002Fphase_ledger.py` | Phase Ledger 读取 |\n\n### 数据源\n\n| 源 | 路径 | 内容 |\n|----|------|------|\n| L2 归档索引 | `~\u002F.claude\u002Fmemory\u002Fsessions\u002F{sid}\u002Findex.json` | 关键词索引、元素摘要 |\n| L2 归档文件 | `~\u002F.claude\u002Fmemory\u002Fsessions\u002F{sid}\u002Farchived\u002F*.md` | 完整归档内容 |\n| Phase Ledger | `docs\u002Fmemory\u002Fsessions\u002F{sid}\u002Fphase-*.md` | 阶段交接记录 |\n| Ledger 索引 | `\u002Ftmp\u002Fharness-phase-ledger-{sid}.json` | Ledger 快速索引 |\n\n### 调用示例\n\n```python\nfrom scripts.lib.context_recall import (\n    recall_by_keyword,\n    recall_by_phase,\n    recall_by_type,\n    recall_decisions,\n    get_phase_timeline,\n    format_recall_results,\n)\n\n# 按关键词\nresults = recall_by_keyword(session_id, \"api contract\")\nprint(format_recall_results(results))\n\n# 按阶段\nresults = recall_by_phase(session_id, \"design\", project_path)\nprint(format_recall_results(results))\n\n# 所有决策\nresults = recall_decisions(session_id, project_path)\nprint(format_recall_results(results))\n\n# 阶段时间线\ntimeline = get_phase_timeline(session_id, project_path)\nprint(timeline)\n```\n\n## 输出格式\n\n召回结果以 Markdown 格式返回:\n\n```markdown\n## 召回结果: \"api contract\"\n\n### 匹配 1: [tool_result] API 设计讨论\n- **阶段**: design\n- **归档时间**: 2025-01-15 14:30\n- **摘要**: 确定了 RESTful API 契约，包括认证方式和错误码规范...\n- **完整内容**: ~\u002F.claude\u002Fmemory\u002Fsessions\u002Fabc123\u002Farchived\u002Fa1b2c3d4e5f6.md\n\n### 匹配 2: [decision] 选择 OpenAPI 3.0\n- **阶段**: design\n- **摘要**: 决定使用 OpenAPI 3.0 作为 API 契约格式...\n```\n\n## 与其他能力的关系\n\n| 能力 | 关系 |\n|------|------|\n| `strategic-compact` | compact 时归档 → recall 时恢复 |\n| `pre_compact` hook | 产生 L2 归档和索引 → recall 消费 |\n| `session_start` hook | 启动时自动加载 Phase Timeline |\n| `phase_tracker` | 提供阶段上下文用于精确召回 |\n| `phase_ledger` | 提供结构化阶段交接 → recall 检索 |\n\n## 限制\n\n- 召回内容来自归档，可能不包含最近未被压缩的对话\n- 关键词匹配基于词频提取，复杂语义查询可能不精确\n- Phase Ledger 依赖阶段检测正确性，手动阶段切换可能遗漏\n- L2 归档文件存储在本地，跨机器不可用\n",{"name":5,"origin":34,"description":35},"harness-engineering","按需召回已归档的上下文细节：支持按关键词、阶段、类型和决策维度检索， 从 L2 归档和 Phase Ledger 中恢复压缩丢失的信息。\n","main","b0f0a87593c578a7898eccaf1b363f7f87c1f99b","plugins\u002FColin4k1024\u002Ftsp\u002Fskills\u002Fcontext-recall",491,"https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins","https:\u002F\u002Fhol.org\u002Fplugins\u002Fbest-codex-plugins","https:\u002F\u002Fgithub.com\u002Fhashgraph-online","https:\u002F\u002Fhol.org","Open-source standards and developer tools for interoperable AI agents: discovery, identity, communication, payments, privacy and security.","2026-11-14 14:06:13",{"source":8,"skillName":5,"commands":47,"prompt":57,"zipAvailable":58},[48,51,54],{"tool":49,"command":50},"npx","npx skills add hashgraph-online\u002Fawesome-codex-plugins --skill context-recall",{"tool":52,"command":53},"bunx","bunx skills add hashgraph-online\u002Fawesome-codex-plugins --skill context-recall",{"tool":55,"command":56},"pnpm","pnpm dlx skills add hashgraph-online\u002Fawesome-codex-plugins --skill context-recall","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002FColin4k1024\u002Ftsp\u002Fskills\u002Fcontext-recall\u002FSKILL.md",true,[],[61,71,79,87,95,103],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":65,"licenseFileUrl":66,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":70},"01M7DV332YQMGD8WTRJ9DZQXTB","worktable-review-with-annotations","Create, inspect, reply to, update, or resolve situated Worktable annotations. Use when feedback belongs to a Doc section, block, text range, or HTML Doc, or when the user asks to address existing review feedback and coordinate a requested artifact edit.","MIT","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-review-with-annotations\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-review-with-annotations\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":65,"licenseFileUrl":75,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":70},"01M7DV2YGHCZVBEB1AHYB6CGHE","worktable-find-and-synthesize-context","Find, assess, and synthesize context from Worktable Docs and Records. Use when the user asks what a workspace contains, wants workspace-backed research, needs current facts reconciled across artifacts, or requests a cited synthesis without changing workspace state.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-find-and-synthesize-context\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-find-and-synthesize-context\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":65,"licenseFileUrl":83,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":70},"01M7DV2TQN1H11ME2SAF9MXN7V","worktable-create-or-update-docs","Create, edit, rename, or maintain narrative Worktable Docs. Use for plans, decisions, briefs, notes, research syntheses, and other durable prose when the user requests a new artifact or a safe update to an existing one.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-update-docs\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-update-docs\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":65,"licenseFileUrl":91,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":70},"01M7DV2NE452NEA8TXATKSNAJH","worktable-create-or-manage-records","Organize repeated structured information as durable Worktable Records. Use for research datasets, inventories, directories, pipelines, trackers, and other collections whose items need identity, fields, filtering, links, validation, or individual updates.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-manage-records\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-manage-records\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":65,"licenseFileUrl":99,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":70},"01M7DV2HENRBR2KSCVM064WH0Y","worktable-create-or-manage-interactive-html","Create or improve durable visual and interactive artifacts in Worktable. Use for dashboards, trackers, calculators, mini apps, slide presentations, and other requests that benefit from a polished HTML Doc.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-manage-interactive-html\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-manage-interactive-html\u002FSKILL.md",[],[],{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":65,"licenseFileUrl":107,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":70},"01M7DV2CADR5R7RQFFYPNAGR9Y","worktable-collaborate-threads","Read, answer, and hand off messages through durable Worktable threads with users or other authenticated participants. Use when the user asks to check addressed messages, reply to a participant, continue a thread, request another agent's help, wait briefly for a response, or watch for comments and messages sent to the agent.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-collaborate-threads\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-collaborate-threads\u002FSKILL.md",[],[]]