AdeleZhu/teacher-skill: The Repo That Turns a Teacher Into a Rollbackable AI Skill

It splits teaching style, persona, and subject knowledge into separate files, then recombines them into a tutor you can correct, update, and version like code.

11 min read • View on GitHub • More from AdeleZhu

A filing desk turns three teacher traits into one bound dossier. The scene explains the repo's core idea: pedagogy can be stored as separate layers and recombined without flattening the original teacher.
teacher-skill does not store a teacher as one blob of prompt text. It stores a layered profile that can be edited and rolled back.
Key Takeaways

Most AI tutor projects ask what the model should know. teacher-skill asks a better question: how do you preserve the way a specific teacher teaches, and how do you change it without erasing the original? That shift makes the repo feel less like a chatbot experiment and more like version control for pedagogy.

A teacher, split into three files

The repo is an expansion of colleague-skill, but it adds a third axis. Teaching captures method, persona captures voice and judgment, and knowledge captures the route into a topic. The result is not a single prompt blob. It is a profile you can inspect, edit, and recombine.

The repo's pipeline is a closed loop, not a one-way prompt factory.

The pipeline is deliberately modular. intake.md gathers the raw material in rounds, the analyzers break it into structured understanding, the builders write the separate markdown artifacts, and tools/skill_writer.py merges them into one skill file with runtime coordination rules. That last part matters because it tells the model what to privilege when layers conflict.

Why the knowledge layer matters

The knowledge layer is the sharpest idea in the repo. It tries to preserve not just facts but the path a teacher takes into a fact: the everyday analogy, the mnemonic, the first example they always reach for, the sequence they use when a student is stuck. That is tacit knowledge, and it is what makes a favorite teacher feel like a favorite teacher.

同一个 Skill 要在不同 Agent 里各装一遍,版本还不一定一致,管理起来非常混乱。

Derek Zhao, Blogger · Derek Zhao blog

That matters in a larger ecosystem that is already messy. Skill files move across agents, get duplicated, and drift. A versioned teaching profile is not just a nice-to-have. It is the only way the AI can keep a coherent identity while still accepting corrections.

Correction is a maintenance loop

prompts/correction_handler.md turns disagreement into a patch, not a rewrite. If a student says, "Our teacher would never say that," the system can isolate the mismatch, update the right layer, and then archive the prior version through tools/version_manager.py. That gives the project a safety rail most persona clones lack.

Before this, using skills in KiloCode required manually listing all skills in a main rule.

Addo Zhang, Developer · Addo Zhang on Medium
DimensionGeneric tutorcolleague-skillteacher-skill
Core unitSingle prompt that blends tone, facts, and policy.Teaching and persona split into separate files.Teaching, persona, and knowledge are separated.
Subject knowledgeUsually implicit or generic.Present, but still secondary to style.Stored as knowledge paths and entry points.
CorrectionsRewrite the prompt and hope for the best.Manual edits across multiple files.Correction patches target the right layer.
RollbackNone.Manual history at best.Previous versions are archived for rollback.
Best fitFast demos.Mimicry of a colleague.A durable, editable teacher model.

The repo is still early, but the structure is already opinionated. Python handles ingestion and file management, tests cover the writer, and the prompt files are split around distinct jobs instead of one giant instruction. That is the right shape if the goal is to preserve teaching style without letting the style overwhelm the lesson.