Install the "cost-optimizer" agent skill from https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/cost-optimizer into .claude/skills/cost-optimizer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cost-optimizer", then confirm the skill loads.
Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
Type this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
skills CLI
$ npx skills add LeoYeAI/openclaw-master-skills --skill cost-optimizer -a codex
Project install goes to .agents/skills/; add -g for ~/.codex/skills/.
Install the "cost-optimizer" agent skill from https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/cost-optimizer into .agents/skills/cost-optimizer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cost-optimizer", then confirm the skill loads.
Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
skills CLI
$ npx skills add LeoYeAI/openclaw-master-skills --skill cost-optimizer -a cursor
Project install goes to .agents/skills/; add -g for ~/.cursor/skills/.
Install the "cost-optimizer" agent skill from https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/cost-optimizer into .cursor/skills/cost-optimizer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cost-optimizer", then confirm the skill loads.
Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
skills CLI
$ npx skills add LeoYeAI/openclaw-master-skills --skill cost-optimizer -a gemini-cli
Project install goes to .agents/skills/; add -g for ~/.gemini/skills/.
Install the "cost-optimizer" agent skill from https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/cost-optimizer into .gemini/skills/cost-optimizer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cost-optimizer", then confirm the skill loads.
Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
Installs for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
skills CLI
$ npx skills add LeoYeAI/openclaw-master-skills --skill cost-optimizer -a github-copilot
Project install goes to .agents/skills/; add -g for ~/.copilot/skills/.
Install the "cost-optimizer" agent skill from https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/cost-optimizer into .github/skills/cost-optimizer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cost-optimizer", then confirm the skill loads.
GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
skills CLI
$ npx skills add LeoYeAI/openclaw-master-skills --skill cost-optimizer -a opencode
OpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
Install the "cost-optimizer" agent skill from https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/cost-optimizer into .opencode/skills/cost-optimizer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cost-optimizer", then confirm the skill loads.
OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
Facts
Skill name
cost-optimizer
GitHub stars
2.2k
Token cost
~3.3k tokens
SKILL.md length
455 words
Files
7 (incl. references)
Skills in repo
972
Repo updated
First seen
Licence
MIT
At a glance
Ultimate cost optimization toolkit for OpenClaw/Claude Code.
Works in 5 steps: /cost-route — 智能模型路由 → /cost-compress — 上下文压缩 → /cost-heartbeat — Heartbeat 优化 → …
Tasks that involve LLM cost and token optimization
SKILL.md covers 参数解析, 1. /cost-route — 智能模型路由, 2. /cost-compress — 上下文压缩 and 3. /cost-heartbeat — Heartbeat…, plus 6 more sections
Runs TypeScript scripts from its folder
What it does
Cost Optimizer is an agent skill from LeoYeAI/openclaw-master-skills. Ultimate cost optimization toolkit for OpenClaw/Claude Code. Smart model routing, context compression, heartbeat tuning, usage reports, config generation — save 60-80% on daily token costs. (中文) 智能模型路由、上下文压缩、Heartbeat 优化、消耗报告、配置生成,日均节省 60-80%。
Its SKILL.md is about 3.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 7 other files, including reference files (for example `README.md`, `_meta.json` and `index.ts`).
It sits in AI & LLM Engineering, covering LLM cost and token optimization and Model routing and gateways. The repository describes itself as: 🧠 Curated collection of 1209+ best OpenClaw skills — weekly updated by MyClaw.ai. The licence is MIT.
When your agent uses it
Tasks that involve LLM cost and token optimization
Read from SKILL.md and the folder at commit e5199b5. It shows what the files ask for, not the result of running them.
Tool permissions
Pre-approves these tools, so the agent can use them without asking each time:
Bash
Read
Write
Edit
Grep
Glob
Agent
From allowed-tools in the SKILL.md frontmatter.
Runs code
Ships script files (TypeScript), which the agent can run.
From the folder's file list and the shell code blocks in SKILL.md.
Network
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Credentials
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Context cost
Cost Optimizer loads about 3.3k tokens when it runs, and up to ~6.2k if it reads all its reference files. Until then it costs about 65 tokens; SKILL.md has 455 words of instructions outside code blocks.
Always· name and description, kept in context so the agent knows when to use it
~65
When it runs· the whole SKILL.md, loaded when a task matches
~3.3k
With references· SKILL.md plus every file in references/, read only if the agent opens them
~6.2k
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
Safety
Auto-check: notes
The automated check noted patterns worth knowing about, such as sudo or a known installer.
NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
Download SKILL.mdSave it as .claude/skills/cost-optimizer/SKILL.md (or your agent's skills folder). This skill also uses 6 other files; get the full folder from GitHub.
name
cost-optimizer
description
Ultimate cost optimization toolkit for OpenClaw/Claude Code. Smart model routing, context compression,
heartbeat tuning, usage reports, config generation — save 60-80% on daily token costs.
(中文) 智能模型路由、上下文压缩、Heartbeat 优化、消耗报告、配置生成,日均节省 60-80%。
Cost Optimizer next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
Cost Optimizer compared with similar skills
Skill
Stars
Used in
Tokens
Auto-check
Licence
Repo updated
Cost Optimizer this skillLeoYeAI/openclaw-master-skills
A skill your agent uses when the user wants to capture AI tool costs, review spending trends, set cost budgets, or integrate cost data into health snapshots — guides quarterly cost capture, records…
Manages pipelines on a DevOps quality and efficiency platform through its OpenAPI: list workspaces and templates, create, update, run and cancel pipelines, and read run records.
Patches OpenClaw's Feishu extension so an edited document triggers an isolated agent session that reads the doc and replies inline, turning it into a live chat space.
Multi-context memory management system for OpenClaw agents with group-isolated storage, global shared memory, workspace organization, and group-specific skills isolation.
Runs a brand's AI-search visibility work end to end: diagnosing how AI platforms represent it, repositioning it, producing AI-optimized content and monitoring ongoing mentions.
Installs and authenticates the gws CLI, then automates Gmail, Drive, Sheets, Calendar, Docs, Chat and Tasks with ready-made recipes, persona bundles and security audits.
Runs four advisor roles, a fitness coach, nutritionist, data analyst and TCM practitioner, to build a health profile and track workouts, diet and wellness over time.
Ultimate cost optimization toolkit for OpenClaw/Claude Code. Cost Optimizer is an agent skill from LeoYeAI/openclaw-master-skills. Ultimate cost optimization toolkit for OpenClaw/Claude Code.
When should I use Cost Optimizer?
Cost Optimizer fits situations like: tasks that involve LLM cost and token optimization; tasks that involve Model routing and gateways.
How do I install Cost Optimizer in Claude Code?
Run `npx skills add LeoYeAI/openclaw-master-skills --skill cost-optimizer -a claude-code`. Or copy the skill folder (skills/cost-optimizer in LeoYeAI/openclaw-master-skills) into .claude/skills/cost-optimizer in your project. Claude Code loads it when a task matches its description.
How do I install Cost Optimizer in Codex?
Run `npx skills add LeoYeAI/openclaw-master-skills --skill cost-optimizer -a codex`. Or copy the skill folder (skills/cost-optimizer in LeoYeAI/openclaw-master-skills) into .agents/skills/cost-optimizer in your project. Codex loads it when a task matches its description.
Can I use Cost Optimizer in Cursor, Gemini CLI or GitHub Copilot?
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add LeoYeAI/openclaw-master-skills --skill cost-optimizer -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/cost-optimizer, .gemini/skills/cost-optimizer, .github/skills/cost-optimizer and .opencode/skills/cost-optimizer in your project.
What does Cost Optimizer need to run?
Going by SKILL.md and its folder, Cost Optimizer needs TypeScript for the scripts in its folder. Our summary lists: Node.js. Its frontmatter pre-approves these tools: Bash, Read, Write, Edit, Grep, Glob, Agent.
Does Cost Optimizer access the network?
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Is Cost Optimizer safe to install?
Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.
What licence does Cost Optimizer use?
Cost Optimizer is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
How many tokens does Cost Optimizer use?
About 3.3k tokens (SKILL.md is roughly 13k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 2.9k tokens, read only when the agent opens those files.
What are the alternatives to Cost Optimizer?
Skills that share tags, products or a category with Cost Optimizer: Cost Tracking (Habitat-Thinking/ai-literacy-superpowers, 114 stars), Cost Aware LLM Pipeline (majiayu000/claude-skill-registry, 666 stars), LLM Router (curiositech/some_claude_skills, 243 stars) and Openrouter Context Optimization (jeremylongshore/tons-of-skills-marketplace, 2.8k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
Who maintains Cost Optimizer?
LeoYeAI (a GitHub user) maintains it in LeoYeAI/openclaw-master-skills, which has 2,159 GitHub stars. The repository holds 972 skills in this directory. The repository was last updated on July 20, 2026.