Install
openclaw skills install @xiaocaijic/procedural-distillerDistill successful multi-step OpenClaw sessions into reusable learned skills before compaction. Use when a task involved many tool calls, environment setup, debugging, file edits, browser research, or when the user asks to remember a workflow such as "记下这个流程" or "这招很有用".
openclaw skills install @xiaocaijic/procedural-distillerUse this skill after a task has succeeded and the session contains enough signal to preserve. The goal is to extract procedural knowledge, not to summarize the conversation.
Run the distillation flow when all of the following are true:
exec, read, write, edit, or browser.Do not run while the task is still active. Skip trivial sessions dominated by a single read or a one-line answer.
Success PatternFailure TriggersSnippetsskills/learned/learned-<task-slug>/.memory.json.Read references/trace-format.md only if the incoming trace shape is unclear.
3 and let a future caller update memory.json.Run the bundled script directly:
python distill_logic.py --trace /path/to/trace.json --task "repair build cache" --output-root /path/to/skills
Useful flags:
--utility-score 4--learned-root learned--min-tool-calls 5--max-events 20--forceThe generated learned skill must contain:
SKILL.md with valid frontmatter (name, description) and procedural sectionsagents/openai.yaml for UI metadatamemory.json with utility_score, source task details, and generation metadataStop and do not emit a learned skill when: