Agent skill

Openclaw Optimize

by LeoYeAI in LeoYeAI/openclaw-master-skills

Audit and optimize OpenClaw token usage, cron job efficiency, and agent performance.

MITAuto-check: notesProductivity & Automation

Install Openclaw Optimize

skills CLI
$ npx skills add LeoYeAI/openclaw-master-skills --skill openclaw-optimize -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install LeoYeAI/openclaw-master-skills openclaw-optimize --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/openclaw-optimize .claude/skills/openclaw-optimize && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
openclaw-optimize
GitHub stars
2.2k
Token cost
~4.5k tokens
SKILL.md length
1,855 words
Files
2
Skills in repo
972
Repo updated
First seen
Licence
MIT

At a glance

Audit and optimize OpenClaw token usage, cron job efficiency, and agent performance.

  • Works in 6 steps: Understand the Environment → Audit Cron Jobs → Deep Trace Analysis → …
  • User says optimize openclaw
  • SKILL.md covers How This Skill Works, Phase 1: Understand the…, Phase 2: Audit Cron Jobs and Phase 3: Deep Trace Analysis, plus 3 more sections
  • Calls python3

What it does

Openclaw Optimize is an agent skill from LeoYeAI/openclaw-master-skills. Audit and optimize OpenClaw token usage, cron job efficiency, and agent performance. Use when user says "optimize openclaw", "reduce token usage", "cron audit", "why hitting rate limits", "token usage is high", "optimize crons", "agent is slow", or needs to diagnose cost/performance issues.

Its SKILL.md is about 4.5k tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file (for example `_meta.json`).

It sits in Productivity & Automation, covering Scheduled and recurring tasks, LLM cost and token optimization and Rate limiting. 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

  • User says optimize openclaw
  • Reduce token usage
  • Why hitting rate limits
  • Token usage is high

Example prompts

  • “optimize openclaw”
  • “reduce token usage”
  • “cron audit”
  • “/openclaw-optimize”

Requirements

  • Python 3

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. Understand the Environment
  2. Audit Cron Jobs
  3. Deep Trace Analysis
  4. Check Gateway Log
  5. Optimization Options
  6. Apply Changes

What it can do on your machine

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 nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • python3

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • docs.openclaw.ai

    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

Openclaw Optimize loads about 4.5k tokens when it runs. Until then it costs about 77 tokens; SKILL.md has 1,855 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~77
When it runs · the whole SKILL.md, loaded when a task matches
~4.5k

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.

  • NoteRuns commands with sudoSKILL.md:431
    sudo systemctl restart openclaw-gateway

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.

SKILL.md

The full file from LeoYeAI/openclaw-master-skills at commit e5199b5, republished under its MIT licence (© LeoYeAI). 1,855 words, ~4,512 tokens.

Download SKILL.mdSave it as .claude/skills/openclaw-optimize/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
openclaw-optimize
description
Audit and optimize OpenClaw token usage, cron job efficiency, and agent performance. Use when user says "optimize openclaw", "reduce token usage", "cron audit", "why hitting rate limits", "token usage is high", "optimize crons", "agent is slow", or needs to diagnose cost/performance issues.

OpenClaw Optimization Skill

You are an optimization consultant for OpenClaw. You audit cron jobs, trace agent sessions, identify token waste, and fix inefficiencies — collaboratively with the user.

You do NOT make assumptions about what should change. You gather data, present findings, explain what each number means, and ask the user what matters to them before proposing changes. The user knows their workflows better than you do.

Documentation:


How This Skill Works

This is a step-by-step interactive process. Do NOT run all phases at once. Complete each phase, present findings to the user, and ask how to proceed before moving on.

Your approach:

  1. Gather data (read config, list crons, pull traces)
  2. Present findings clearly with actual numbers
  3. Ask the user to explain their intent for each job — why does it run at this frequency? What's the acceptable delay?
  4. Propose specific changes with projected savings
  5. Apply changes ONLY after explicit approval
  6. Verify the changes worked

Phase 1: Understand the Environment

Step 1.1: Locate OpenClaw

Check what's installed and where config lives:

bash
which openclaw 2>/dev/null || echo "openclaw not in PATH"
cat ~/.openclaw/openclaw.json 2>/dev/null | head -5 || echo "No OpenClaw config"

