Skip to content

Measure whether embedded few-shot examples in SKILL.md justify their extra token cost

Five verbose examples can anchor style nicely—or bias the model into copying dummy variable names while adding 2,500 tokens per run.

Copy the prompt and paste it into the AI assistant you already use.

How to test whether every example in SKILL.md earns its keep

  1. 01

    Use 1 good + 1 bad contrastive pair over 5 similar examples

    Showing one crisp anti-pattern alongside the corrected output teaches boundaries in half the tokens of repetitive positive samples.

  2. 02

    Keep examples essential for bespoke formats and tone

    Custom internal DSLs, commit-message conventions, and non-standard JSON envelopes gain +12–20% compliance from one concrete example.

  3. 03

    Check for literal leakage of placeholder names

    Poorly demarcated examples cause models to copy 'acme-prod-db' or 'foo_handler' into real outputs; wrap samples in clear <example> tags.

  4. 04

    Run leave-one-out ablation on existing examples

    Drop examples one by one against your eval suite; delete any sample whose removal changes pass rate by 0%.

Questions and answers

Do frontier reasoning models still need few-shot examples in skills?

Less for chain-of-thought reasoning—which reasoning models handle natively—but still strongly for exact output structure, voice conciseness, and custom DSL syntax.

How many tokens should examples consume inside a core SKILL.md?

Ideally 200–600 tokens inline for universal output format, moving extended domain galleries into references/examples.md for on-demand lookup.

What is 'example anchoring bias' in agent skills?

If both few-shot examples solve bugs by editing config files, agents disproportionately suspect config files even when handed a pure logic bug.