1460 words
7 minutes
A skill is not a prompt: turning instructions into a verifiable, self-improving work system

After a skill is written, it usually meets one of two fates: nobody uses it, or it gets longer every month until nobody dares touch it.

The second is far more common. Every failure adds a line: “be careful not to…”. By the thirtieth line the model starts trading one rule against another — it honours rule nine while breaking rule three. The file reads like a compliance manual and the output has not improved at all.

The real problem is not prompt length. It is that the skill is missing three things: structure that can be executed, conclusions that a machine can check, and lessons that the next run can reuse. The four-step rewrite below turns “instructions that depend on the AI improvising” into “a work system with a clear structure, reliable tools, verifiable results, and a feedback loop”.

Symptoms: which skills need this#

If two or more of the following apply, it is worth the work:

SymptomHow it looks
Steps are improvised“Choose an appropriate template depending on the situation” — without saying which situation maps to which template
Repeated labourThe agent rewrites the same read/convert/validate script every session
Acceptance by vibes“Make sure the format is correct”, “don’t miss anything” — nothing is ever actually checked
Recurring errorsA problem you corrected last week reappears verbatim in a new session
Rule sprawlDozens of conflicting should/never lines with no priority

The shared root cause: every constraint lives in natural language. Natural language can be understood; it cannot be verified.

Step 1: understand the existing skill, draw a work map#

Do not rewrite before you have read. Read the skill itself, the files it references, its scripts, and its examples — then answer four questions.

1) Work map — decompose the task into a table you can audit:

## Work map
Goal: <one sentence, acceptance-testable>
Inputs: <required / optional / fallback when missing>
Steps:
1. <action> → <artifact> → <acceptance point>
2. ...
Branches: <if reference doc exists / if not; if first run / incremental>
Output: <file path + format>
Dependencies: <external commands, credentials, network, upstream data>

The moment the table exists, the problems usually surface on their own: some steps produce no artifact (work happened, but nothing to show), and some branches only ever existed in the author’s head.

2) Tool capability — mark each step as deterministic (same input, same output) or judgement-requiring. A deterministic step that keeps getting hand-written is a candidate for tooling.

3) Verification — how do you currently know the job is done and correct? If the answer is only “a human looks at it”, flag it in red. That is not a sin, but write it down.

4) Feedback — when a user points out an error, what changes in the skill? If the answer is “nothing”, the skill can accumulate length but not capability.

The rule for this phase is diagnose, don’t touch. Keep what already works; do not refactor for the sake of it. The most valuable sentence in many skills is a caveat someone paid for with a production incident — and it is exactly what gets deleted in a cleanup.

Step 2: agree on acceptance criteria with the user#

After diagnosis, propose the criteria you understand and ask for confirmation. Do not make the user describe the need from scratch — hand them a checklist to tick. Only three things matter:

What a good result looks like — split requirements into “must” and “prefer”. Musts become automated checks; prefers stay in prose. Mixing the two is where acceptance control dies.

What errors are least acceptable — asking “what has gone wrong repeatedly” yields far more than “what do you want it to do”. Historical mistakes are ready-made test cases.

Which steps need human approval — publishing, deleting, sending externally, overwriting source files: these need a gate. Reading, analysing, drafting, formatting can be automated freely.

Question discipline: at most three questions per round, and prefer answers already present in documents, past feedback, or examples. The user’s time belongs to judging, not restating.

Step 3: rewrite — four directions, use what you need#

Not every skill needs all four. Follow the diagnosis: messy docs → structure first; repeated labour → tooling first; unstable quality → verification first.

3.1 Structure: give the agent a map it cannot lose#

Put the work map at the top of the skill body. The agent’s first action should be reading the map, not inferring a process from forty paragraphs of prose.

One practical rule: every step must have an identifiable artifact (a file, a field, a log line). A step with no artifact is either deleted or merged.

3.2 Tooling: hand the deterministic parts to code#

Tool-worthy if all three hold:

  • Does this operation get reimplemented every time?
  • Is there exactly one correct way to do it (encoding, paths, escaping, format)?
  • Does getting it wrong cost more than writing the tool?

Typical candidates: file reading and format conversion, batch renaming, template rendering, frontmatter validation, dead-link checks, cover-image cropping, upload and deploy.

