← Back to Skills Marketplace
christianye

Auto Skill Distiller

by Christianye · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
94
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install auto-skill-distiller
Description
Auto-distill successful workflows into reusable skills. Use after completing any multi-step task to evaluate if the workflow should be saved as a skill. Trig...
README (SKILL.md)

Skill Distiller

Turn successful workflows into reusable skills — automatically.

Inspired by Hermes Agent's learning loop, but with quality gates to prevent skill bloat.

When to Distill

Not every task deserves a skill. Evaluate these three criteria:

All three must be YES to proceed:

  1. Novel? — Did this task require a workflow you haven't done before? (If you already have a skill for this, update it instead of creating a new one)
  2. Successful? — Did the task complete with verified results? (Failed tasks produce lessons, not skills — write to memory/lessons-learned.md instead)
  3. Reusable? — Will this exact workflow likely be needed again? (One-off tasks don't need skills)

Quick scoring:

Novel + Successful + Reusable = CREATE SKILL
Novel + Successful + One-off  = WRITE TO MEMORY (lesson learned, not a skill)
Novel + Failed                = WRITE TO LESSONS-LEARNED
Not Novel                     = UPDATE EXISTING SKILL (or skip)

Distillation Process

Step 1: Extract the Workflow

Look back at what you just did and identify:

  • Trigger: What kind of request started this? (pattern, not specific instance)
  • Steps: What were the key steps, in order?
  • Tools: Which tools were used and how?
  • Decisions: What non-obvious choices were made and why?
  • Gotchas: What almost went wrong or required retry?

Step 2: Generalize

Transform the specific instance into a reusable pattern:

  • Replace specific file names with \x3Cinput_file>, \x3Coutput_path> etc.
  • Replace specific content with descriptions of what goes there
  • Extract magic numbers into named parameters
  • Identify which steps are always needed vs. conditional

Bad (too specific):

1. Read ch10-multi-agent-comm-patterns.md
2. Convert markdown to docx using python-docx
3. Upload to feishu folder nodcnxdXVfsiCVDuiigFVpnCPoc

Good (generalized):

1. Read source markdown file(s)
2. Convert to docx using python-docx (see references/docx-patterns.md)
3. Upload to target feishu folder

Step 3: Write SKILL.md

Generate the skill following the standard format:

---
name: \x3Cslug>
description: "\x3Cwhen to use this skill — be specific about triggers>"
---

# \x3CSkill Name>

## When to Use
\x3C1-2 sentences on the trigger pattern>

## Workflow
\x3CNumbered steps — the core of the skill>

## Key Decisions
\x3CNon-obvious choices and their rationale>

## Gotchas
\x3CThings that can go wrong and how to handle them>

## References
\x3CLinks to detailed docs if needed>

Size target: SKILL.md body should be under 200 lines. If longer, split into SKILL.md (workflow) + references/ (details).

Step 4: Quality Check

Before saving, verify:

  • Description clearly states when this skill should trigger
  • Steps are ordered and each has a clear action
  • No hardcoded values that should be parameters
  • Gotchas are specific, not generic ("handle errors properly" = useless)
  • Doesn't duplicate an existing skill (check ls ~/.openclaw/skills/)

Step 5: Save and Register

Save to ~/.openclaw/skills/\x3Cslug>/SKILL.md.

If the skill has reference materials, save them to ~/.openclaw/skills/\x3Cslug>/references/.

After saving, verify the skill loads:

ls ~/.openclaw/skills/\x3Cslug>/SKILL.md

Automatic Distillation Mode

When integrated with trinity-harness's Layer 3 (Compound), distillation happens automatically:

  1. Task completes → Layer 3 Compound phase triggers
  2. Evaluate Novel + Successful + Reusable
  3. If all YES → run distillation process
  4. If NO → write lesson to memory instead
  5. Announce to user: "Distilled skill: \x3Cname>. Review with read ~/.openclaw/skills/\x3Cslug>/SKILL.md"

Never auto-distill silently. Always announce what was created so the user can review, edit, or delete.

Skill Maintenance

Update vs. Create

Before creating a new skill, check if a related one exists:

ls ~/.openclaw/skills/ | grep -i \x3Ckeyword>

If a similar skill exists, update it (add the new pattern as a variant) rather than creating a near-duplicate.

Pruning

Periodically (during Dream Task), review skills:

  • Skills unused for 30+ days → candidate for archival
  • Skills with overlapping triggers → merge
  • Skills that have been superseded → mark deprecated

Anti-Patterns

Don't Why Do Instead
Distill every task Skill bloat, noise drowns signal Apply the 3-question gate
Include conversation history Wastes tokens, not reusable Extract only the workflow pattern
Write vague gotchas "Be careful" helps no one Specific: "API X returns 429 after 3 concurrent requests"
Hardcode paths/names Not portable Use \x3Cparameter> placeholders
Skip quality check Garbage skills waste future context Always verify before saving

Integration with Memory System

Distillation complements, not replaces, the memory system:

Output Goes to When
Reusable workflow ~/.openclaw/skills/\x3Cslug>/SKILL.md Novel + Successful + Reusable
Lesson learned memory/lessons-learned.md Successful but one-off, or failed
Quick note memory/YYYY-MM-DD.md Routine observations
Core insight MEMORY.md Fundamental principle change
Usage Guidance
This instruction-only skill is coherent and low-risk: it only creates/edits SKILL.md under ~/.openclaw/skills and performs local checks. Before installing or enabling automatic distillation: (1) ensure you want the agent to be able to write into ~/.openclaw/skills (backup that directory if needed); (2) confirm your platform enforces a review/approval step so created skills aren’t added silently (the SKILL.md itself says to announce creations); (3) review any generated SKILL.md for accidental inclusion of sensitive conversation content before saving; and (4) if you do not want autonomous creation, keep autonomous invocation constrained or disable any Layer 3 automatic distillation integration. Overall this skill appears to do what it claims.
Capability Analysis
Type: OpenClaw Skill Name: auto-skill-distiller Version: 1.0.0 The 'auto-skill-distiller' bundle provides instructions for an AI agent to autonomously generate and save new skill bundles to the filesystem (~/.openclaw/skills/). While the stated purpose is workflow optimization and productivity, the ability for an agent to write its own future instructions (SKILL.md files) constitutes a high-risk 'self-modifying' capability. This could be exploited via prompt injection to establish persistence or automate the creation of malicious skills based on untrusted task inputs, despite the inclusion of 'quality gates' in SKILL.md.
Capability Assessment
Purpose & Capability
Name/description match the runtime instructions: the document describes how to extract workflows, generalize them, and save SKILL.md files under ~/.openclaw/skills. References to integration (trinity-harness Layer 3) are optional integrations, not hidden requirements.
Instruction Scope
SKILL.md instructs the agent to inspect recent workflow steps, generalize them, run quality checks, and write files to ~/.openclaw/skills/<slug>/SKILL.md (and optional references/). It also suggests using commands like ls and read against the skills directory. There are no instructions to read unrelated system files, access credentials, or send data to external endpoints.
Install Mechanism
Instruction-only skill with no install spec, no code to download, and no required binaries — lowest-risk install surface.
Credentials
No environment variables, credentials, or config paths are required. The only filesystem access described is under the user's ~/.openclaw/skills and memory files, which is proportional to the stated purpose.
Persistence & Privilege
The skill directs writing files into ~/.openclaw/skills (its expected scope). It does not set always:true. However, if your agent/platform enables autonomous triggers (Layer 3 compound mode), the agent could create SKILL.md files automatically — the doc advises announcing creations, but you should confirm the platform enforces review before committing changes.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install auto-skill-distiller
  3. After installation, invoke the skill by name or use /auto-skill-distiller
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release: Auto-distill successful workflows into reusable skills. Three-gate quality filter (Novel+Successful+Reusable), 5-step distillation process, anti-bloat mechanisms, memory system integration.
Metadata
Slug auto-skill-distiller
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Auto Skill Distiller?

Auto-distill successful workflows into reusable skills. Use after completing any multi-step task to evaluate if the workflow should be saved as a skill. Trig... It is an AI Agent Skill for Claude Code / OpenClaw, with 94 downloads so far.

How do I install Auto Skill Distiller?

Run "/install auto-skill-distiller" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Auto Skill Distiller free?

Yes, Auto Skill Distiller is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Auto Skill Distiller support?

Auto Skill Distiller is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Auto Skill Distiller?

It is built and maintained by Christianye (@christianye); the current version is v1.0.0.

💬 Comments