Agent skill

Inference Optimizer

by aAAaqwq in aAAaqwq/AGI-Super-Team

Audit OpenClaw token usage, purge stale sessions, and optimize inference speed.

MITAuto-check passed

Install Inference Optimizer

skills CLI
$ npx skills add aAAaqwq/AGI-Super-Team --skill inference-optimizer -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install aAAaqwq/AGI-Super-Team inference-optimizer --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/aAAaqwq/AGI-Super-Team.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/inference-optimizer .claude/skills/inference-optimizer && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
inference-optimizer
GitHub stars
105
Used in
1 other repo
Token cost
~355 tokens
SKILL.md length
143 words
Files
9 (incl. scripts)
Skills in repo
161
Repo updated
First seen
Licence
MIT

At a glance

Audit OpenClaw token usage, purge stale sessions, and optimize inference speed.

  • Works in 3 steps: Audit: Exec bash… → Purge: If user approves purge after… → Full optimization: For Task 1–5…
  • The user sends /optimize
  • SKILL.md covers Triggers, Workflow, Path Resolution and Allowlist
  • Runs Shell scripts from its folder; calls bash

What it does

Inference Optimizer is an agent skill from aAAaqwq/AGI-Super-Team. 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.

Its SKILL.md is about 360 tokens, which your agent loads only when the skill is triggered. The skill folder holds 9 other files, including scripts (for example `README.md`, `optimization-agent.md` and `scripts/openclaw-audit.sh`).

It works with Bash. The repository describes itself as: An installable, cross-framework AI organization: C-suite agents, expert subagents, curated skills, independent review, and one-command setup across 18 AI client/runtime adapters. The licence is MIT.

When your agent uses it

  • The user sends /optimize
  • Asks to purge sessions
  • Wants a token/workspace audit

Example prompts

  • “/inference-optimizer”

Requirements

  • A Bash shell

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. Audit: Exec bash /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 /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.

What it can do on your machine

Read from SKILL.md and the folder at commit 331ecd3. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 4 files in scripts/ (Shell), which the agent can run.

    Shell commands in SKILL.md call:

    • bash

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Inference Optimizer loads about 355 tokens when it runs. Until then it costs about 50 tokens; SKILL.md has 143 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~50
When it runs · the whole SKILL.md, loaded when a task matches
~355

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from aAAaqwq/AGI-Super-Team at commit 331ecd3, republished under its MIT licence (© aAAaqwq). 143 words, ~355 tokens.

