全部技能 / 基础工具与工作流 / local-conversation-history
基础工具与工作流 · daymade/claude-code-skills

local-conversation-history

Entry point for local AI conversation history across providers. Routes a request to the one skill that owns it, by platform (Claude Code, OpenAI Codex, Kimi CLI) and action (read evidence vs continue interrupted work), and owns the one job none of them own alone: a single inventory spanning all three providers. Use when the provider is unknown or plural ("our history", "what have I been working on", "which chats did I have"), when the user wants Kimi CLI history at all, when it is unclear whether they need evidence or resumption, or when they ask for this skill by name. Vague recall that names no platform ("we discussed this once, when was it?") belongs here rather than to a single-provider reader, because a Claude-only answer to an unscoped question cannot support an absence claim. When the platform and the action are both already clear, load that executor skill directly instead — except Kimi CLI, which has no reader or continuation skill of its own and always routes through here.

风险提醒:蓝色 · 知晓即可AI 侦查报告
作者 daymadeGitHub daymade/claude-code-skills ↗Stars 1385许可 MIT(仓库根 LICENSE:Copyright (c) 2025 daymade;GitHub API spdx MIT)commit d5c4678cb5
agent 宿主通常会约束 skill 执行权限;风险提醒为 AI 侦查观点,不构成质量或安全保证。第三方 skill 仅作拆解与展示,安装使用风险自负,版权归原作者。

1实现原理 · 为什么它能做到

它是有意做窄的路由器:只决定‘哪个技能跑’,自己不做任何 provider 解析、不持有单 provider 命令、不复实现 executor 已有能力;发现自己开始讲某家 flag 就说明走错技能。

daymade-claude-code/local-conversation-history/SKILL.md
This skill decides **which** skill runs. It does not parse history itself, does not own commands for a single provider, and never re-implements what an executor already does.
注:路由表:Claude Code→read-claude-code-history / continue-claude-code-work;Codex→read-codex-history / continue-codex-work;Kimi CLI→复用 read-claude-code-history 的 Kimi scope(Kimi 无自己的 reader/续接技能)。

路由前先定两件事:平台(Claude Code / Codex / Kimi)与动作(读证据 / 续接工作);平台未声明时禁止猜——按 read-claude-code-history 精确查找 → read-codex-history rollout 定位的顺序用返回的 verified identity 决定,前缀像不像不算数。

daymade-claude-code/local-conversation-history/SKILL.md
Only a lookup that returns a verified identity decides which continuation skill runs; a plausible-looking ID prefix does not.
注:continuation 必须跟在 read 之后:没有 verified receipt 直接路由到 continue 技能被明确定义为 defect。

Provider scope 是它独占的职责:跨 provider 需求分两轴且用不同旗标——inventory(‘我最近在干嘛’)用 --source all/--source kimi;内容搜索(‘我们是否聊过 X’)给 Claude 搜索追加 --codex 与 --kimi;其余 flag(--all-projects/日期/--include-archived…)一律交给 executor。

daymade-claude-code/local-conversation-history/SKILL.md
Both readers ship the same inventory command and its `--source` already defaults to `all` — but each reader's own task table pins it to that reader's provider (`--source claude`, `--source codex`), so the default never fires on its own.
注:Kimi 在两轴上都路由进 read-claude-code-history——它文档化了自己的 Kimi home 解析。

意图决定路由而不是‘history’这个词:要列表→inventory;要找含某内容的会话→search;要原始输入按时间顺序→verbatim-input 路径;要续接已识别会话→continuation(先 read)。

daymade-claude-code/local-conversation-history/SKILL.md
The requested output wins over the background motivation.
注:标题匹配不算内容存在证据;列表不是搜索。

跨路由存活的不变量:完整性(Claude inventory 源集不可分割:自动发现 homes + ~/.claude/history-sources.json 注册的 archives,缺 archive 是配置错误不是部分答案的许可);自匹配排除(当前会话会命中关于自身的查询,先排除再当历史证据);零结果≠不存在。

daymade-claude-code/local-conversation-history/SKILL.md
- **Self-match.** The current session records the user's question and this agent's own commands, so it matches almost any query about itself. Exclude the current session ID before treating a hit as historical evidence.
注:这些不变量在路由后仍约束 executor 的输出解读。

边界纪律写成 Do not 清单:不在本技能跑 provider 解析/SQLite/rg/jq/JSONL 管道;不复制 executor 的 flag(除 --source/--codex/--kimi 三个 scope 旗标);不为了回答过去的问题路由到续接技能(读是证据,续接会改变世界)。

daymade-claude-code/local-conversation-history/SKILL.md
- Do not run provider-specific parsing, SQLite, `rg`, `jq`, or JSONL pipelines here.
注:‘路由直通续接会改变世界’是它防止误用(把历史问题当成续接任务)的最后一道闸。

