mcpField
W
wiki-history-ingest

wiki-history-ingest

github.com/ar9av生产力3.6k3.2k 次安装1 天前更新
代码仓库

关于 wiki-history-ingest

wiki-history-ingest 是面向 Agent 历史记录的路由技能,根据命令或来源线索分派到对应的导入技能。它仅处理历史记录,不替代用于文档的 wiki-ingest。

主要功能

  1. 01按来源分派到六种历史导入技能
  2. 02支持根据上下文自动判断来源
  3. 03来源不明确时请求澄清
  4. 04区分 Agent 历史与文档导入

适用场景

  1. 01导入 Claude 或 Codex 对话记录
  2. 02根据 Copilot 或 Pi 路径选择导入流程
  3. 03确认含糊的历史记录来源

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/ar9av/obsidian-wiki --skill wiki-history-ingest

安装后在 Claude Code 中输入/wiki-history-ingest确认已加载。

详细介绍

统一历史记录摄取路由器

这是一个仅用于历史记录来源的轻量路由器。它不会取代用于文档的 wiki-ingest。

子命令

如果用户调用 /wiki-history-ingest <target>(或等效的文本命令),请直接分发:

子命令路由到
claudeclaude-history-ingest
copilotcopilot-history-ingest
codexcodex-history-ingest
hermeshermes-history-ingest
openclawopenclaw-history-ingest
pipi-history-ingest
auto根据以下规则从上下文推断

路由规则

  1. 如果用户明确说 claude、copilot、codex、hermes、openclaw 或 pi,则直接路由。
  2. 如果用户提供了路径/来源:
    • ~/.claude 或 Claude 记忆/会话 JSONL 工件 -> claude-history-ingest
    • ~/.copilot、session-store.db、VS Code copilot-chat 对话记录 -> copilot-history-ingest
    • ~/.codex 或 rollout/session 索引工件 -> codex-history-ingest
    • ~/.hermes 或 Hermes 记忆/会话工件 -> hermes-history-ingest
    • ~/.openclaw 或 OpenClaw MEMORY.md/会话 JSONL 工件 -> openclaw-history-ingest
    • ~/.pi/agent/sessions 或 Pi 会话 JSONL 工件 -> pi-history-ingest
  3. 如果不明确,请简短询问一次:
    • “应该摄取 claude、copilot、codex、hermes、openclaw 还是 pi 历史记录?”

执行约定

  • 路由后,严格执行目标技能的工作流。
  • 不要在此文件中重复目标技能的逻辑。
  • 清单/索引/日志更新语义由目标技能负责。

用户体验约定

  • 对文档/内容来源使用 wiki-ingest
  • 对Agent 历史记录来源使用 wiki-history-ingest

示例:

  • /wiki-history-ingest claude
  • /wiki-history-ingest copilot
  • /wiki-history-ingest codex
  • /wiki-history-ingest hermes
  • /wiki-history-ingest openclaw
  • /wiki-history-ingest pi
  • $wiki-history-ingest claude(使用 $skill 调用的 Agent)
  • $wiki-history-ingest copilot

评论

支持 Markdown