optimizer

optimizer is a skill for Claude Code from alexmond/alexmskills. It costs 76 tokens per session (329 once invoked), scanned A, original, MIT.

A role for finding unnecessary work and slow parts of a software project. It follows optimization instructions stored in the project's role files and keeps reusable lessons from the work.

In plain words
What is it for?
Use it when you need to optimize code, investigate why something is slow, or reduce memory or computing cost.
Why use it?
It provides a defined process for investigating slow code, high memory use, or poor ability to handle growth while preserving behavior.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: mentions Codex.

Part of the roles plugin — 9 skills shipped together

Good fit Use it when you need to optimize code, investigate why something is slow, or reduce memory or computing cost.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/alexmond/alexmskills/optimizer
Install

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.

Any agent
npx skills add alexmond/alexmskills --skill optimizer
Clone the repo
git clone --depth 1 https://github.com/alexmond/alexmskills

Made for: Claude Code.

Or install roles, the plugin that ships this one along with the rest of its 9 skills.

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

agentmods badge for optimizer

README.md
[![agentmods](https://agentmods.dev/badge/skills/alexmond/alexmskills/optimizer/github.svg)](https://agentmods.dev/skills/alexmond/alexmskills/optimizer)
Your own site
<a href="https://agentmods.dev/skills/alexmond/alexmskills/optimizer"><img src="https://agentmods.dev/badge/skills/alexmond/alexmskills/optimizer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for optimizer

Your own site · 80×15
<a href="https://agentmods.dev/skills/alexmond/alexmskills/optimizer"><img src="https://agentmods.dev/badge/skills/alexmond/alexmskills/optimizer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 76 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 329 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00076 $0.00329
Opus 5.5 $0.00030 $0.00132
Sonnet 5.5 $0.00015 $0.00066
Haiku 4.5 $0.00008 $0.00033

Measured 2mo ago against content hash b66d32376ab5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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 2mo 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.

plugins/roles/skills/optimizer/SKILL.md · 19 lines

What it actually says

Codex: Read the client path before applying this workflow.

Performance optimization

Target: $ARGUMENTS

  1. Load the role. If .claude/roles/optimizer.md exists, read it — it is the canonical, evolving copy. If not, read role.md (the seed shipped with this skill), copy it verbatim to .claude/roles/optimizer.md, then proceed.
  2. Apply it. Adopt the Charter and Body; honor every entry under ## Learnings (core) and ## Learnings (solo).
  3. Work the target following the Body's method and deliverables.
  4. Capture a learning. If this run surfaced a durable, reusable lesson (a fix that took more than one cycle, a stack- or repo-specific gotcha, a stated user preference), append one line under ## Learnings (solo) in .claude/roles/optimizer.md: - YYYY-MM-DD — <one sentence>. Don't log routine one-pass outcomes.
Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

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.

  1. 2mo ago Changed · +3 lines b66d32376ab5
  2. 3mo ago First seen · 16 lines · 76 tokens per session scan A 703edab89767

Subscribe to this mod's changes

optimizer is a skill published in the GitHub repository alexmond/alexmskills (11 stars, last pushed 1mo ago), licensed MIT. It adds 76 tokens to every session and 329 once invoked, about $0.0003 per session on Opus 5.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-31.

Related

optimizer compared with skills from other repositories

optimizer next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
optimizeralexmond/alexmskillsSkill111mo agoMITA76Claude Code
systematic-debuggingNousResearch/hermes-agentSkill268ktodayMITA16Claude Code, Codex
cookie-debuggingasgeirtj/system_prompts_leaksSkill74ktodayCC0-1.0A71Claude Code, Codex
a11y-debuggingasgeirtj/system_prompts_leaksSkill74ktodayCC0-1.0A50Claude Code, Codex
observability-langsmithdavila7/claude-code-templatesSkill35ktodayMITA44Claude Code, Codex
bug-reportDonchitos/Claude-Code-Game-StudiosSkill42k24d agoMITA23Claude Code
bug-triageDonchitos/Claude-Code-Game-StudiosSkill42k24d agoMITA30Claude Code