Meta‑Skill — Trajectory Compiler
Overview
Compile a concrete, parameter-filled execution trace into a reusable Skill with dynamic inputs. This skill implements a 4‑stage closed‑loop pipeline:
1) Trace Interception → 2) DAG Abstraction → 3) Schema+Code Synthesis → 4) Registration.
Stage 1 — Trace Interception (implemented)
Use scripts/trace-from-session.js to generate a real trace from OpenClaw session JSONL, or scripts/trace-interceptor.js for JSONL tool event streams.
Stage 2 — DAG Construction & Abstraction (implemented)
Use scripts/trajectory-compiler.js to build a DAG and lift variables to inputs.
Stage 3 — Code & Schema Synthesis (implemented)
Compiler emits references/schema.json, references/plan.json, references/run-flow.md, and scripts/run.js.
Stage 4 — Registration & Hot Reload (implemented)
Compiler writes into the Skills directory and requires a skills refresh.
Usage
See references/pipeline.md and references/compiler-spec.md.
元技能 — 轨迹编译器
概述
将包含具体参数的执行轨迹编译为具有动态输入的可复用技能。该技能实现了一个四阶段闭环流水线:
1) 轨迹拦截 → 2) DAG抽象 → 3) 模式+代码合成 → 4) 注册。
阶段一 — 轨迹拦截(已实现)
使用 scripts/trace-from-session.js 从OpenClaw会话JSONL生成真实轨迹,或使用 scripts/trace-interceptor.js 处理JSONL工具事件流。
阶段二 — DAG构建与抽象(已实现)
使用 scripts/trajectory-compiler.js 构建DAG并将变量提升为输入。
阶段三 — 代码与模式合成(已实现)
编译器输出 references/schema.json、references/plan.json、references/run-flow.md 和 scripts/run.js。
阶段四 — 注册与热重载(已实现)
编译器将内容写入技能目录,并需要刷新技能列表。
使用方法
参见 references/pipeline.md 和 references/compiler-spec.md。