# Repository Briefing: sybil-solutions/skill-distill
> Source: https://repoforai.com/repo/sybil-solutions/skill-distill (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/sybil-solutions/skill-distill
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: Python
- **License**: MIT
- **Engineering Health**: A (82/100 · Maintenance 35/35 · Adoption 16/25 · Releases 11/20 · License 20/20)
- **Review Snapshot**: 2026-11-29
- **Deployment / Stack Signals**: CLI
- **Momentum**: 1,105 ★ total (+18 24h / +344 7d) · 103 forks
- **When to Use**: Best for: Teams with a successful Claude Code or Codex session, a restorable starting state, and a specific student harness and model they want to validate against a reference. Skip if: You need an MCP endpoint, model-weight distillation, or broad regression coverage across unrelated tasks—or cannot justify three trials per revision and human sign-off.

## Overview
```text
### Architecture & Core Mechanics
skill-distill is a host-installed operator skill, not an inference engine. Claude Code or Codex acts as the teacher and follows `skills/skill-distill/SKILL.md`: it reads a successful session, writes a task-specific student skill, then launches the selected harness in tmux against a fresh copy of the original starting state. The student's model is configured through that harness. No MCP server entrypoint or transport is shown.

The Python scripts separate orchestration from evidence collection. `scripts/distill.py` manages setup, trial execution and monitoring, evidence, verdicts, reporting, and acceptance. `scripts/extract_session.py` converts logs into a readable reference while removing system and `AGENTS.md` text. Harness-specific integration lives in `adapters/`, and `templates/student-skill/` supplies the initial structure for the generated skill. The reusable operator skill and the task-specific output are distinct artifacts.

### Key Capabilities & Differentiators
The workflow tests whether a particular harness and model can reproduce a reference result without receiving the finished artifact or a script that generates it. The student sees the verbatim original prompt, a clean starting state, and the skill; harness-level global context and skills are disabled where supported. Checks must pass against the reference first. Each revision gets three trials, after which the teacher can revise the instructions at the first observed divergence. Completion requires a human to accept the side-by-side comparison.

Session extraction supports Claude Code, Codex, and omp. For web tasks, `capture_web.py` serves the application and drives headless Chromium to record screenshots and errors. omp is the tested student integration, with DeepSeek-V4.1-Flash shown as an example pairing. Codex is tested as a teacher; as a student it needs a provider in `STUDENT_ARGS`. Claude Code can point open-model requests at an Anthropic-compatible endpoint via `ANTHROPIC_BASE_URL`. The pi and opencode adapters are untested, and opencode JSON logs have no parser in the session extractor.

### Trade-offs & Limitations
Compared with hand-writing a skill and spot-checking it once, this workflow makes failures easier to inspect: it resets the starting state, checks against a reference, and records evidence over repeated trials. The cost is three student runs per revision plus teacher iteration and human review. It pays off most when the task has a restorable baseline and an outcome you can meaningfully compare. Three trials reduce the chance of accepting a lucky run, but they do not establish general reliability.

Unlike fine-tuning, this changes instructions rather than weights. Unlike a broad evaluation suite, it targets one task, model, and harness; a change in any of the three warrants retesting. Harnesses differ in adapter maturity and in whether they can suppress ambient context, so cross-harness results are not automatically comparable. The repository's MIT license is permissive, but it does not determine the terms of model weights, harnesses, or hosted providers.

### Hardware & Deployment Guide
Clone the repository and symlink `skills/skill-distill` into `~/.claude/skills/skill-distill` for Claude Code or `~/.agents/skills/skill-distill` for Codex. The workflow requires Git, tmux, Python 3.10+, and an installed student harness already configured for its model. Web evidence is optional and adds `playwright`, `pillow`, and the Chromium installation from `playwright install chromium`.

The student can target a local model server or a compatible remote provider through its harness. Local orchestration does not make the entire workflow offline: both teacher and student routing matter. Inference capacity depends on the chosen model and concurrency; browser capture adds a separate local resource load. Raw logs stay in the Git-ignored `runs/` directory, which avoids routine source-control check-in but is not a data-isolation mechanism. No published release is listed, so there is no release history here on which to base upgrade or compatibility expectations.
```

## Key Capabilities
```text
- Host integration: SKILL.md drives the teacher loop in Claude Code or Codex; Python scripts and tmux coordinate student runs.
- Replay controls: Students get the verbatim prompt, a fresh copy of the starting state, and the skill; global context is disabled where the harness allows it.
- Validation: Each skill revision gets three trials, checks are tested on the reference first, and a human accepts the result.
- Session parsing: extract_session.py supports Claude Code, Codex, and omp logs and removes system and AGENTS.md text.
- Web evidence: capture_web.py serves the app and uses headless Chromium to capture screenshots and errors.
- Adapter maturity: omp is tested; Codex needs a provider in STUDENT_ARGS when used as a student; pi and opencode are untested.
```

## Quick Start / Clone
```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
```
