Topic · AI & LLM Engineering

Best LLM cost and token optimization skills for Claude Code, Codex and other agents.

Skills that cut model spend by trimming tokens, caching prompts and routing to cheaper models.
skills
256
official
16

LLM cost and token optimization skills, ranked

Ranked by score. Sort bymost stars,trending,newest,recently updated

LLM cost and token optimization skills, ranked
#SkillRepositoryStarsUsed inTokensAuto-checkLicenceUpdated
1

Uses the Defuddle CLI to pull clean, readable Markdown, JSON or metadata from web pages, stripping navigation, ads and clutter to save tokens.

kepano/obsidian-skills49k11 repos~208Automated safety check: PassMIT21 days ago
2

Finds every LLM workflow in a repository, proposes a labeling table and, once you agree, wires labels so Caveman Cloud groups spend per workflow.

JuliusBrussee/caveman110k1 repo~1.3kAutomated safety check: PassApache-2.0today
3

Read-only review of Caveman Cloud data to explain where LLM spend goes: cost, score, workflows, traces, latency, errors, routing and verified savings.

JuliusBrussee/caveman110k1 repo~927Automated safety check: PassApache-2.0today
4

Turns a Caveman report-only optimization observation into one minimal code change and a paired baseline evaluation, after the operator picks which to pursue.

JuliusBrussee/caveman110k1 repo~1.2kAutomated safety check: PassApache-2.0today
5

Mines local Copilot CLI session logs for dotnet/maui to rank costly or failing runs, tag recurring failure modes, propose repo edits and emit guard evals.

dotnet/maui23k—~3.4kAutomated safety check: PassMITtoday
6

Routes large command, file, API and browser output through context-mode tools so only the needed result enters the agent's context, instead of dumping it via Bash.

mksglu/context-mode26k—~4.1kAutomated safety check: PassUnknowntoday
7

This skill should be used when long-running agent sessions need context compression, structured summarization, compaction, token-per-task optimization, or durable handoff summaries that preserve…

guanyang/open-agent-hub9732 repos~4.6kAutomated safety check: PassMITtoday
8

CodexBar read. Provider usage, limits, credits, config health. JSON. No writes.

steipete/CodexBar22k—~320Automated safety check: PassMITtoday
9

Hands simple, deterministic tasks such as typo fixes, tests and small refactors to cheaper models through the ccs CLI, choosing a profile from your config.

kaitranntt/ccs2.9k—~1.8kAutomated safety check: PassMIT6 days ago
10

Routing rules for using context-mode MCP tools in Antigravity CLI: sandboxed code runs, file analysis, indexed search and web fetches that keep large output out of the conversation.

mksglu/context-mode26k—~850Automated safety check: PassUnknowntoday
11

Configures OpenClaw to use free OpenRouter models, setting the best one as primary and adding ranked fallbacks so rate limits do not interrupt work.

Shaivpidadi/FreeRide2383 repos~1.1kAutomated safety check: PassNo licence5 mo ago
12

Maintains LobeHub's model-backed alint rule set: writing rules, removing false positives against real code, deciding warn versus error and tracking token cost.

lobehub/lobehub83k—~1.9kAutomated safety check: PassUnknowntoday
13

This skill should be used to explain or reason about the foundational concepts of context engineering: what context is, the anatomy of a context window, how attention mechanics work, the U-shaped…

guanyang/open-agent-hub9732 repos~4.2kAutomated safety check: PassMITtoday
14

A skill your agent uses when designing, generating an MVP blueprint for, auditing, troubleshooting, refactoring, or explaining an agentic harness for any domain.

DenisSergeevitch/agents-best-practices2.4k—~7.4kAutomated safety check: PassMIT2 days ago
15

Converts large PDF, DOCX, PPTX, XLSX and CSV files into markdown or CSV plus an index before the agent reads them, so tokens go to the compressed copy.

NateBJones-Projects/OB14.7k—~995Automated safety check: PassUnknownyesterday
16

A professional AI bounty hunter persona named Atlas. An agent skill from 1sadjlk/bounty-hunter-skill.

