← Academy sybil-solutions /skill-distill956MITPython

skill-distill

Claude teaches a cheaper model your job, and checks it learned

When a Claude Code session goes well, skill-distill turns it into a skill an open model can follow, runs that model three times from scratch, fixes the skill where it went wrong and loops until the results match. You make the final call.

Some tasks you run again and again: the same kind of page, the same report, the same fix. Claude does them well, but you pay for a frontier model every time. skill-distill asks a simple question: if an open model got the right instructions, could it do the same task? It is a skill for Claude Code or Codex, the teacher. At the end of a good session you name a student, an agent harness with an open model, and the teacher writes the instructions, tests the student and fixes the instructions until the student's work matches.

sybil-solutions /skill-distillPublicDistill a good Claude Code / Codex session into a skill an open-weight model can follow to reproduce the task
Language
Python
Stars
956 on 27 Nov 2026
License
MIT
Best for
Repeated tasks you want an open model to take over
Needs
Claude Code or Codex, tmux, git, Python 3.10+, a student harness pointed at its model
Open on GitHub ↗

How it works

Read

  1. 01Session: the teacher reads what the reference did, step by step

→ the reference

Write

  1. 02Skill: steps, decisions, traps and checks for the student

→ skill v1

Test

  1. 03Student: three runs from a clean copy, with the original prompt and the skill

→ three results

Fix

  1. 04First miss: the teacher finds where the student went wrong and fixes the skill there

→ skill v2, v3...

Accept

  1. 05You: the reference and the student's best, side by side

→ your yes

The rules are strict on purpose. The student gets the original prompt word for word, a clean starting state and the skill, nothing else. The skill may not contain the finished output or a script that writes it: it has to teach the steps. A check is first tried on the reference, and a check that fails there is treated as a broken check.


(01)Install

git clone https://github.com/sybil-solutions/skill-distill
ln -s "$PWD/skill-distill/skills/skill-distill" ~/.claude/skills/skill-distill

For Codex, link the same folder into ~/.agents/skills/ instead. You also need tmux, git, Python 3.10 or newer, and the student's harness installed and pointed at its model.

(02)Distill a good session

At the end of a session that went well, in Claude Code:

distill this session into a skill for omp with deepseek-v4.1-flash on my local server

That is the README's own example. Change the harness and the model to the student you want. You can watch the student work with tmux attach -t distill-<task>.

(03)Decide

The teacher shows you the reference and the student's best results side by side. The skill counts as done only when you accept it. You keep two things: the produced skill for that task and that student, and the operator skill to do it again.


Before you start

How you know it is done

  • It is new and small: opened on 21 November 2026. The omp harness is tested; Claude Code, pi and opencode adapters are written but less tested.
  • A Claude Code student with an open model needs ANTHROPIC_BASE_URL pointed at an Anthropic-compatible server.
  • Each round runs the student three times, so a hard task takes a while and uses the student model's compute.
  • Raw session logs stay in runs/, which is not committed: they hold your machine's paths and context.
Stars
956 on 27 Nov 2026
License
MIT
Install
git clone, then link skills/skill-distill into ~/.claude/skills/
Use
"distill this session into a skill for with "

Common questions

Got any questions left?

Is it free?

Yes, MIT. You pay for the teacher's usage in Claude Code or Codex and run the student model yourself.

Does the student copy Claude's answer?

No. The skill may not contain the finished output or a script that writes it. It has to teach the steps.

Which open models work?

Any model a supported harness can run. The README's example is DeepSeek-V4.1-Flash through omp.

Why three runs?

One good run can be luck. Three runs per version show whether the skill really works.

Who decides it is good enough?

You. The teacher shows both results side by side and waits for your accept.

Build systems that run your brand__

info@hybrdstudio.com
Share article X LinkedIn

Discover more