explainx.ai350K+ learn from us
TrendingAI News TodayExplainx for Business
Pricing
explainx.ai

Upskill in AI — 16 free pathways, live workshops & bootcamps, and 50+ courses from practitioners. Plus the skills, tools, and MCP servers to practice on.

follow us

follow on google

Add explainx.ai as a preferred source

corporate training

support@explainx.ai

get started

Find your pathTake Free Evaluation

community

Join the community

learn

mind: share how you thinkpathways — start freeworkshopsbootcampscoursescompare Explainxcertificationsmock testsexplainx universitycorporate traininglearn skills & mcp

discover

skillsmcp serversexplainx mcpestacktoolsmdx readeragentsllmsdesignsdictionarypeopleagi trackerfelony benchranks

company

aboutvisionmissionteaminstructorsteach on explainxpartnershipscommunityhackathonscareers

content

daily AI newsstate of AI — live resultsblogreleasespromptsgeneratorsresource libraryfor LLMsexplainx.ai kids

solutions

all solutionsdeveloper upskillingmarketing upskillingproduct manager upskillingleadership upskilling

newsletter · weekly

Get AI news, tools, and insights in your inbox.

supportcontactprivacytermsdata rightshow we create contentsubmission guidelines

© 2026 AISOLO Technologies Pvt Ltd

explainx.ai

On this page

  • TL;DR: skill-distill at a glance
  • How does the loop work?
  • What are the rules that keep it honest?
  • How do I install and use it?
  • What is in the repository?
  • Which student harnesses work?
  • Why would you do this?
  • How should you pick a first task to distill?
  • What are the limits?
  • Where does this fit in our skills coverage?
  • Bottom line
  • Related reading
← Back to blog

explainx / blog

skill-distill: Turn a Good Claude Code or Codex Session Into a Skill an Open Model Can Follow

Agent Skills, Open Source, Claude Code, Open Weights, Developer Tools

Part of Agent Skills

skill-distill, an MIT repo with 1.1k stars, has Claude Code or Codex write and test a skill so a cheaper open-weight model can repeat a task. How the loop works and its limits.

Dec 3, 2026·9 min read·Yash Thakker
add explainx.ai
go deep
skill-distill: Turn a Good Claude Code or Codex Session Into a Skill an Open Model Can Follow

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 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.

Catch up on AI

One AI story explained in plain English, plus one thing to try. Every day, free. Unsubscribe anytime.

350K+ Students Already Joined

TL;DR: skill-distill at a glance

table · 2 cols
QuestionAnswer 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
LoopWrite skill, run student in tmux, compare, fix the first wrong step, repeat
TrialsThree per skill version
Final callYou: the skill counts as done only when you accept
Requirementstmux, git, Python 3.10+, the student harness; playwright and pillow for web results
LicenseMIT
OutputThe 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 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 modelA 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:

bash
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-<task>.

What is in the repository?

table · 2 cols
PathWhat it is
skills/skill-distill/SKILL.mdThe loop the teacher follows
scripts/distill.pyRun bookkeeping: init, trial, status, wait, evidence, verdict, ledger, report, accept
scripts/extract_session.pyTurns a Claude Code, Codex or omp session log into a readable reference, dropping system and AGENTS.md text
scripts/capture_web.pyServes a web app, drives it in headless Chromium and saves screenshots and errors
adapters/One script per student harness: omp, pi, Codex, Claude Code, opencode
templates/student-skill/The starting shape of a produced skill
examples/Finished runs: the prompt, the produced skill, the ledger and screenshots

A teacher model passing a thin stream to a smaller one, showing model distillation between a frontier model and an open-weight studentA teacher model passing a thin stream to a smaller one, showing model distillation between a frontier model and an open-weight student

Which student harnesses work?

The adapter table in the README is honest about maturity:

table · 2 cols
HarnessStatus
omp (oh-my-pi)Tested
Codex CLITested as the teacher; as a student it needs a provider in STUDENT_ARGS
Claude CodeWritten; open models need ANTHROPIC_BASE_URL set to an Anthropic-compatible server
piWritten, untested
opencodeWritten, untested; its JSON log has no parser in extract_session.py yet

So the dependable path today is a Claude Code or Codex teacher with an omp student. Other combinations may need work. For background on harnesses and open-weight models together, see our post on Hugging Face harness adapters with Qwen 3.8.

Why would you do this?

Cost and control. A frontier model can do a task well but charges for every run. If a task repeats, such as a weekly report, a refactor pattern or a web check, a skill that lets a local or cheaper open-weight model do it can cut the cost per run. Analysts at Gartner argue that open-weight models can handle most agent steps, and we looked at that claim in Gartner and Revolut on open-weight models for agent steps. A related approach, distilling a frontier model's chain of thought into Qwen3 4B, changes the model's weights. skill-distill leaves the weights alone and changes the instructions, which is faster and needs no training, but also weaker.

