wiki-history-ingest

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Unified History Ingest Router

统一历史导入路由器

This is a thin router for history sources only. It does not replace
wiki-ingest
for documents.
这是仅面向历史记录来源的轻量路由器,不会替代用于文档导入的
wiki-ingest

Subcommands

子命令

If the user invokes
/wiki-history-ingest <target>
(or equivalent text command), dispatch directly:
SubcommandRoute To
claude
claude-history-ingest
codex
codex-history-ingest
auto
infer from context using rules below
如果用户调用
/wiki-history-ingest <target>
(或等价的文本命令),直接进行分发:
子命令分发至
claude
claude-history-ingest
codex
codex-history-ingest
auto
根据以下规则从上下文推断

Routing Rules

路由规则

  1. If the user explicitly says
    claude
    or
    codex
    , route directly.
  2. If the user provides a path/source:
    • ~/.claude
      or Claude memory/session JSONL artifacts ->
      claude-history-ingest
    • ~/.codex
      or rollout/session index artifacts ->
      codex-history-ingest
  3. If ambiguous, ask one short clarification:
    • "Should I ingest
      claude
      history or
      codex
      history?"
  1. 如果用户明确提到
    claude
    codex
    ,直接分发到对应skill。
  2. 如果用户提供了路径/来源:
    • ~/.claude
      或Claude内存/会话JSONL产物 ->
      claude-history-ingest
    • ~/.codex
      或发布/会话索引产物 ->
      codex-history-ingest
  3. 如果存在歧义,询问一条简短的澄清问题:
    • "我应该导入
      claude
      历史记录还是
      codex
      历史记录?"

Execution Contract

执行约定

  • After routing, execute the destination skill's workflow exactly.
  • Do not duplicate destination logic in this file.
  • Leave manifest/index/log update semantics to the destination skill.
  • 路由完成后,严格执行目标skill的工作流。
  • 不要在本文件中重复实现目标skill的逻辑。
  • 清单/索引/日志的更新逻辑交由目标skill处理。

UX Convention

UX约定

  • Use
    wiki-ingest
    for documents/content sources
  • Use
    wiki-history-ingest
    for agent history sources
Examples:
  • /wiki-history-ingest claude
  • /wiki-history-ingest codex
  • $wiki-history-ingest claude
    (agents that use
    $skill
    invocation)
  • 针对文档/内容来源使用
    wiki-ingest
  • 针对Agent历史记录来源使用
    wiki-history-ingest
示例:
  • /wiki-history-ingest claude
  • /wiki-history-ingest codex
  • $wiki-history-ingest claude
    (使用
    $skill
    调用方式的Agent)