Skip to content
Back to skills

Inference Optimizer

ASecurity

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.

  • 225 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 4, 2026
toolsbash

Security analysis

A100/100

Pro scans all 13 files and shows the line behind each finding

Scanned September 4, 2026

npx -y skills add NeverSight/skills_feed --skill inference-optimizer --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Inference Optimizer?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Inference Optimizer
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/neversight-inference-optimizer/badge)](https://www.skillsdirectory.com/skills/neversight-inference-optimizer)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: inference-optimizer
description: 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.
license: MIT
metadata:
  author: clawdbot
  version: "0.1.0"
---

# 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.

Files in this skill

  • SKILL.md1.4 KB
  • description_ar.txt323 B
  • description_cn.txt187 B
  • description_de.txt288 B
  • description_en.txt181 B
  • description_es.txt231 B
  • description_fr.txt256 B
  • description_it.txt251 B
  • description_ja.txt331 B
  • description_ko.txt250 B
  • description_ru.txt414 B
  • description_tw.txt190 B
  • stats.json66 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.