If openclaw isn't in PATH but is installed via Homebrew:

bash
export PATH=/opt/homebrew/bin:$PATH
Step 1.2: Check for enabled plugins
bash
cat ~/.openclaw/openclaw.json | python3 -c "
import json, sys
cfg = json.load(sys.stdin)
plugins = cfg.get('plugins', {}).get('entries', {})
for name, p in plugins.items():
    print(f'{name}: enabled={p.get(\"enabled\", \"?\")}')
"

Note which plugins are enabled — they contribute to system prompt size on every agent session, including cron runs.

Ask the user: "These plugins are loaded into every cron run. Do any of your crons actually use [plugin name]?"


Phase 2: Audit Cron Jobs

Step 2.1: List all cron jobs
bash
openclaw cron list --json 2>/dev/null

Parsing note: OpenClaw CLI may print config warnings to stdout before the JSON. When parsing programmatically, strip everything before the first {:

python
start = output.index('{')
data = json.loads(output[start:])
Step 2.2: Build the summary table

For each job, extract and present:

FieldWhere to find itWhy it matters
nameTop-levelJob identity
scheduleschedule.kind, schedule.everyMs, schedule.exprHow often it runs
sessionTargetTop-level"isolated" = fresh context every run. "session:name" = persistent context across runs.
payload.modelpayload.modelWhich model is billed
payload.messagepayload.messageThe full prompt (check length and verbosity)
state.lastDurationMsstateHow long each run takes
state.consecutiveErrorsstateFailing jobs still burn tokens

Present to user as a table. Ask: "Do any of these surprise you? Is any frequency higher than you expected?"

Step 2.3: Get run history with token counts

For each job:

bash
openclaw cron runs --id <JOB_ID> --limit 10

Each run entry contains:

json
{
  "usage": {
    "input_tokens": 8,       // User message tokens (the cron prompt)
    "output_tokens": 6407,    // Agent response tokens
    "total_tokens": 77755     // FULL context sent to the API
  },
  "durationMs": 98311,
  "summary": "..."
}
Understanding the token breakdown
total_tokens = system_prompt + input_tokens + output_tokens

system_prompt = total_tokens - input_tokens - output_tokens

The system prompt includes: SOUL.md, USER.md, MEMORY.md, all tool definitions, all enabled plugin tool manifests, and workspace context files. This is sent on every single isolated cron run. It is typically the dominant cost (60-90% of total tokens).

Step 2.4: Calculate daily burn

For each job, calculate:

runs_per_day:
  "every Xms" → 86,400,000 / everyMs
  "cron 0 6-22 * * *" → count hours in range (17 in this example)
  "cron 0 8 * * *" → 1

daily_tokens = avg_total_tokens × runs_per_day

Present a daily burn table to the user. Rank jobs by daily token consumption, highest first.

Ask: "Now that you can see the costs, which jobs feel like they're running too often? Which ones are mission-critical and need to stay frequent?"


Phase 3: Deep Trace Analysis

Only do this phase if the user wants to understand WHY a specific job is expensive. Don't trace every job — focus on the top token consumers.

Step 3.1: Find the session trace

From a cron run entry, grab the sessionId, then read the trace file:

bash
cat ~/.openclaw/agents/main/sessions/<sessionId>.jsonl
Step 3.2: Understand the trace format

Each line is a JSON object. The important types:

typeWhat it is
sessionSession metadata (version, cwd) — skip
model_changeWhich model was used — note it
thinking_level_changeThinking budget (low/medium/high) — note it
messageAn actual conversation turn — this is where tokens are spent
custom / openclaw.cache-ttlCache TTL marker — skip
Step 3.3: Parse message entries

Each message has message.role and message.content (array of blocks):

Block typeRoleWhat to look for
textuserThe cron prompt. Usually 1-3K chars. If it's huge, the prompt itself is bloated.
thinkingassistantAgent reasoning. Extended thinking on simple tasks = waste.
tool_use / toolCallassistantTool calls. Count them. Are any redundant?
texttoolResultTool results — often the single biggest token cost. Look for massive JSON payloads: history files with hundreds of entries, full browser page snapshots (can be 50-100KB), raw API responses.
textassistant (final)The output summary. If it's 3-6K tokens and the answer is "nothing found," the prompt needs a terse-output directive.
Trace summary script

Run this to get a per-message breakdown of any session:

bash
cat ~/.openclaw/agents/main/sessions/<id>.jsonl | python3 -c "
import json, sys
for line in sys.stdin:
    line = line.strip()
    if not line: continue
    msg = json.loads(line)
    t = msg.get('type','?')
    if t in ('session','model_change','thinking_level_change'): continue
    if t == 'custom':
        st = msg.get('customType','?')
        print(f'  CUSTOM/{st}: {len(json.dumps(msg.get(\"data\",{}))):>6} chars')
    elif t == 'message':
        role = msg.get('message',{}).get('role','?')
        content = msg.get('message',{}).get('content','')
        if isinstance(content, list):
            for block in content:
                bt = block.get('type','?')
                if bt == 'text':
                    print(f'  {role:>12} text: {len(block.get(\"text\",\"\")):>6} chars | {block.get(\"text\",\"\")[:120]}')
                elif bt in ('tool_use','toolCall'):
                    print(f'  {role:>12} tool: {block.get(\"name\",\"?\")} | input: {len(json.dumps(block.get(\"input\",{}))):>6} chars')
                elif bt in ('tool_result','toolResult'):
                    rc = block.get('content','')
                    print(f'  {role:>12} result: {len(str(rc)):>6} chars | {str(rc)[:120]}')
                elif bt == 'thinking':
                    print(f'  {role:>12} thinking: {len(block.get(\"thinking\",\"\")):>6} chars')
                else:
                    print(f'  {role:>12} {bt}: {len(json.dumps(block)):>6} chars')
"

What to flag for the user:

  • Any tool result over 10KB — ask "Does the agent need ALL of this data, or could the prompt be written to request less?"
  • Any "nothing found" output over 500 chars — ask "Would a one-line 'nothing new' response be acceptable here?"
  • Tool calls that read the same file or hit the same endpoint every run — ask "Could this data be cached or kept in a persistent session?"

Phase 4: Check Gateway Log

bash
tail -300 ~/.openclaw/logs/gateway.log
What to look for

Plugin re-initialization spam:

[plugins] [pluginName] Fetching tools from https://...
[plugins] [pluginName] Ready — N tools registered
[plugins] [pluginName] MCP client connected

If this pattern repeats every few minutes, plugins are being initialized on every cron run — even if no cron uses them. Each initialization:

  • Makes outbound HTTPS requests to the plugin's MCP server
  • Adds tool definitions to the system prompt (increasing token count)
  • Adds startup latency to every run

Error patterns:

  • rate_limit or 429 errors — the agent is hitting API/plan limits
  • timeout errors — runs are taking too long
  • auth errors — credential issues

Present findings to user. If plugin spam is present, ask: "Do any of your scheduled crons actually use [plugin name]? If not, this is adding overhead to every run."


Phase 5: Optimization Options

Present these to the user as a menu of options, not a prescriptive list. Explain each one, give the projected impact, and let the user decide what to apply.

Option A: lightContext: true (Biggest single win)

What it does: Skips loading workspace bootstrap files (SOUL.md, USER.md, MEMORY.md, workspace context) into the system prompt for cron runs.

When to use: When the cron prompt is self-contained — it already includes all the instructions the agent needs and doesn't rely on SOUL.md personality or USER.md context.

Projected impact: 40-60% reduction in total_tokens per run. If the system prompt is currently 60K tokens and this cuts it to 10-15K, savings are ~45-50K tokens per run.

How to apply:

bash
openclaw cron edit <JOB_ID> --light-context

Ask the user: "Does this cron job need to know the agent's personality or the user's profile to do its work? If it's just scraping a website or checking an inbox, it probably doesn't."

Option B: Reduce frequency

What it does: Fewer runs = fewer tokens. Linear relationship.

How to decide: Ask the user: "What's the acceptable delay for this job? If something happens, how quickly does it need to be caught — 15 minutes? 30? An hour?"

Common frequency adjustments:

bash
# Change interval
openclaw cron edit <JOB_ID> --every 30m
openclaw cron edit <JOB_ID> --every 1h

# Change cron schedule hours
openclaw cron edit <JOB_ID> --schedule "0 6-18 * * *" --tz "America/Chicago"
Show full SKILL.md (773 more words)Show less
Option C: Delete redundant crons

What it does: If two crons do the same work (e.g., one cron clears stale flags, and another cron already has that as a step), the standalone one is pure waste.

How to find: Compare cron prompts side by side. Look for overlapping steps.

bash
openclaw cron rm <JOB_ID>

Always ask before deleting. Show the user exactly what the cron does and which other cron covers the same work.

Option D: Tighten "nothing found" output

What it does: Reduces output tokens on no-op runs by instructing the agent to be terse when there's nothing to report.

How to apply: Add to the end of the cron prompt:

IMPORTANT: If nothing qualifies for action, respond with ONLY: "No new [items]." Do not list, summarize, or explain what was skipped.

Ask the user: "When this job finds nothing, do you need a detailed explanation of why, or is a simple 'nothing new' sufficient?"

Caution: Editing a cron's --message replaces the entire prompt. Always read the current prompt first from openclaw cron list --json, modify it, save to a temp file, and apply carefully.

Option E: Persistent sessions for stateful crons

What it does: Instead of "isolated" (fresh context every run, re-reads all files), uses a named session that retains context across runs.

When to use: For crons that read a large history file or state file on every run. With a persistent session, the agent already has the previous run's context and only needs to check what's new.

bash
openclaw cron edit <JOB_ID> --session-target "session:my-monitor"

Tradeoff: Persistent sessions accumulate context and may need compaction. The default sessionRetention: "24h" handles cleanup. Ask the user if they're comfortable with this tradeoff.

Option F: Model selection

What it does: Ensures scheduled background tasks use the most cost-effective model.

Sonnet should be the default for crons. Opus is typically 5x+ more expensive and unnecessary for automated tasks like scraping, checking inboxes, or sending digests.

Ask the user: "Are any of these crons doing work that genuinely needs Opus-level reasoning, or would Sonnet handle it fine?"


Phase 6: Apply Changes

ONLY proceed after the user has reviewed and approved specific changes.

Pre-change checklist
  • Recorded baseline daily token estimate
  • Listed all proposed changes with expected savings
  • User has approved each change
Apply each change

For each approved change, apply it and confirm:

bash
openclaw cron edit <JOB_ID> <flags>
Post-change verification
  • Wait for 2-3 runs of each modified cron
  • Pull fresh run data: openclaw cron runs --id <ID> --limit 3
  • Compare total_tokens to baseline
  • Check tail -50 ~/.openclaw/logs/gateway.log for errors
  • Confirm the cron is still producing correct output (read the summary field)
Present results

Show a before/after comparison:

| Job             | Before (tokens/run) | After (tokens/run) | Before (daily) | After (daily) | Savings |
|-----------------|--------------------|--------------------|----------------|---------------|---------|
| ...             | ...                | ...                | ...            | ...           | ...     |

Quick Reference: CLI Commands

bash
# List all cron jobs with full details
openclaw cron list --json

# Get run history for a job (with token usage)
openclaw cron runs --id <JOB_ID> --limit 10

# Check cron scheduler health
openclaw cron status

# Run a job manually for testing
openclaw cron run <JOB_ID> --expect-final --timeout 120000

# Edit job scheduling
openclaw cron edit <JOB_ID> --every 30m
openclaw cron edit <JOB_ID> --schedule "0 6-18 * * *" --tz "America/Chicago"
openclaw cron edit <JOB_ID> --light-context

# Enable/disable without deleting
openclaw cron disable <JOB_ID>
openclaw cron enable <JOB_ID>

# Delete a job (irreversible)
openclaw cron rm <JOB_ID>

# View full config
cat ~/.openclaw/openclaw.json

# View sessions
openclaw sessions --json
openclaw sessions --active 60   # active in last 60 min

# Gateway log
tail -300 ~/.openclaw/logs/gateway.log

# Session trace files
ls ~/.openclaw/agents/main/sessions/
cat ~/.openclaw/agents/main/sessions/<sessionId>.jsonl

Troubleshooting

High total_tokens but low input_tokens + output_tokens

The gap is system prompt overhead (SOUL.md, USER.md, tool defs, plugins). This is the #1 optimization target. Apply lightContext: true.

JSON parsing fails on CLI output

OpenClaw CLI prints config warnings to stdout before JSON. Strip everything before the first { or [ when parsing programmatically.

openclaw command not found

If installed via Homebrew: export PATH=/opt/homebrew/bin:$PATH

Config warnings: "plugin id mismatch"

Cosmetic. The plugin manifest name doesn't match the config entry. Doesn't affect functionality.

Cron edits not taking effect

The gateway hot-reloads most cron config changes. If it doesn't pick up:

bash
# macOS LaunchAgent restart
launchctl kickstart -k gui/$(id -u)/ai.openclaw.gateway

# Or if using systemd
sudo systemctl restart openclaw-gateway
Rate limit errors after optimization

If the user was previously hitting rate limits and the optimization significantly reduces usage, the issue may resolve on its own. Monitor for 24 hours after changes. If still hitting limits, the issue may be the plan tier itself, not the cron efficiency.


Key Concepts to Explain to Users

System prompt overhead: Every time an isolated cron runs, the full system context (personality files, tool definitions, plugin manifests) is sent to the API as the system prompt. This happens before the agent reads a single word of your cron instructions. On a typical OpenClaw setup, this is 30-60K tokens — and it's the same 30-60K tokens on every run. lightContext: true eliminates most of this.

Isolated vs persistent sessions: "isolated" means every cron run starts with zero memory of previous runs. The agent re-reads files, re-discovers state, re-processes history from scratch. "session:name" means the agent remembers what happened last time. Use isolated for truly independent tasks. Use persistent for monitoring jobs that check "what's new since last time."

Output token waste: When a monitoring job finds nothing, the agent often writes a detailed report explaining what it checked and why nothing qualified. This can be 3-25K tokens of output that nobody reads. A single-line "nothing new" directive in the prompt eliminates this.

Plugin tax: Every enabled plugin adds its tool definitions to the system prompt of every agent session — including cron runs that never use those tools. If a plugin is enabled with 7 tools, and you have 96 cron runs per day that never call those tools, that's 96 × (tool definition tokens) wasted.

© LeoYeAI, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in skills/openclaw-optimize of LeoYeAI/openclaw-master-skills.

  • SKILL.md
  • _meta.json

Open the folder on GitHubat commit e5199b5

Compare with similar skills

Openclaw Optimize 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.

Openclaw Optimize compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Openclaw Optimize this skillLeoYeAI/openclaw-master-skills2.2k—~4.5kAutomated safety check: NotesMIT
Cronshibing624/agentica352—~317Automated safety check: PassApache-2.0
SupercompressSupercompress/Supercompress106—~366Automated safety check: PassMIT
Quota Interpretation Ruleskunchenguid/quota-axi144—~1.2kAutomated safety check: PassMIT
LLM Gatewaysickn33/agentic-awesome-skills47k1 repos~2.1kAutomated safety check: PassMIT
Building LoopsPostHog/posthog40k—~3.6kAutomated safety check: PassCustom licence

Similar skills

  • Cron

    shibing624/agentica

    Schedule, list, pause, resume, edit, or run the user's agentica cron jobs with the cronjob tool.

    352 GitHub stars~317 tokensUpdated 14 days ago
    Productivity & AutomationAuto-check passed
  • Supercompress

    Supercompress/Supercompress

    Always-on context compression for OpenClaw. An agent skill from Supercompress/Supercompress.

    106 GitHub stars~366 tokensUpdated yesterday
    Productivity & AutomationAuto-check passed
  • Quota Interpretation Rules

    kunchenguid/quota-axi

    Specifies how quota-axi reads LLM subscription quota windows, derives pace and runway, computes a selection signal and renders output in TOON, JSON and TUI tiers.

    144 GitHub stars~1.2k tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • LLM Gateway

    sickn33/agentic-awesome-skills

    Deploy an API gateway for LLM traffic with load balancing, rate limiting, key management, semantic caching, fallback routing, and cost tracking.

    47k GitHub starsUsed in 1 repo~2.1k tokens
    Backend & APIsAuto-check passed
  • Building Loops

    PostHog/posthog

    Official

    Build a Loop for PostHog Desktop: a workflow that creates an AI task each time its trigger fires, optionally followed by a Slack or email notification with the task's result.

    40k GitHub stars~3.6k tokensUpdated today
    Productivity & AutomationAuto-check passed
  • Sentry Instrument

    getsentry/sentry-for-ai

    Official

    Instrument an application with Sentry — detect the platform, install and initialize the SDK if needed, and wire up any signal — error monitoring, tracing/performance, logging, metrics, profiling…

    268 GitHub stars~3.2k tokensUpdated today
    AI & LLM EngineeringAuto-check passed

More from LeoYeAI/openclaw-master-skills

All 972 skills in this repo
  • DevOps Pipeline Management

    LeoYeAI/openclaw-master-skills

    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.

    2.2k GitHub stars~4.2k tokensUpdated 2 mo ago
    Auto-check: notes
  • Feishu Document Collaboration

    LeoYeAI/openclaw-master-skills

    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.

    2.2k GitHub stars~2k tokensUpdated 2 mo ago
    Auto-check passed
  • Files Memory System

    LeoYeAI/openclaw-master-skills

    Multi-context memory management system for OpenClaw agents with group-isolated storage, global shared memory, workspace organization, and group-specific skills isolation.

    2.2k GitHub stars~3.8k tokensUpdated 2 mo ago
    Auto-check passed
  • GEO-Claw AI Visibility Agent

    LeoYeAI/openclaw-master-skills

    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.

    2.2k GitHub stars~4.7k tokensUpdated 2 mo ago
    Auto-check passed
  • Google Workspace CLI

    LeoYeAI/openclaw-master-skills

    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.

    2.2k GitHub stars~2.6k tokensUpdated 2 mo ago
    Auto-check: notes
  • HealthFit Health Advisors

    LeoYeAI/openclaw-master-skills

    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.

    2.2k GitHub stars~4.4k tokensUpdated 2 mo ago
    Auto-check passed

Questions about Openclaw Optimize

What does Openclaw Optimize do?

Audit and optimize OpenClaw token usage, cron job efficiency, and agent performance. Openclaw Optimize is an agent skill from LeoYeAI/openclaw-master-skills. Audit and optimize OpenClaw token usage, cron job efficiency, and agent performance.

When should I use Openclaw Optimize?

Openclaw Optimize fits situations like: user says optimize openclaw; reduce token usage; why hitting rate limits; token usage is high.

How do I install Openclaw Optimize in Claude Code?

Run `npx skills add LeoYeAI/openclaw-master-skills --skill openclaw-optimize -a claude-code`. Or copy the skill folder (skills/openclaw-optimize in LeoYeAI/openclaw-master-skills) into .claude/skills/openclaw-optimize in your project. Claude Code loads it when a task matches its description.

How do I install Openclaw Optimize in Codex?

Run `npx skills add LeoYeAI/openclaw-master-skills --skill openclaw-optimize -a codex`. Or copy the skill folder (skills/openclaw-optimize in LeoYeAI/openclaw-master-skills) into .agents/skills/openclaw-optimize in your project. Codex loads it when a task matches its description.

Can I use Openclaw Optimize 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 openclaw-optimize -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/openclaw-optimize, .gemini/skills/openclaw-optimize, .github/skills/openclaw-optimize and .opencode/skills/openclaw-optimize in your project.

What does Openclaw Optimize need to run?

Going by SKILL.md and its folder, Openclaw Optimize needs the command-line tools its instructions call (python3). Our summary lists: Python 3.

Does Openclaw Optimize access the network?

SKILL.md names 1 domain. As links in the text: docs.openclaw.ai. This is read from the text; nothing was executed.

Is Openclaw Optimize safe to install?

Our automated static check of SKILL.md found notes only (runs commands with sudo), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Openclaw Optimize use?

Openclaw Optimize is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Openclaw Optimize use?

About 4.5k tokens (SKILL.md is roughly 18k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Openclaw Optimize?

Skills that share tags, products or a category with Openclaw Optimize: Cron (shibing624/agentica, 352 stars), Supercompress (Supercompress/Supercompress, 106 stars), Quota Interpretation Rules (kunchenguid/quota-axi, 144 stars) and LLM Gateway (sickn33/agentic-awesome-skills, 47k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Openclaw Optimize?

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.

Source: LeoYeAI/openclaw-master-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.