AiSkillz

Early "As-Is" Access - free for the first 20 accounts. 18 of 20 places left: complete registration to claim one. No credit card needed.

← Back to skills
AI & agentsVia MCPAny / model-agnosticLicense: My own work (all rights reserved)

Token efficiency for AI models (2026)

Created by CodeCraft LLC

Measure and reduce the tokens an AI application or agent spends without losing quality

Product and technology names are trademarks of their respective owners, used only to identify what this skill covers. CodeCraft LLC is not affiliated with or endorsed by them.

by Jace (@jamick)v1.4.1 · updated 2026-12-01Report copyright infringement

Description

Measure and reduce the tokens an AI application or agent spends without losing quality - reading usage fields and token-counting endpoints, finding where tokens go (system prompts, tool definitions, tool results, retrieved documents, conversation history, reasoning and output), prompt caching (Anthropic cache_control and automatic caching, OpenAI automatic caching, breakpoint placement, TTLs, what invalidates a cache), effort and thinking controls, max_tokens and output length, compaction and context editing, just-in-time retrieval, tool search and deferred tool loading, code execution with MCP, sub-agents, progressive disclosure in skills, compact data formats, prompt compression, batch APIs, model routing, and multilingual tokenizer cost. Use whenever the user asks to cut LLM cost or latency, reduce token usage, shrink a system prompt or context, fix context-window overflows, speed up an agent, set up prompt caching, or explains that answers degrade as conversations or contexts grow.

#ai#token#efficiency

Included with all-access

$15.00 one-time, permanent access

Get all-access · $12.00/mo, billed yearly

or

Buy 2 or more together for up to 40% off · View cart

You get a licence, not ownership. Access lasts while this skill is available on AiSkillz; if it's removed within 90 days of purchase, we'll send you a copy to keep. Terms

Official and free skills are included with the all-access subscription

Changelog

Subscribers also see which files changed in each version.

v1.4.1Dec 1, 2026Latest

Added

  • README: a **Sources** line listing the official pages the skill is written from, each link checked, so the source-overlap check can run against them.
v1.4.0Nov 25, 2026

Added

  • OpenAI caching rules for GPT-5.6 and later: paid cache writes (1.25× for 30 minutes, 2.5× for 12 hours), prompt_cache_options.ttl, Responses API usage fields; earlier models' prompt_cache_retention (in_memory / 24h).
  • Anthropic levers: mid-conversation system messages that keep the cache, message threads (beta), task budgets (beta), cache diagnostics (beta), Usage and Cost Analytics API.
  • Rule to judge cost per completed task, and to measure the strong model at lower effort before building a cascade (caches are per model).

Fixed

  • OpenAI section said current models bill cache writes at 1.25× and named only in-memory/24h retention; now split by model generation.
  • Cache-read table adds Fable 5.2 / Mythos 5.2 (0.025×); minimum cacheable prefix stated as model-dependent.
  • Review checklist report format matches the library format.
v1.3.0Nov 20, 2026

Added

  • Review method: every code review starts by mapping the code flows in scope and gives each flow its own sub-agent at high effort, which reviews that flow end to end against this checklist; the main agent merges, re-checks Blockers and de-duplicates. Covers single-flow reviews, nested sub-agents, failed sub-agents and environments without sub-agents.
v1.2.0Nov 6, 2026

Changed

  • Review report rule: reviews that cover changes (a diff, PR or uncommitted work) open with a short "What the changes do" section - factual bullets grouped by purpose, inferred intent marked, deploy or migration impact stated.
v1.1.0Nov 4, 2026

Changed

  • Review report rule at the top of the skill, loaded before any review: one entry per finding as Level · type · file:line · finding · proposed fix, outside facts sourced or marked unverified, and no narrative.
v1.0.1Oct 31, 2026

Changed

  • References updated for renamed skills: supabase is now supabase-platform, eas-workflows is now eas-workflows-ci, skill-creator is now skill-creator-aiskillz.
v1.0.0Oct 19, 2026

Added

  • First release.