Openclaw Agent Optimize
Use when: you want a structured audit -> options -> recommended plan to improve an OpenClaw workspace (cost, model routing, context discipline, delegation, r...
phenomenoner
@phenomenoner
Install
$ openclaw skills install @phenomenoner/openclaw-agent-optimizeOpenClaw 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 skillsskills.promptCharsprojectContextCharssystemPrompt.charspromptTokens
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.mdreferences/model-selection.mdreferences/context-management.mdreferences/agent-orchestration.mdreferences/cron-optimization.mdreferences/heartbeat-optimization.mdreferences/memory-patterns.mdreferences/continuous-learning.mdreferences/safeguards.md
Related skills
Agent Builder
@plgonzalezrx8Build high-performing OpenClaw agents end-to-end. Use when you want to design a new agent (persona + operating rules) and generate the required OpenClaw workspace files (SOUL.md, IDENTITY.md, AGENTS.md, USER.md, HEARTBEAT.md, optional MEMORY.md + memory/YYYY-MM-DD.md). Also use to iterate on an existing agent’s behavior, guardrails, autonomy model, heartbeat plan, and skill roster.
Model Router
@digitaladaptionA comprehensive AI model routing system that automatically selects the optimal model for any task. Set up multiple AI providers (Anthropic, OpenAI, Gemini, Moonshot, Z.ai, GLM) with secure API key storage, then route tasks to the best model based on task type, complexity, and cost optimization. Includes interactive setup wizard, task classification, and cost-effective delegation patterns. Use when you need "use X model for this", "switch model", "optimal model", "which model should I use", or to balance quality vs cost across multiple AI providers.
Skillcraft
@jmz1Design and build OpenClaw skills. Use when asked to "make/build/craft a skill", extract ad-hoc functionality into a skill, or package scripts/instructions for reuse. Covers OpenClaw-specific integration (tool calling, memory, message routing, cron, canvas, nodes) and ClawHub publishing.
TaskMaster - AI Cost Optimizer
@jlwrowProject manager and task delegation system. Use when you need to break down complex work into smaller tasks, assign appropriate AI models based on complexity, spawn sub-agents for parallel execution, track progress, and manage token budgets. Ideal for research projects, multi-step workflows, or when you want to delegate routine tasks to cheaper models while handling complex coordination yourself.
Cron Mastery
@i-mwMaster OpenClaw's timing systems. Use for scheduling reliable reminders, setting up periodic maintenance (janitor jobs), and understanding when to use Cron v...
Cron & Scheduling
@gitgoodordietryingSchedule and manage recurring tasks with cron and systemd timers. Use when setting up cron jobs, writing systemd timer units, handling timezone-aware scheduling, monitoring failed jobs, implementing retry patterns, or debugging why a scheduled task didn't run.