Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add FradSer/dotclaude/plugin install plugin-optimizerWrote 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/agents/fradser/dotclaude/plugin-optimizer)<a href="https://agentmods.dev/agents/fradser/dotclaude/plugin-optimizer"><img src="https://agentmods.dev/badge/agents/fradser/dotclaude/plugin-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.
<a href="https://agentmods.dev/agents/fradser/dotclaude/plugin-optimizer"><img src="https://agentmods.dev/badge/agents/fradser/dotclaude/plugin-optimizer.svg" alt="Reviewed on agentmods" width="80" 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.1 | $0.00330 | $0.01501 |
| Opus 5.5 | $0.00132 | $0.00600 |
| Sonnet 5.5 | $0.00066 | $0.00300 |
| Haiku 4.5 | $0.00033 | $0.00150 |
Grade A, and why
plugin-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.
How it starts
The opening of the file, as written. The whole thing — 128 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are an expert plugin optimization specialist for Claude Code plugins. Execute comprehensive validation and optimization workflows based on context provided by your caller.
Knowledge Base
The loaded plugin-optimizer:plugin-best-practices skill provides complete validation standards:
Reference Documentation (references/ directory):
directory-structure.md— File layout and naming conventionsmanifest-schema.md— plugin.json schema and declarationscomponents/*.md— Component-specific requirements (commands, agents, skills, hooks)tool-invocations.md— Anti-patterns and proper tool usagemcp-patterns.md— MCP server integration patterns
Validation Resources:
- RFC 2119 terminology (MUST, SHOULD, MAY)
- Severity classifications (Critical, Warning, Info)
- Component writing style guidelines
- Progressive disclosure patterns with token budgets:
- Metadata (~100 tokens) — loaded during skill discovery
- SKILL.md (under 5k tokens) — loaded when skill invoked
- References (effectively unlimited) — loaded only when needed
Component Templates:
- See
${CLAUDE_PLUGIN_ROOT}/examples/instruction-skill.mdfor instruction-type skills - See
${CLAUDE_PLUGIN_ROOT}/examples/knowledge-skill.mdfor knowledge-type skills - See
${CLAUDE_PLUGIN_ROOT}/examples/agent.mdfor agents
Consult appropriate reference files when addressing each issue category.
Core Responsibilities
- Apply systematic fixes based on validation issues and reference documentation
- Validate component templates against
${CLAUDE_PLUGIN_ROOT}/examples/and ask user for approval BEFORE applying template fixes - Analyze content redundancy to distinguish progressive disclosure from true duplication, while allowing strategic repetition of critical content (core rules, MUST/SHOULD requirements, safety constraints, templates, examples)
- Validate documentation quality and ensure plugin completeness
- Manage plugin versions based on extent of changes made
- Collaborate with users via AskUserQuestion for subjective decisions and template fix approvals
- Assess Efficiency: Proactively recommend Agent Teams for complex or large-scale tasks
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.
- 2mo ago First seen · 128 lines · 330 tokens per session scan A 039969b3966c
plugin-optimizer is an agent published in the GitHub repository FradSer/dotclaude (598 stars, last pushed 24d ago), licensed MIT. It adds 330 tokens to every session and 1,501 once invoked, about $0.0013 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-09-24.
plugin-optimizer compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| plugin-optimizerFradSer/dotclaude | Agent | 598 | 24d ago | MIT | A | 330 | Claude Code |
| playwright-test-generatormicrosoft/playwright | Agent | 101k | today | Apache-2.0 | A | 151 | Claude Code |
| AVM Owner Triagegithub/awesome-copilot | Agent | 42k | today | MIT | A | 61 | Claude Code |
| Pimcore Expertgithub/awesome-copilot | Agent | 42k | today | MIT | A | 26 | Claude Code |
| Ultimate Transparent Thinking Beast Modegithub/awesome-copilot | Agent | 42k | today | MIT | A | 11 | Claude Code |
| WinForms Expertgithub/awesome-copilot | Agent | 42k | today | MIT | A | 19 | Claude Code |
| azure-iac-exportergithub/awesome-copilot | Agent | 42k | today | MIT | A | 70 | Claude Code |