Multiple tools can share one entry point, but not every skill needs a CLI. Two scripts do not justify a framework.

Terminal window
# minimal shape of a unified entry point
skill run <task> # main flow
skill check <target> # automated checks, emit evidence
skill fix <issue> # deterministic repair of known issues

The payoff is not fewer lines of code. It is that constraints stop being “remind the model” and become “structurally impossible to get wrong”. That beats ten lines of “please watch the encoding”.

3.3 Verifiability: turn requirements into checks, checks into evidence#

Walk every requirement in the document and ask: can a command or script decide this?

  • Yes → put it in the checklist, and record the target, the result, and the evidence (command output, field value, file hash)
  • No (semantics, taste, tone, relevance) → label it “human review required”; do not pretend it was verified

A usable checklist looks like this:

CheckMethodEvidence
Frontmatter fields completeschema validation scriptlist of missing fields (empty = pass)
Timestamps validparse with a scriptparsed ISO time
Internal links reachablefetch every hreflist of 200/404
Images exist and meet size rulesread file headerswidth × height, bytes
Product names / terminology consistentglossary matchhit locations
Tone appropriate—human review

Two disciplines:

If the content changed, re-run the relevant checks. Editing the body invalidates the previous link and terminology results; you cannot inherit last run’s pass.

No evidence, no claim of verification. “I checked it” is not a conclusion. “The check was X, the output was Y” is.

3.4 Improvability: make each mistake happen once#

Keep a feedback log, appended in this format:

## 2026-11-07 Title got truncated
- Symptom: <what was observed>
- Cause: <the root cause found, not "the model was careless">
- Fix: <which file changed / which check was added>
- Type: one-off request / long-term rule
- Status: converted to check / converted to good example / logged only

The key is the escalation path. Convert each error into one of three things, in this order:

  1. Programmatic check — automatable, so it can never recur
  2. Approved example — not automatable but comparable; store a correct version as reference
  3. Prose — only when the first two are impossible

Editing the prompt comes last. Every line added to a prompt dilutes the weight of the others.

Also separate one-off requests from long-term rules. “No images this time” is one-off; “no images by default from now on” is a rule. Without that distinction, rules expand until nobody reads them.

Step 4: test and deliver — keep four states distinct#

Run regression with existing samples: take tasks that really ran before, compare outputs before and after, confirm nothing important degraded. Add one or two live tasks if you can.

When delivering, label each artifact’s state. The four states must never be conflated:

StateMeaningDecided by
Auto-verifiedAll checks ran, evidence capturedScript
AI-assessedSelf-review says it looks right, no machine evidenceModel
Human-approvedThe user explicitly accepted itUser
UnverifiedNo checks run, nobody looked—

The most common incident is describing states two and four as state one. “AI-assessed” is never “verified” — putting that sentence into a skill is worth more than ten warnings.

Also: never overwrite important source files or delivered results without the user’s confirmation. Back up before rewriting, and keep a rollback path afterwards.

Five counter-intuitive conclusions#

  1. A skill’s quality ceiling is set by its tools, not its prompt. Prompts express intent; tools guarantee the floor.
  2. “Ensure”, “note”, “be sure to” are ineffective instructions. They change no behaviour, only reading load.
  3. A check is worth more than a rule. One executable check replaces five sentences.
  4. A good example is the densest documentation. One correct input/output pair beats three paragraphs of process.
  5. Delete whatever can be deleted. When rules conflict the model picks one at random — worse than having no rule.

Core principles (you only need these five)#

  • Solve the real problem; do not chase architecture.
  • Change tools, checks, and examples before adding prompt lines.
  • No evidence, no claim of verification.
  • Separate one-off requests from long-term rules to prevent sprawl.
  • Keep a human gate on subjective judgement; do not fake objectivity with a script.

The end state is not a longer document. It is a system that gets slightly better the next time the same class of problem appears. Documents go stale; checks do not.

A skill is not a prompt: turning instructions into a verifiable, self-improving work system
https://yunyingai.net/en/posts/skill-self-iteration-guide/
Author
云樱梦海
Published at
2026-11-07
License
CC BY-NC-SA 4.0