← narwal.one/Second Brain
SecondBrain
Ask the Brain
Index/Conceptupdated 2026-11-17

Skill Editor Pattern

skillsskill-editoroverfittingmeta-skillclaude-codeai-operating-systemcontinuous-improvement

Skill Editor Pattern

A skill whose only job is to maintain the operator's other skills by reading many recent uses of them, finding the corrections the operator keeps making, and proposing a small set of changes to lift onto the skill itself. The point is to stop a well-known failure mode of iterative skill-building: updating a skill after every bad run causes the skill to overfit to the most recent conversation.

Peter Yang calls it out explicitly. "I used to do what you just said, which is like after every loop, I'm like, hey, based on this conversation, go update my podcast skills and do better next time. So I think that's definitely better than not doing that, but the problem with that is it tends to overfit into whatever your current conversation is. So what I recommend doing instead is make a new thread and be like, hey, can you look at all my podcast threads and when I've been using all the various skills, and just look through everything over the past three weeks, and then suggest ways to improve the skills."

The second thread reads across a batch of recent sessions, finds patterns that repeat, and ignores the one-off mistakes. For Peter's short-form video skill the batch returned thirteen rounds across nine edits, with four recurring corrections: B-roll out of place, framing and zoom, white text that repeats the subtitles or covers the B-roll, sound effects and number animations out of sync. He accepts the ones that match what he actually keeps fixing and lets the editor skill lift them into the SKILL.md.

Why this is more than "update after every mistake"

The naive version is already in this vault as rule 3 of Skills (Claude Code)'s four operational rules from Anthropic's skill creators — turn corrections into durable instructions. That rule is correct but incomplete. Peter's addition is a timescale rule: durable updates come from looking across many conversations, not from reacting to one. The practical form: a skill (skill-editor.md) whose system prompt tells it to consult recent threads using a specific skill, cluster the corrections, and present a numbered list of before/after diffs for the operator to accept or reject by number.

This is also the manual twin of Simon Scrapes' self-improving skills loop, which runs the same pattern overnight on a schedule rather than ad hoc.

Human in the loop by diff

Peter is strict about not letting the editor write to the skill directly. The output is always the exact before and after copy in a numbered list, so he can say "one to eight make sense, but nine doesn't make any sense. Don't do nine." The same instruction appears across Peter's whole system, most insistent on anything that touches customer-facing output. It is the review-by-numbered-diff practice inside the Verification Tax discipline, applied to skill authoring.

Where it sits in the vault

The Skill Editor Pattern is the Pruning dimension of Skill Checklist (Pocock) made concrete: a skill is well-pruned when the batch-review has been run and the recurring corrections have been lifted in. It extends rule 3 of Anthropic's four operational rules on Skills (Claude Code) with the "batch, don't react" discipline. In Peter Yang's AI Operating System (AIOS) it is the maintenance layer that keeps the other skills from drifting under the tempo of daily use.