360 Secure SkillHub
360 安全技能中心

Meta-Skill

元 Skill:用三个 Node 脚本把 OpenClaw 会话 JSONL 或工具事件流转成 trace,构建 DAG 并把变量提升为输入,合成 schema、plan、run-flow 与运行脚本,最后写入 Skills 目录完成注册。包内所引用的 schema.json、plan.json、run-flow.md 和 run.js 为编译产物,当前未随包提供。

la1850
la1850
热度 64.91
最近更新 2026-05-18 12:21:23
分类:开发依赖:代码执行 / 读写文件应用场景:代码生成 / 自动化脚本 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add meta-skill
Metadata
name
meta-skill
description
Trajectory compiler that converts real OpenClaw session traces (or raw_trajectory_log) into a parameterized, reusable Skill via 4 stages: trace interception → DAG abstraction → schema+code synthesis → registration.

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.