How should you pick a first task to distill?

A good first candidate has four traits, and they follow from how the loop is built.

  1. It repeats. The distilled skill pays off only across future runs, so choose work you do weekly or daily, such as a formatted report, a standard refactor or a recurring web check.
  2. It has a checkable result. The loop compares the student's output with the reference. Tasks with a clear artifact, such as a file, a test result or a screenshot, are easier to compare than open-ended writing. The README's web capture script exists for the screenshot case.
  3. It starts from a clean state. The student runs on a fresh copy of the starting state, so the task must be repeatable from a known folder or repository.
  4. The reference session was good. The teacher builds the skill from what the session did. A messy session with many dead ends gives the teacher a noisy reference, so finish a clean run first and distill that one.

Plan the budget too. Count the teacher rounds, three student trials per version, and how many versions it may take. Set a limit before you start, and stop if the student has not improved after a few versions, because a task that needs much more reasoning than the student can supply will not be fixed by better instructions alone. In that case a larger open-weight model or a different harness may be the better change.

What are the limits?

  • One task, one model, one harness. The README says the produced skill is for exactly that combination. Switch the student model and you must distill again.
  • Cost of the teacher. The loop runs a frontier teacher for several rounds and trials. For a task you run only a few times, that can cost more than it saves. The break-even is the number of future runs.
  • Three trials is a small sample. It guards against one lucky run, but it is not a statistical guarantee. Rerun on new inputs before you rely on the skill.
  • Match is defined by the teacher and you. The teacher compares output to the reference and you accept. If your checks are weak, the skill can pass without being right.
  • Young code. Two commits, two untested adapters and a missing parser for one log format. Read SKILL.md and the scripts before you run them, since they start processes and, for web results, a browser.
  • Privacy. Session logs hold paths and context. The README keeps them in a git-ignored folder, but check what the teacher reads and what you send to any hosted model.

Where does this fit in our skills coverage?

skill-distill is a tool for making skills, not a skill for a topic. It pairs well with skills that shape output, such as antialgorithm, and with skill directories and workflows we have covered. For teams that want hands-on practice building and testing agent skills, the explainx.ai workshops cover that workflow.

Bottom line

The idea is simple and testable: let a strong model write the instructions, then check them on a weaker model, three times, against a reference. The README's rules for avoiding leaked answers and broken checks show the authors thought about the failure modes. With 1.1k stars and two commits, treat it as an early tool worth trying on one repeating task, not as a proven way to replace frontier models.

Details come from the skill-distill README as of December 3, 2026, and can change between commits.

Related reading

  • Inference Optimisation Skill: hill-climb local LLM serving
  • What are agent skills? A complete guide
  • Hugging Face harness adapters with Qwen 3.8
  • Distilling GPT-5.6 reasoning into Qwen3 4B
  • Gartner and Revolut: open-weight models for agent steps
  • antialgorithm: the agent skill against average AI picks
  • Official: skill-distill on GitHub and its SKILL.md
Spotted something out of date? Let us know.
Daily briefFrom Yash · 350K+ students taught

Catch up on AI

One AI story explained in plain English, plus one thing to try. Every day, free. Unsubscribe anytime.

  • ✓ Free
  • ✓ One email a day, no spam
  • ✓ Unsubscribe anytime
Yash Thakker

Written by

Yash Thakker

Yash is an AI expert with over 300K learners. Join his workshops →

View Yash Thakker in People in AI →

Share

Agent Skills
Workshops

Learn by building

Live, hands-on workshops on Claude, agents, and AI tooling — taught by practitioners, not slides.

Explore workshops →

Related posts

Nov 26, 2026

obsidian-skills: The Official Obsidian Agent Skills for Claude Code, Codex and Cursor

The obsidianmd/obsidian-skills repo, trending on GitHub with about 53.9k stars, packages seven Agent Skills that teach an agent to write valid Obsidian Markdown, Bases and Canvas files, drive the Obsidian CLI, and sync vaults headlessly. Here is what each skill does, how to install it per agent, and what the skill text itself tells the agent to avoid.

Nov 11, 2026

shadcn/improve: Audit With Your Best Model, Execute With a Cheap One

shadcn/improve gained about 333 GitHub stars in a day and sits near 10,400 stars. It is an MIT agent skill that audits a repo with a capable model, writes self-contained plans, and dispatches cheaper executors — without editing source itself.

Nov 9, 2026

stack-diagram: Agent Skill That Draws Your Stack From One Sentence

The GitHub repo caru-ini/stack-diagram gained thousands of stars in November 2026 by packaging a repeatable agent workflow: you describe your stack, the skill fetches official logos, routes lines around labels, and returns self-contained HTML, PNG or React output.