2核心能力

01跨三平台(Claude Code/Codex/Kimi CLI)×双动作(读/续接)的路由
02平台未声明时的识别流程(精确查找→rollout 定位→verified identity 才路由)
03跨 provider inventory(--source all / kimi)与内容搜索(--codex/--kimi 追加)的 scope 命名
04意图→路由映射(列表/搜索/verbatim 窗口/续接)
05完整性/自匹配/零结果三不变量

3外部依赖

类型依赖
skillread-claude-code-history(含 Kimi scope、inventory、search)
skillread-codex-history(rollout 定位/inventory/search)
skillcontinue-claude-code-work / continue-codex-work(续接执行器)

4风险提醒 风险提醒:蓝色 · 知晓即可

风险提醒:蓝色 · 知晓即可
  • 扩大本地会话读取面 — 一次跨 provider 查询可能把 Claude+Codex+Kimi 的会话元数据/内容都带进上下文——隐私与上下文成本都高
  • 路由正确性依赖 executor 能力 — 它只保证路由对,不保证 executor 解析对;executor 的 schema 兼容问题会直接表现为答案错
  • flag 集合会随 executor 演进漂移 — SKILL 用‘禁止复制 flag’防漂移,但 --source 默认 all 的语义依赖 reader 的实现约定,改版需同步
  • 纯提示词约束的边界 — agent 若跳过身份验证直接路由(defect 定义),SKILL 无法机械拦截
风险提醒:蓝色,知晓即可。纯 SKILL.md 路由编排:零脚本、零网络、零凭证文件读取、零自研写入;行为 = 把请求路由给同仓只读本地历史的 executor(read-claude-code-history/read-codex-history),或在其后接续接技能。注意点:它打开的是跨三家本地会话库的读取面(隐私敏感,且当前会话自匹配须排除),Kimi scope 也复用 Claude reader。

5第二遍独立确认

  • [ok] 无脚本/无网络/无凭证/无写入 — 目录仅 SKILL.md,内容无任何命令执行或文件动作
  • [ok] 被路由技能全部真实存在 — read-claude-code-history / read-codex-history / continue-claude-code-work / continue-codex-work 均在 daymade-claude-code/ 下(git ls-files 核实)
  • [ok] scope 旗标边界一致 — 文中仅 --source/--codex/--kimi 被本技能持有,其余 flag 明确‘Let the executor own every flag’
  • [ok] Kimi 无专属技能的路由说法属实 — 仓库无 read-kimi-history/continue-kimi-work;Kimi 行确实路由到 read-claude-code-history + Kimi scope
  • [ok] 意图映射无矛盾 — 列表→inventory、找内容→search、verbatim→reader 的 verbatim 路径、续接→read 后 continue——表格与正文一致

6结论

  • 把跨 provider 路由做成独立技能并显式限定职责,避免每家 reader 各自长成全能工具
  • 平台识别要求 verified identity,防 session ID 前缀臆测
  • 三个不变量(完整性源集/自匹配排除/零结果≠不存在)防止‘没找到就说不存在’与‘把自己当历史’两类经典错
  • Kimi 缺口的收编设计(复用 Claude reader 的 scope)让三家覆盖闭合
  • 适合:适合用户问‘我最近都干了啥/哪个聊天里说过 X/是 Claude 还是 Codex 聊的’这类平台不明或多平台的回忆型问题,也适合作为本地历史体系的统一入口被其它技能/入口引用。
    不适合:不适合平台与动作都已明确的单 provider 请求(应直接调 executor,绕开路由器);不适合 Kimi 以外的续接(Kimi 无续接技能);不适合需要本技能自己解析/搜索/写文件的场景——它只路由。
    安装 agent 直装可复制
    ① 本站镜像 更新 2026-09-09
    方式 A · 人下载镜像包下载 local-conversation-history.tar.gz
    sha256: 5ed0cb7338547d20…
    方式 B · JSON 格式安装指南,复制给 agent
    安装指南
    agent 读 JSON 指南后会自动从本站下载安装,无需更多说明。
    ② 上游 GitHub · 原始来源
    能访问 GitHub?直接去上游安装(实时版,可能已更新)GitHub 原始 ↗
    本页镜像锁定 commit d5c4678cb5;上游为实时仓库。
    来源信息 GitHub 原始
    作者 / 仓库daymade / daymade/claude-code-skills
    Stars1385
    最近推送2026-09-09
    本 skill commitd5c4678cb5
    许可MIT(仓库根 LICENSE:Copyright (c) 2025 daymade;GitHub API spdx MIT)
    本站信息
    收录日期2026-09-06
    分类基础工具与工作流
    侦查报告2026-09-06 · 2 遍
    本站镜像与 GitHub 原始是不同来源:本站锁定 commit 快照经 /r2 分发;GitHub 为实时上游,内容可能已更新。