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.
How to test whether every example in SKILL.md earns its keep
- 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.
- 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.
- 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.
- 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.
Related tasks in this category
See all in Cost, Token Footprint & Latency Rankings-
Compare AI skills by total dollar cost per verified completed task—including failed retries
A 'cheap' $0.04 skill that succeeds 50% of the time and burns 3 human-assisted retries costs far more than a $0.11 skill at 94% pass rate.
-
Trim bloated 4,000-token SKILL.md files down to lean instructions without losing accuracy
Stuffing basic Python tutorials and repetitive 'BE CAREFUL!' warnings into SKILL.md wastes context and dilutes real project rules.
-
Compare p50 and p95 wall-clock completion latency across interactive agent skills
Users abandon IDE and chat workflows when tail latency crosses 60 seconds. Compare turn count, tool serialization, and p95 speed.
-
Identify and eliminate runaway retry loops that burn $5+ on a single stuck agent run
When a linter or compiler error confuses an agent, bad skills edit-test-revert in circles for 40 turns until hitting max-token walls.
-
Test progressive on-demand reference loading vs monolithic skill files on domain knowledge
Compare skills splitting dialect guides (AWS, GCP, Azure; BigQuery, Snowflake, Postgres) into separate reference files loaded only on demand.
-
Evaluate high-volume background skill execution using Batch APIs, concurrency queues, and async workers
Backfilling 20,000 repo audits, ticket tags, or catalog extractions interactively wastes 50% Batch API discounts and hits RPM walls.