1sadjlk/bounty-hunter-skill2821 repo~761Automated safety check: PassMIT7 mo ago
17

Routes every LLM call in a repository through the Caveman Cloud gateway in record mode, so requests and costs are measured without changing behavior.

JuliusBrussee/caveman110k1 repo~2.6kAutomated safety check: WarnApache-2.0today
18

Quick-reference card for the three caveman skills and their commands. Trigger: /caveman-help or "caveman help".

JuliusBrussee/caveman110k—~683Automated safety check: PassApache-2.0today
19

Refactor a too-long SKILL.md by progressive disclosure: measure token cost, classify every section KEEP/CUT/MOVE, shorten the body into references/ and scripts/, verify nothing was lost.

luongnv89/asm953—~3.8kAutomated safety check: NotesMITtoday
20

A skill your agent uses when working in a repo with agentacct MCP configured, or when asked to track coding-agent work, smoke-test agentacct integrations, or report objective AI-agent task evidence.

mikehasa/agentacct765—~1.6kAutomated safety check: PassMIT4 days ago
21

Controls the RTK filter set and context-handling settings in OmniRoute, with endpoints to try compression on sample text and read back retained output.

diegosouzapw/OmniRoute74k1 repo~618Automated safety check: PassMITtoday
22

Audit local AI coding-agent sessions with agenttrace. An agent skill from luoyuctl/agenttrace.

luoyuctl/agenttrace1391 repo~656Automated safety check: PassMITyesterday
23

A skill your agent uses when maintaining or optimizing OpenClaw workspace files — AGENTS.md, TOOLS.md, SOUL.md, USER.md, IDENTITY.md, HEARTBEAT.md, BOOT.md, MEMORY.md, and related checklists and…

win4r/openclaw-workspace288—~2.4kAutomated safety check: PassNo licence6 mo ago
24

Estimates what a codebase would cost a traditional human team to rebuild, with P10, P50 and P90 ranges cross-checked by COCOMO II, Function Points and LOCOMO.

jbarbier/claude-code-cost-estimate111—~5kAutomated safety check: PassNo licence5 mo ago
25

Switches the agent to a terse reply style that gives the answer first, drops filler, and keeps every technical fact, command and number exact.

JuliusBrussee/caveman110k—~1kAutomated safety check: PassApache-2.0today
26
26.Omni

A skill your agent uses when installing, verifying or configuring OMNI, when command output carries an [OMNI: ...] marker, or when output looks shorter than expected.

fajarhide/omni374—~1.1kAutomated safety check: PassApache-2.0today
27

Visualize and diagnose OpenClaw context window usage. An agent skill from jzOcb/context-doctor.

jzOcb/context-doctor119—~642Automated safety check: PassMIT6 mo ago
28

Cross-system agent token/cost audit (Claude Code, Codex, OpenClaw, Hermes, OpenCode): idle burns, model misrouting, config bloat, with dollar savings.

alexgreensh/token-optimizer2.5k—~1.7kAutomated safety check: PassUnknown2 days ago
29

Sends one prompt to Claude, GPT through the Codex CLI and Gemini, then tabulates response time, token use and cost, with an optional judged quality score.

garrytan/gstack136k—~4kAutomated safety check: NotesMITtoday
30

Give the human an off switch and a cost meter for the coding agents on this machine, using ClawMetry.

vivekchand/clawmetry424—~1.1kAutomated safety check: PassMITtoday
31

Toolkit for creating and validating skills and subagents. An agent skill from rfxlamia/skillkit.

rfxlamia/skillkit102—~3.7kAutomated safety check: PassApache-2.06 mo ago
32

Weekly multi-agent audit for serious bugs (data integrity, silent caps, staleness, timestamp math, trust boundaries).

VasiHemanth/tokentelemetry376—~1kAutomated safety check: PassMITyesterday
33

Connect any AI agent to MCP servers through mcptoon — one config synced everywhere, one stdio gateway, 99.2% fewer tokens on tool discovery.

activeing123/mcptoon2141 repo~701Automated safety check: PassApache-2.0today
34

Audit an agent's context layout against the four places: system prompt, tools, history, tail.

