skills$openclaw/openclaw-agent-optimize
phenomenoner9.8k

by phenomenoner

openclaw-agent-optimize – OpenClaw Skill

openclaw-agent-optimize is an OpenClaw Skills integration for ai ml workflows. Optimize an OpenClaw agent setup (model routing, context management, delegation, rules, memory). Use when asked about optimizing agents, improving OpenClaw setup, or agent best practices.

9.8k stars8.5k forksSecurity L1
Updated Feb 7, 2026Created Feb 7, 2026ai ml

Skill Snapshot

nameopenclaw-agent-optimize
descriptionOptimize an OpenClaw agent setup (model routing, context management, delegation, rules, memory). Use when asked about optimizing agents, improving OpenClaw setup, or agent best practices. OpenClaw Skills integration.
ownerphenomenoner
repositoryphenomenoner/openclaw-agent-optimize
languageMarkdown
licenseMIT
topics
securityL1
installopenclaw add @phenomenoner/openclaw-agent-optimize
last updatedFeb 7, 2026

Maintainer

phenomenoner

phenomenoner

Maintains openclaw-agent-optimize in the OpenClaw Skills directory.

View GitHub profile
File Explorer
13 files
.
references
agent-orchestration.md
1.0 KB
context-management.md
919 B
continuous-learning.md
898 B
cron-optimization.md
3.0 KB
heartbeat-optimization.md
3.8 KB
memory-patterns.md
901 B
model-selection.md
1.1 KB
optimization-playbook.md
2.8 KB
safeguards.md
2.1 KB
_meta.json
658 B
README.md
3.0 KB
SKILL.md
1.6 KB
SKILL.md

name: openclaw-agent-optimize slug: openclaw-agent-optimize version: 1.0.3 description: Optimize an OpenClaw agent setup (model routing, context management, delegation, rules, memory). Use when asked about optimizing agents, improving OpenClaw setup, or agent best practices. triggers:

  • optimize agent
  • optimizing agent
  • improve OpenClaw setup
  • agent best practices
  • OpenClaw optimization

OpenClaw Agent Optimization

Use this skill to tune an OpenClaw workspace for cost-aware routing, parallel-first delegation, and lean context.

Workflow (concise)

  1. Audit rules + memory: ensure rules are modular/short; memory is only restart-critical facts.
  2. Model routing: confirm tiered routing (lightweight / mid / deep) aligns with live config.
  3. Context discipline: apply progressive disclosure; move large static data to references/scripts.
  4. Delegation protocol: parallelize independent tasks; use sub-agents for long/isolated work.
  5. Heartbeat optimization: treat heartbeat as control-plane; move heavy checks to isolated cron/scripts; offer profiles A/B/C and require user choice if removing checks.
  6. Safeguards: add anti-loop + budget guardrails; prefer fallbacks over retries.

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
README.md

openclaw-agent-optimize

OpenClaw agent optimization skill — model routing, context management, delegation, and cron best practices.

An installable OpenClaw skill that packages battle-tested agent-optimization patterns. Drop it into your workspace and get instant guidance on cost-aware model routing, parallel-first delegation, lean context management, and more.

🙏 Credits & Inspiration

This skill is heavily inspired by affaan-m/everything-claude-code — a production-ready collection of Claude Code configs evolved over 10+ months by an Anthropic hackathon winner. The core philosophy of tiered model selection, progressive disclosure, parallel orchestration, and continuous learning was extracted and adapted from that work for the OpenClaw ecosystem.

Thank you @affaan-m 🎉

📦 What's Inside

FilePurpose
SKILL.mdSkill entry-point — triggers + quick-start workflow
references/model-selection.mdTiered model routing guide
references/context-management.mdContext window discipline + progressive disclosure
references/agent-orchestration.mdParallel-first delegation, split-role sub-agents
references/cron-optimization.mdCron job patterns and model assignment
references/memory-patterns.mdDaily + long-term memory file design
references/continuous-learning.mdHooks → instincts → skills pipeline
references/safeguards.mdAnti-loop + budget guardrails

🚀 Install

clawhub install openclaw-agent-optimize

Manual

Copy the skill folder into your OpenClaw workspace:

cp -r openclaw-agent-optimize ~/. openclaw/workspace/skills/

📖 How to Use

The skill auto-triggers when you ask about optimizing your agent, improving your OpenClaw setup, or following agent best practices. It walks you through a 6-step audit:

  1. Audit rules + memory — modular, short rules; memory is restart-critical only.
  2. Model routing — confirm tiered routing matches live config.
  3. Context discipline — progressive disclosure; large static data → references/scripts.
  4. Delegation — parallelize independent tasks; sub-agents for long/isolated work.
  5. Heartbeat batching — checks grouped by frequency tier.
  6. Safeguards — anti-loop rules + budget guardrails; prefer fallbacks over retries.

🔑 Key Principles (from everything-claude-code)

  • Cheapest capable model first. Escalate only after failure or clear justification.
  • Parallelize by default. Sequential execution is a code smell.
  • Hooks > skills for observation. Hooks fire 100% deterministically; skills fire ~50–80%.
  • Progressive disclosure. Metadata always visible → body on trigger → bundled resources on demand.
  • Batch LLM calls. Classify multiple items in one prompt, not one by one.

📄 License

MIT

Permissions & Security

Security level L1: Low-risk skills with minimal permissions. Review inputs and outputs before running in production.

Requirements

  • OpenClaw CLI installed and configured.
  • Language: Markdown
  • License: MIT
  • Topics:

FAQ

How do I install openclaw-agent-optimize?

Run openclaw add @phenomenoner/openclaw-agent-optimize in your terminal. This installs openclaw-agent-optimize into your OpenClaw Skills catalog.

Does this skill run locally or in the cloud?

OpenClaw Skills execute locally by default. Review the SKILL.md and permissions before running any skill.

Where can I verify the source code?

The source repository is available at https://github.com/openclaw/skills/tree/main/skills/phenomenoner/openclaw-agent-optimize. Review commits and README documentation before installing.