excalidraw-architectur…
Trigger when the user asks for an architecture diagram, says "draw the system", "update the architecture diagram", "give me an…
Trigger when the user asks to audit Claude Code costs, reduce token spend, says "my Claude bill is too high", "optimize my CLAUDE.md", "why is this project burning tokens", or "/cost-optimizer". Scans a project for the common Claude Code cost leaks and returns a prioritized fix
$ npx -y skills add mergisi/awesome-openclaw-agents --skill cost-optimizer --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/cost-optimizerContext preview
The summary Claude sees to decide when to auto-load this skill.
Trigger when the user asks to audit Claude Code costs, reduce token spend, says "my Claude bill is too high", "optimize my CLAUDE.md", "why is this project burning tokens", or "/cost-optimizer". Scans a project for the common Claude Code cost leaks and returns a prioritized fix
name: cost-optimizer description: Trigger when the user asks to audit Claude Code costs, reduce token spend, says "my Claude bill is too high", "optimize my CLAUDE.md", "why is this project burning tokens", or "/cost-optimizer". Scans a project for the common Claude Code cost leaks and returns a prioritized fix list.
Audit a project's Claude Code setup for the handful of well-known cost leaks and output a prioritized remediation list. This is a static inspection — no pricing API calls, no guesswork about past spend.
Run each check and record `PASS` / `WARN` / `FAIL` with a short note.
wc -l CLAUDE.md .claude/CLAUDE.md 2>/dev/null
Fix: move reference material (API keys, runbooks, verbose examples) into skill files or `docs/`, and leave CLAUDE.md as a thin pointer.
find ~/.claude/projects -name 'MEMORY.md' -exec wc -l {} \;
find .claude/memory -type f -exec wc -l {} \; 2>/dev/nullFix: extract old sections into `memory/<topic>.md` detail files and link from the index.
ls ~/.claude/skills/ .claude/skills/ 2>/dev/null
Grep the project for Task/agent launch patterns:
grep -rn 'TaskCreate\|subagent\|parallel.*agent' --include='*.md' --include='*.js' --include='*.ts' .
Fix: pass a short brief + a handful of file paths to each subagent, not the entire CLAUDE.md context.
Look for `.claude/settings.json` and check if the project sets an unusually short cache TTL, or if hooks invalidate the cache every message (e.g. a hook that echoes a timestamp into the system prompt).
Grep for explicit model pins:
grep -rn 'opus\|sonnet\|haiku\|claude-3\|claude-4' .claude/ CLAUDE.md 2>/dev/null
du -sh ~/.claude/projects/*/sessions 2>/dev/null | sort -h | tail -5
Huge session dirs suggest you never `/compact` long-running threads. Suggest periodic compaction.
Print a ranked list. Top of the list = biggest win per effort.
Cost Optimizer — <project> Priority 1 (FAIL) [CLAUDE.md] 412 lines — prepended every turn. Extract sections into skills/. [cache hygiene] .claude/settings.json hook injects `date +%s` on SessionStart. Remove it. Priority 2 (WARN) [memory] MEMORY.md is 820 lines. Index top, details linked. [model pinning] Opus 4.6 pinned in 4 skill files — 2 could drop to Sonnet 4.6. Priority 3 (nice-to-have) [skills] 3 skills (haiku-card, foo, bar) never invoked in last 30 days. Estimated impact: roughly halving per-turn overhead — validate with a before/after /cost check.
Do not invent dollar savings. You can estimate relative impact ("~30% smaller context") but not absolute currency unless the user provides their current bill.
A curated collection of 205 production-ready AI agent templates for the OpenClaw ecosystem. Every template is a copy-paste ready SOUL.md file.
Trigger when the user asks for an architecture diagram, says "draw the system", "update the architecture diagram", "give me an…
Trigger when the user asks to write a commit message, generate a commit from staged changes, review a diff before committing, or…
Trigger when the user asks which model to use, wants to compare model costs, says "what's cheapest for this task", "should I use…
Trigger when an OpenClaw agent is broken, silent, crashing, stuck, not responding, returning empty output, or the user says "my…
Paste any code snippet and get a plain English explanation of what it does and how it works.
Generate a clean, conventional commit message from a description of your changes.