Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/inclusionai/aworld/optimizernpx skills add inclusionAI/AWorld --skill optimizergit clone --depth 1 https://github.com/inclusionAI/AWorldWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/inclusionai/aworld/optimizer)<a href="https://agentmods.dev/skills/inclusionai/aworld/optimizer"><img src="https://agentmods.dev/badge/skills/inclusionai/aworld/optimizer.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00018 | $0.05965 |
| Opus 5 | $0.00009 | $0.02982 |
| Sonnet 5 | $0.00004 | $0.01193 |
| Haiku 4.5 | $0.00002 | $0.00596 |
Grade A, and why
optimizer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 487 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Agent Optimization Skill (Optimizer)
📌 Mandatory Usage Guidelines
CRITICAL: READ BEFORE USE. Adherence to these rules is essential for the skill to function correctly.
-
Tool Calls are Direct:
- ✅ DO call tool functions like
CAST_ANALYSIS(...)andCAST_CODER(...)directly. - ❌ DO NOT write or show Python code examples that import or manually implement tool logic (e.g.,
from aworld.experimental.ast import ACast). The tools are pre-loaded and ready for direct invocation.
- ✅ DO call tool functions like
-
CAST_ANALYSISQuery Format:- ✅ DO use regular expression (regex) patterns for all
search_astqueries.- Example:
.*MyClassName.*|.*my_function_name.*
- Example:
- ❌ DO NOT use natural language for
search_astqueries.- Incorrect:
"Show me the implementation of the MyClassName class"
- Incorrect:
- ✅ DO use regular expression (regex) patterns for all
-
CAST_CODERWorkflow:- ✅ DO use
CAST_CODER.generate_snapshotto create a backup before any modifications. - ✅ DO generate patch content (either structured JSON for
search_replaceordiffformat text) based on your analysis. The LLM's role is to create the patch content. - ✅ DO use
CAST_CODERactions (likesearch_replace) to apply the generated patch content to the source code. - ❌ DO NOT show Python lists of patches to the user (e.g.,
patches = [...]).
- ✅ DO use
-
Patch Content Rules:
- ✅ DO ensure each patch operation targets only one file.
- ✅ DO create focused patches that modify one logical block of code at a time for clarity and safety.
- ✅ DO verify code with
CAST_ANALYSIS.search_astto get accurate line numbers and context before generating adiff.
📜 Skill Overview
The Optimizer Skill is an advanced agent capability designed to analyze and enhance other agents. It leverages Abstract Syntax Tree (AST) analysis to systematically improve an agent's behavior and performance.
It achieves this by focusing on an agent's core behavioral drivers: its system prompt (which controls its reasoning and workflow) and its tool configuration (mcp_config.py) (which defines its capabilities). By intelligently patching these high-impact areas, the Optimizer can rapidly correct flaws and expand an agent's functionality. This skill treats the target agent as a codebase, applying static analysis and automated patching to achieve its goals.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 4d ago First seen · 487 lines · 18 tokens per session scan A aae44a545c55
optimizer is a skill published in the GitHub repository inclusionAI/AWorld (1,227 stars, last pushed 7d ago), licensed MIT. It adds 18 tokens to every session and 5,965 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
dashclaw-ship
The single command that gets a DashClaw change ON MAIN AND LIVE — it resolves everything blocking production, never defers, and never hands back a checklist. Lands feature branches on main (rebase, gate, merge, push so Vercel deploys), bumps the unified platform+SDK version, and realigns every description of the…
dashclaw-governance
Governance behavior for AI agents governed by DashClaw. Teaches the governance protocol: when to call guard (risk thresholds), how to interpret decisions (allow/warn/block/requireapproval), when to record actions, how to wait for approvals, and session lifecycle management. Loads org-specific policies and capabilities…
instrument-agent
Integrate DashClaw SDK into any agent using the 4-step governance loop.
troubleshoot
Debug DashClaw errors, signal issues, and misconfigurations.
compliance-drift-evals
Set up compliance exports, drift detection, evaluations, scoring, and learning analytics.
build-dashclaw
Contribute to the DashClaw codebase — architecture, scaffolding, tests, CI.