inference-optimizer

Audit OpenClaw token usage, purge stale sessions, and optimize inference speed. Use when the user sends /optimize, /audit, asks to purge sessions, or wants a token/workspace audit.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "inference-optimizer" with this command: npx skills add aaaaqwq/claude-code-skills/aaaaqwq-claude-code-skills-inference-optimizer

Inference Optimizer

Optimize OpenClaw for maximum inference speed and minimum token usage. When user sends /optimize or /audit, exec the audit script and return raw output. When user approves purge, exec the purge script.

Triggers

  • /optimize — run audit
  • /audit — same as /optimize
  • "purge sessions", "purge stale", "clean up sessions" — after audit, if user approves

Workflow

  1. Audit: Exec bash <skill_dir>/scripts/openclaw-audit.sh, return raw output. Do NOT ask what to optimize. Do NOT list options.
  2. Purge: If user approves purge after audit, exec bash <skill_dir>/scripts/purge-stale-sessions.sh, return raw output.
  3. Full optimization: For Task 1–5 (workspace rewrite, heartbeat, deploy), read optimization-agent.md and follow its flow.

Path Resolution

Scripts live at ~/clawd/skills/public/inference-optimizer/scripts/ (or wherever the skill is installed). Use that path when exec-ing.

Allowlist

Purge script needs: find, find *, find **, rm, rm *, rm **, bash, bash *, bash **. Add to exec-approvals.json for the agent if purge is blocked.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Security

security-monitor

No summary provided by upstream source.

Repository SourceNeeds Review
Security

security-audit

No summary provided by upstream source.

Repository SourceNeeds Review
Security

performing-security-code-review

No summary provided by upstream source.

Repository SourceNeeds Review