skill-distill: Turn a Good Claude Code or Codex Session Into a Skill an Open Model Can Follow Sybil Solutions published skill-distill, an MIT-licensed open-source skill that distills a finished Claude Code or Codex session into instructions an open-weight model can follow, with the repository showing about 1.1k stars and 109 forks across two commits. The tool runs a five-step teacher loop — read the session, launch the student in tmux on a fresh copy of the starting state, compare outputs, fix the first wrong step, repeat — with three trials per skill version and a final human acceptance gate. The README's five honesty rules require identical inputs, no leaked reference answer in the skill, three trials, checks validated on the reference first, and raw logs kept in a git-ignored runs/ folder; it requires tmux, git, Python 3.10+ and a student harness such as omp with DeepSeek-V4.1-Flash. skill-distill is an open-source skill that lets Claude Code or Codex teach a cheaper open-weight model how to repeat a task. The sybil-solutions/skill-distill repository https://github.com/sybil-solutions/skill-distill?ref=explainx is MIT-licensed, has only two commits, and still shows about 1.1k stars and 109 forks. Its question is stated plainly in the README: "A frontier model did a task well. Can an open-weight model do the same task, given the right instructions?" This post explains how the teacher and student loop works, how to install it, what the rules guarantee, and what it cannot do. It is a young repository, so we focus on what the README commits to and where you should test it yourself. We covered the same authors' earlier work in Inference Optimisation Skill: hill-climb local LLM serving with an agent https://explainx.ai/blog/inference-optimisation-skill-sybil-hill-climb-local-llm-november-2026 . TL;DR: skill-distill at a glance | Question | Answer from the README | |---|---| | What does it do? | Distills a good Claude Code or Codex session into a skill an open-weight model can follow | | Who is the teacher? | Claude Code or Codex | | Who is the student? | An agent harness plus a model, for example omp with DeepSeek-V4.1-Flash | | Loop | Write skill, run student in tmux, compare, fix the first wrong step, repeat | | Trials | Three per skill version | | Final call | You: the skill counts as done only when you accept | | Requirements | tmux, git, Python 3.10+, the student harness; playwright and pillow for web results | | License | MIT | | Output | The reusable operator skill plus a produced skill for one task, model and harness | How does the loop work? The README lists five steps the teacher repeats: 1. Read the session. The teacher reads the finished session and writes a skill for the student. 2. Start the student. It launches the student in tmux on a fresh copy of the starting state, with the original prompt and the new skill. 3. Compare. It compares what the student produced with what the reference produced. 4. Find the first wrong turn. It identifies the first place the student went wrong and fixes the skill there. 5. Repeat. It runs again, three trials per version, until the student matches the reference. At the end, the teacher shows the reference and the student's best results side by side, and the skill is done only when you accept it. If agent skills are new to you, our guide to what agent skills are https://explainx.ai/blog/what-are-agent-skills-complete-guide explains the file format and how agents load them. A large vessel pouring a stream into a small one, an image of distilling a frontier session into a skill for an open-weight model What are the rules that keep it honest? The README sets five rules for the teacher. They are the most useful part of the repository, because they guard against the usual ways such an experiment fools itself. - Same inputs. The student gets the reference's prompt verbatim, a clean starting state and the skill, and nothing else. The student harness's own global context files and skills are turned off where the harness allows it. - No leaked answer. The skill may not contain the reference's finished output or a script that writes it. It teaches "the steps, decisions, traps and checks," with short snippets only where the student cannot otherwise get a part right. - Three trials. One lucky run proves nothing, so each skill version gets three trials. - Checks tested first. Checks are run on the reference before they judge the student. "A check that fails on the reference is a broken check." - Private logs. Raw session logs stay in a git-ignored runs/ folder, since they contain your machine's paths and context. Without these, a distilled skill can look good because the answer leaked in, or because one run got lucky. With them, a pass means the student followed instructions in three clean runs. How do I install and use it? The README gives these steps: git clone https://github.com/sybil-solutions/skill-distill ln -s "$PWD/skill-distill/skills/skill-distill" ~/.claude/skills/skill-distill Claude Code ln -s "$PWD/skill-distill/skills/skill-distill" ~/.agents/skills/skill-distill Codex You need tmux, git, Python 3.10 or newer, and the student harness installed and pointed at its model. For web results, install playwright and pillow and run playwright install chromium . Then, at the end of a session that went well, you ask: "distill this session into a skill for omp with deepseek-v4.1-flash on my local server." You can watch the students work with tmux attach -t distill-