undefined-ui/second-brain-os999—~810Automated safety check: PassMIT7 days ago
35

Integrate and use Jev, TypeSafe AI's System One decision model, in production codebases.

disler/ten-levels-of-jev202—~1.7kAutomated safety check: PassMIT9 days ago
36

Picks a small, graph-based slice of source with Trailmark and hands a focused code task to a smaller or local model without exposing the whole repository.

trailofbits/skills7.4k—~2.1kAutomated safety check: PassCC-BY-SA-4.05 days ago
37

Run the Antigravity CLI (Gemini) as a collaborating AI inside Claude Code, with intelligent model routing across the software development lifecycle.

yuting0624/antigravity-for-claude-code374—~9.1kAutomated safety check: PassMIT2 days ago
38

Checks and tunes token-saver output compression: reads stats, explains why a command was or was not compressed, and edits config files or environment variables.

ppgranger/token-saver153—~1kAutomated safety check: PassApache-2.017 days ago
39

Acts on a Caveman learn report: reviews ranked token sinks, applies cost-lowering edits one at a time with your consent, and reports what each fix returned.

JuliusBrussee/caveman110k—~2.8kAutomated safety check: PassApache-2.0today
40

Turns the lead model into a foreman that plans, routes and verifies while cheaper Claude, Codex or Grok workers do the typing, using a per-machine routing card.

olsenbrands/fable-foreman142—~5.2kAutomated safety check: PassMIT12 days ago
41

Read your own agent telemetry from ClawMetry (waste, progress, cost) and act on it before finishing a task.

vivekchand/clawmetry424—~515Automated safety check: PassMITtoday
42

Answers token usage and cost questions from the Claude Command Center throughput dashboard and shares its link, for the last 7 days or one session.

amirfish1/claude-command-center177—~676Automated safety check: PassUnknowntoday
43

SmartCrusher + CCR context compression — crunch large JSON arrays, tool outputs, and search results to save tokens.

momori777/Artemis377—~562Automated safety check: PassMIT6 days ago
44

Queries OmniRoute call logs, usage history and analytics, filters them by provider, model, status or cost, and reads or sets usage budgets.

diegosouzapw/OmniRoute74k1 repo~2kAutomated safety check: PassMITtoday
45

Guidelines for driving a workspace's embedded browser with the fewest tool calls, smallest state reads and no needless screenshots or waits.

holaboss-ai/holaOS11k—~736Automated safety check: PassUnknown1 mo ago
46

Guides building, debugging and tuning apps on the Claude API and Anthropic SDK, including prompt caching, and migrating code between Claude model versions.

warpdotdev/warp65k3 repos~8.2kAutomated safety check: PassApache-2.0today
47

Designs, tests and refines LLM prompts: zero-shot, few-shot and chain-of-thought patterns, system prompts, structured output schemas and evaluation test suites.

Jeffallan/claude-skills12k1 repo~1.5kAutomated safety check: PassMIT3 days ago
48

Audit and optimize frontmatter description fields across documentation pages to keep them concise and token-efficient.

lynx-family/lynx-website130—~1.7kAutomated safety check: PassApache-2.07 days ago

Questions, answered from the data.

What is the best LLM cost and token optimization skill?

Defuddle from kepano/obsidian-skills ranks first of the 256 LLM cost and token optimization skills listed here, with the highest score: its repository has 49k GitHub stars, 11 other GitHub owners carry a copy, its SKILL.md loads about 208 tokens and it passes the automated safety check with no findings. Next come Caveman Workflow Labeler and Caveman Evidence Review.

Which LLM cost and token optimization skills are official?

16 of the 256 LLM cost and token optimization skills are official, published by the vendor's own GitHub organization: Copilot Session Failure Analysis, Code Context Slicing, Commerce Prompt Caching, Session Usage Report, Adding A Provider API Feature and 11 more.

How are these skills ranked?

By Skill Navigator score, which combines the GitHub stars of the skill's repository (shared across that repo's skills and discounted for large collections), how many other GitHub owners carry a copy of the skill, and automated SKILL.md quality checks, minus penalties for safety-check warnings and for each further skill from the same repository. Skills that fail the safety check are not listed.