OpenClaw Agent Optimization
Use this skill to tune an OpenClaw workspace for cost-aware routing, parallel-first delegation, and lean context.
Default posture
This skill is advisory first.
It should produce:
- audit,
- options,
- recommended plan,
- exact patch proposal,
- rollback,
- verification plan.
No persistent mutations without explicit approval.
Quick start
Full audit (safe, no changes)
Audit my OpenClaw setup for cost, reliability, and context bloat. Output a prioritized plan with rollback notes. Do NOT apply changes.
Context bloat / transcript noise
My OpenClaw context is bloating (slow replies / high cost / lots of transcript noise). Identify the top offenders (tools, crons, bootstrap files, skills) and propose the smallest reversible fixes first. Do NOT apply changes.
Model routing / delegation posture
Propose a model routing plan for (a) coding/engineering, (b) short notifications/reminders, (c) reasoning-heavy research/writing. Include an exact config patch + rollback plan, but do NOT apply changes.
What good output looks like
- Executive summary
- Top drivers
- cost
- context
- reliability
- operator friction
- Options A/B/C with tradeoffs
- Recommended plan (smallest safe change first)
- Exact proposals + rollback + verify
Safety contract
- Do not mutate persistent settings without explicit approval.
- Do not create/update/remove cron jobs without explicit approval.
- If an optimization reduces monitoring coverage, present options and require choice.
- Before any approved change, show:
- exact change,
- expected impact,
- rollback plan,
- post-change verification.
High-ROI optimization levers
1) Output discipline for automation
Make maintenance loops truly silent on success.
2) Separate work from notification
If you want alerts but want interactive context lean:
- do the work quietly
- notify out-of-band with a short human receipt
3) Bootstrap discipline
Keep always-injected files short and load-bearing only.
Move long runbooks into references/ or adjacent notes.
4) Ambient specialist surface reduction
A common hidden tax is too many always-visible specialist skills.
If a workflow is low-frequency or specialist:
- prefer on-demand worker/subagent usage,
- do not keep it permanently ambient in main-chat prompt surface.
5) Measure optimizations authoritatively
Prefer fresh-session /context json or equivalent receipts over “feels better”.
High-signal fields include:
eligible skills
skills.promptChars
projectContextChars
systemPrompt.chars
promptTokens
6) Verification-first ops hygiene
After any approved optimization, verify:
- core chat still works
- recall/behavior did not degrade
- new session actually picks up the change
- rollback path is proven, not theoretical
Workflow (concise)
- Audit rules + memory: keep restart-critical facts only.
- Audit skill surface: trim ambient specialists before touching tool surface.
- Audit transcripts/noise: silence cron and heartbeat success paths.
- Audit model routing and delegation posture.
- Recommend the smallest viable change first.
- Verify on a new session when skill/bootstrap snapshotting exists.
Notes
- Some runtimes snapshot skills/config per session. If you install/update skills and do not see changes, start a new session.
- Prefer short
SKILL.md + references/ for long runbooks.
- If context bloat is the main complaint, pair this skill with
context-clean-up (audit-only).
References
references/optimization-playbook.md
references/model-selection.md
references/context-management.md
references/agent-orchestration.md
references/cron-optimization.md
references/heartbeat-optimization.md
references/memory-patterns.md
references/continuous-learning.md
references/safeguards.md
1---2name: openclaw-agent-optimize3description: Use when: you want a structured audit -> options -> recommended plan to improve an OpenClaw workspace (cost, model routing, context discipline, delegation, reliability). Don't use when: you want immediate config/cron mutations without review, or the question is unrelated to OpenClaw ops. Output: a prioritized plan with exact change proposals, expected impact, and rollback steps. No persistent changes without explicit approval.4license: MIT5---67# OpenClaw Agent Optimization89Use this skill to tune an OpenClaw workspace for **cost-aware routing**, **parallel-first delegation**, and **lean context**.1011## Default posture1213This skill is **advisory first**.14It should produce:15- audit,16- options,17- recommended plan,18- exact patch proposal,19- rollback,20- verification plan.2122No persistent mutations without explicit approval.2324## Quick start25261) **Full audit (safe, no changes)**27> Audit my OpenClaw setup for cost, reliability, and context bloat. Output a prioritized plan with rollback notes. Do NOT apply changes.28292) **Context bloat / transcript noise**30> My OpenClaw context is bloating (slow replies / high cost / lots of transcript noise). Identify the top offenders (tools, crons, bootstrap files, skills) and propose the smallest reversible fixes first. Do NOT apply changes.31323) **Model routing / delegation posture**33> Propose a model routing plan for (a) coding/engineering, (b) short notifications/reminders, (c) reasoning-heavy research/writing. Include an exact config patch + rollback plan, but do NOT apply changes.3435## What good output looks like3637- **Executive summary**38- **Top drivers**39 - cost40 - context41 - reliability42 - operator friction43- **Options A/B/C** with tradeoffs44- **Recommended plan** (smallest safe change first)45- **Exact proposals** + **rollback** + **verify**4647## Safety contract4849- Do not mutate persistent settings without explicit approval.50- Do not create/update/remove cron jobs without explicit approval.51- If an optimization reduces monitoring coverage, present options and require choice.52- Before any approved change, show:53 1. exact change,54 2. expected impact,55 3. rollback plan,56 4. post-change verification.5758## High-ROI optimization levers5960### 1) Output discipline for automation61Make maintenance loops truly silent on success.6263### 2) Separate work from notification64If you want alerts but want interactive context lean:65- do the work quietly66- notify out-of-band with a short human receipt6768### 3) Bootstrap discipline69Keep always-injected files short and load-bearing only.70Move long runbooks into `references/` or adjacent notes.7172### 4) Ambient specialist surface reduction73A common hidden tax is **too many always-visible specialist skills**.74If a workflow is low-frequency or specialist:75- prefer on-demand worker/subagent usage,76- do not keep it permanently ambient in main-chat prompt surface.7778### 5) Measure optimizations authoritatively79Prefer fresh-session `/context json` or equivalent receipts over “feels better”.80High-signal fields include:81- `eligible skills`82- `skills.promptChars`83- `projectContextChars`84- `systemPrompt.chars`85- `promptTokens`8687### 6) Verification-first ops hygiene88After any approved optimization, verify:89- core chat still works90- recall/behavior did not degrade91- new session actually picks up the change92- rollback path is proven, not theoretical9394## Workflow (concise)95961. Audit rules + memory: keep restart-critical facts only.972. Audit skill surface: trim ambient specialists before touching tool surface.983. Audit transcripts/noise: silence cron and heartbeat success paths.994. Audit model routing and delegation posture.1005. Recommend the smallest viable change first.1016. Verify on a **new session** when skill/bootstrap snapshotting exists.102103## Notes104105- Some runtimes snapshot skills/config per session. If you install/update skills and do not see changes, start a new session.106- Prefer short `SKILL.md` + `references/` for long runbooks.107- If context bloat is the main complaint, pair this skill with `context-clean-up` (audit-only).108109## References110111- `references/optimization-playbook.md`112- `references/model-selection.md`113- `references/context-management.md`114- `references/agent-orchestration.md`115- `references/cron-optimization.md`116- `references/heartbeat-optimization.md`117- `references/memory-patterns.md`118- `references/continuous-learning.md`119- `references/safeguards.md`