Download SKILL.mdSave it as .claude/skills/inference-optimizer/SKILL.md (or your agent's skills folder). This skill also uses 8 other files; get the full folder from GitHub.
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
metadata.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.

© aAAaqwq, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 8 other files (scripts) in skills/inference-optimizer of aAAaqwq/AGI-Super-Team.

  • SKILL.md
  • .gitignore
  • LICENSE
  • README.md
  • optimization-agent.md
  • scripts/openclaw-audit.sh
  • scripts/purge-stale-sessions.sh
  • scripts/setup.sh
  • scripts/verify.sh

Open the folder on GitHubat commit 331ecd3

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in aAAaqwq/AGI-Super-Team, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Inference Optimizer next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Inference Optimizer compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Inference Optimizer this skillaAAaqwq/AGI-Super-Team1051 repos~355Automated safety check: PassMIT
Hook Development for Claude Code Pluginsanthropics/claude-plugins-official37k11 repos~4.1kAutomated safety check: NotesApache-2.0
Plugin Settings Patternanthropics/claude-plugins-official37k7 repos~3kAutomated safety check: PassApache-2.0
Mole Bug Patternstw93/Mole69k—~2kAutomated safety check: PassGPL-3.0
Neat-Freak Knowledge CloseoutKKKKhazix/khazix-skills21k—~1.9kAutomated safety check: PassMIT
CCPM Project Managementautomazeio/ccpm8.4k—~1.1kAutomated safety check: PassMIT

Similar skills

  • Hook Development for Claude Code Plugins

    anthropics/claude-plugins-official

    Official

    Explains how to write Claude Code plugin hooks, both prompt-based checks and bash commands, for events such as PreToolUse, Stop and SessionStart.

    37k GitHub starsUsed in 11 repos~4.1k tokens
    Agent WorkflowsAuto-check: notes
  • Plugin Settings Pattern

    anthropics/claude-plugins-official

    Official

    Shows how Claude Code plugins keep per-project settings and state in .claude/plugin-name.local.md files with YAML frontmatter and a markdown body.

    37k GitHub starsUsed in 7 repos~3k tokens
    Agent WorkflowsAuto-check passed
  • A catalog of recurring bug shapes in the Mole Mac cleaner, used to review safety-sensitive diffs for deletion safety, unbounded commands, shell traps and weak tests.

    69k GitHub stars~2k tokensUpdated today
    DevelopmentAuto-check passed
  • Neat-Freak Knowledge Closeout

    KKKKhazix/khazix-skills

    Brings project docs, agent rule files, authorized memory and leftover workspace files back in line with what the code and runtime actually do at the end of a work session.

    21k GitHub stars~1.9k tokensUpdated 6 days ago
    Agent WorkflowsAuto-check passed
  • Runs a spec-driven workflow from PRD to epic to GitHub issues to parallel agents, with status, standup and blocked-work reports from bundled scripts.

    8.4k GitHub stars~1.1k tokensUpdated 6 mo ago
    Product & Project ManagementAuto-check passed
  • Crush Configuration

    charmbracelet/crush

    Explains how to configure the Crush coding agent with crushrc or crush.json, covering providers, models, LSPs, MCP servers, hooks, permissions and config precedence.

    29k GitHub stars~3.7k tokensUpdated today
    Agent WorkflowsAuto-check passed

More from aAAaqwq/AGI-Super-Team

All 161 skills in this repo
  • Content Creator

    aAAaqwq/AGI-Super-Team

    Create SEO-optimized marketing content with consistent brand voice.

    105 GitHub starsUsed in 3 repos~1.9k tokens
    Auto-check passed
  • Financial Calculator

    aAAaqwq/AGI-Super-Team

    Advanced financial calculator with future value tables, present value, discount calculations, markup pricing, and compound interest.

    105 GitHub starsUsed in 1 repo~1.5k tokens
    Auto-check passed
  • Performing Security Code Review

    aAAaqwq/AGI-Super-Team

    This skill provides automated assistance for security agent tasks Execute this skill enables AI assistant to conduct a security-focused code review using the security-agent plugin.

    105 GitHub starsUsed in 1 repo~920 tokens
    Auto-check passed
  • Frontend Design Ultimate

    aAAaqwq/AGI-Super-Team

    Create distinctive, production-grade static sites with React, Tailwind CSS, and shadcn/ui — no mockups needed.

    105 GitHub starsUsed in 2 repos~2.7k tokens
    Auto-check passed
  • Sysadmin Toolbox

    aAAaqwq/AGI-Super-Team

    Tool discovery and shell one-liner reference for sysadmin, DevOps, and security tasks.

    105 GitHub starsUsed in 2 repos~775 tokens
    Auto-check passed
  • Zsxq Smart Publish

    aAAaqwq/AGI-Super-Team

    Publish and manage content on 知识星球 (zsxq.com). An agent skill from aAAaqwq/AGI-Super-Team.

    105 GitHub stars~1.5k tokensUpdated 10 days ago
    Auto-check passed

Works with

Questions about Inference Optimizer

What does Inference Optimizer do?

Audit OpenClaw token usage, purge stale sessions, and optimize inference speed. Inference Optimizer is an agent skill from aAAaqwq/AGI-Super-Team. Audit OpenClaw token usage, purge stale sessions, and optimize inference speed.

When should I use Inference Optimizer?

Inference Optimizer fits situations like: the user sends /optimize; asks to purge sessions; wants a token/workspace audit.

How do I install Inference Optimizer in Claude Code?

Run `npx skills add aAAaqwq/AGI-Super-Team --skill inference-optimizer -a claude-code`. Or copy the skill folder (skills/inference-optimizer in aAAaqwq/AGI-Super-Team) into .claude/skills/inference-optimizer in your project. Claude Code loads it when a task matches its description.

How do I install Inference Optimizer in Codex?

Run `npx skills add aAAaqwq/AGI-Super-Team --skill inference-optimizer -a codex`. Or copy the skill folder (skills/inference-optimizer in aAAaqwq/AGI-Super-Team) into .agents/skills/inference-optimizer in your project. Codex loads it when a task matches its description.

Can I use Inference Optimizer in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add aAAaqwq/AGI-Super-Team --skill inference-optimizer -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/inference-optimizer, .gemini/skills/inference-optimizer, .github/skills/inference-optimizer and .opencode/skills/inference-optimizer in your project.

What does Inference Optimizer need to run?

Going by SKILL.md and its folder, Inference Optimizer needs a shell for the scripts in its folder and the command-line tools its instructions call (bash). Our summary lists: A Bash shell.

Does Inference Optimizer access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Inference Optimizer safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Inference Optimizer use?

Inference Optimizer is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Inference Optimizer use?

About 355 tokens (SKILL.md is roughly 1.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Inference Optimizer?

Skills that share tags, products or a category with Inference Optimizer: Hook Development for Claude Code Plugins (anthropics/claude-plugins-official, 37k stars), Plugin Settings Pattern (anthropics/claude-plugins-official, 37k stars), Mole Bug Patterns (tw93/Mole, 69k stars) and Neat-Freak Knowledge Closeout (KKKKhazix/khazix-skills, 21k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Inference Optimizer?

aAAaqwq (a GitHub user) maintains it in aAAaqwq/AGI-Super-Team, which has 105 GitHub stars. The repository holds 161 skills in this directory. The repository was last updated on September 27, 2026.

Source: aAAaqwq/AGI-Super-Team on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.