Skip to content
Agentmart
Submit a tool

cross-runtime-memory-distiller

Hermes / OpenClaw 共用的跨宿主记忆蒸馏技能。 从 Claude / Gemini / OpenClaw / Hermes 多源会话中提取归一化事件, 经清洗、打分、分类后写入热记忆(USER.md / MEMORY.md), 同时产出蒸馏报告、控制面桥接记录和技能候选草稿。

Skill by XX-Trader

IndexedMIT
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/xx-trader-cross-runtime-memory-distiller

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Hermes / OpenClaw 共用的跨宿主记忆蒸馏技能。 从 Claude / Gemini / OpenClaw / Hermes 多源会话中提取归一化事件, 经清洗、打分、分类后写入热记忆(USER.md / MEMORY.md), 同时产出蒸馏报告、控制面桥接记录和技能候选草稿。

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Python package

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/cross-runtime-memory-distiller

What's inside

Skill name
cross-runtime-memory-distiller
Description
Hermes / OpenClaw 共用的跨宿主记忆蒸馏技能。 从 Claude / Gemini / OpenClaw / Hermes 多源会话中提取归一化事件, 经清洗、打分、分类后写入热记忆(USER.md / MEMORY.md), 同时产出蒸馏报告、控制面桥接记录和技能候选草稿。
License
MIT
Instructions
267 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Agent Skills spec issues

  • body: contains an absolute path from the author's machine

Files (21)

  • SKILL.md
  • memory_limits.json · config/
  • scoring_policy.json · config/
  • session_search_policy.json · config/
  • storage_policy.json · config/
  • parser-agent-contract.md · references/
  • shared-host-contract.md · references/
  • _shared.py · scripts/
  • distill_classifier.py · scripts/
  • distill_cleaner.py · scripts/
  • distill_reporter.py · scripts/
  • distill_runner.py · scripts/
  • distill_source_adapters.py · scripts/
  • evidence_store.py · scripts/
  • host_adapter_hermes.py · scripts/
  • host_adapter_openclaw.py · scripts/
  • memory_write_gateway.py · scripts/
  • runtime_probe.py · scripts/
  • skill_draft_generator.py · scripts/
  • skill_indexer.py · scripts/
  • source_repo_delta.py · scripts/

SKILL.md (first lines)

# Cross Runtime Memory Distiller

跨宿主记忆蒸馏共享技能 — 把 Hermes 已验证的记忆方法论重建为可同时服务 Hermes / OpenClaw 的通用技能。

## 环境要求

| 依赖 | 版本 | 说明 |
|------|------|------|
| Python | ≥ 3.10 | 使用 `match` 语法和 `X \| Y` 类型联合 |
| Git | 任意 | `source_repo_delta` 模块需要,用于采集代码变更 |
| sqlite3 | 内置 | Python 自带,无需额外安装 |

**零第三方依赖** — 所有模块仅使用 Python 标准库(json / sqlite3 / hashlib / re / subprocess / pathlib / argparse / dataclasses / typing)。

## 安装

本技能是纯脚本集合,无需 `pip install`。克隆仓库后直接可用:

```bash
# 1. 克隆仓库(如果还没有)
git clone https://github.com/ORG/workflow-infra.git
cd workflow-infra

# 2. 验证安装
python skills/library/cross-runtime-memory-distiller/scripts/distill_runner.py --help
```

你应该看到完整的参数列表输出。如果看到 `ModuleNotFoundError`,请确认 Python ≥ 3.10:

```bash
python --version
```

### 目录结构

```text
skills/library/cross-runtime-memory-distiller/
├── SKILL.md                           ← 你正在读的文件
├── config/
│   ├── memory_limits.json             热记忆容量预算 + 敏感扫描规则
│   ├── storage_policy.json            证据存储路径与保留策略
│   └── session_search_policy.json     FTS 检索参数
├── scripts/
│   ├── distill_runner.py              ★ 主入口:编排全链路
│   ├── runtime_probe.py               逐宿主环境探测与路径解析
│   ├── host_adapter_hermes.py         Hermes 宿主适配
│   ├── host_adapter_openclaw.py       OpenClaw 宿主适配
│   ├── memory_write_gateway.py        热记忆写入网关
│   ├── evidence_store.py              SQLite 证据存储
│   ├── distill_source_adapters.py     多源数据适配器
│   ├── source_repo_delta.py           IDE 代码变更证据采集
│   ├── distill_cleaner.py             清洗 + 候选窗口切分 + 打分
│   ├── distill_classifier.py          分类 + 结构化摘要生成
│   ├── distill_reporter.py            蒸馏报告 + 控制面桥接报告
│   ├── skill_draft_generator.py       Pattern → 已有技能追加更新 / 新建草稿
│   └── skill_indexer.py               全平台技能索引(搜索/差异/对比)
└── references/
    ├── shared-host-contract.md        宿主契约
    └── parser-agent-contract.md       Parser Agent 契约
```

## 快速启动

### 第一步:探测模式(零副作用)

第一次使用建议先用 `--dry-run`,只做探测和打分,不写入任何文件:

```bash
python skills/library/cross-runtime-memory-distiller/scripts/distill_runner.py \
  --hosts openclaw \
  --sources claude,docs \
  --since-hours 48 \
  --dry-run
```

你会看到类似输出:

```json
{
  "timestamp": "2026-04-20T...",
  "status": "success",
  "summary": {
    "total_artifacts": 15,
    "high_value": 8,
    "index_only": 5,
    "skip": 2
  },
  "elapsed_seconds": 1.2
}
```

### 第二步:正式蒸馏

确认 dry-run 输出正常后,去掉 `--dry-run` 执行正式蒸馏:

```bash
# Windows PowerShell
python skills/library/cross-runtime-memory-distiller/scripts/distill_runner.py `
  --hosts openclaw `
  --sources claude,docs `
  --since-hours 48 `
  --emit-bridge-report `
  --workspace "C:/workspace/workflow-infra" `
  --report-dir "$HOME/.openclaw/ops/distill/reports"

# Linux / macOS / WSL
python skills/library/cross-runtime-memory-distiller/scripts/distill_runner.py \
  --hosts openclaw \
  --sources claude,docs \
  --since-hours 48 \
  --emit-bridge-report \
  --workspace "$HOME/GitHub/workflow-infra" \
  --report-dir ~/.openclaw/ops/distill/reports
```

蒸馏完成后,产物保存在:

```text
~/.openclaw/ops/distill/

From XX-Trader/openclaw-hardflow-backup-20260302, MIT.

More from XX-Trader/openclaw-hardflow-backup-20260302

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Aug 14, 2026 (2 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from XX-Trader

Cite this page

cross-runtime-memory-distiller skill. Agent Mart. https://agentmart.dev/skills/xx-trader-cross-runtime-memory-distiller (last updated 2026-10-24)