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 skills add erstanai/erstan-agent-tools-beta --skill erstan-skill-optimizergit clone --depth 1 https://github.com/erstanai/erstan-agent-tools-betaWrote 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/erstanai/erstan-agent-tools-beta/erstan-skill-optimizer)<a href="https://agentmods.dev/skills/erstanai/erstan-agent-tools-beta/erstan-skill-optimizer"><img src="https://agentmods.dev/badge/skills/erstanai/erstan-agent-tools-beta/erstan-skill-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/skills/erstanai/erstan-agent-tools-beta/erstan-skill-optimizer"><img src="https://agentmods.dev/badge/skills/erstanai/erstan-agent-tools-beta/erstan-skill-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.00068 | $0.01066 |
| Opus 5.5 | $0.00027 | $0.00426 |
| Sonnet 5.5 | $0.00014 | $0.00213 |
| Haiku 4.5 | $0.00007 | $0.00107 |
Grade A, and why
erstan-skill-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 — 87 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Erstan Skill optimizer
Produce a complete, reviewable Skill package candidate that improves reusable behavior while preserving business rules, related files, action metadata, and lifecycle safety. Optimization is proposal-only unless the user explicitly authorizes a saved workspace update, live preview, or later publication.
Required protocol
Read the Skill optimization protocol before proposing or applying a package change. Before a saved update or publication, also read the shared package lifecycle rules.
Workflow
- Establish the requested stage: analysis, local candidate, server
validation, saved package update, live preview, or publication. Do not combine
stages. Read
get_agent_builder_guideto checklifecycle.skillSavesAreDraftsbefore assuming a published Skill can be edited without a live change. - Call
list_agent_skillswhen discovery is required, thenget_agent_skillfor the exact workspace Skill ID. It cannot retrieve asystem:<key>Skill. Record the immutable package name, current version, lifecycle status,publishedVersionandhasDraftwhen exposed, completepackageJson, files, and action declarations. - Correlate run evidence by Agent ID, executed Agent version, and bound Skill ID and immutable Skill version identity when exposed. The latest package may be an unpublished draft, not what ran. When an export contains the exact executed Skill prompt but not its version, compare content cautiously and record that historical package identity remains unverified.
- Inspect
SKILL.md, every related text file, and every executable action as one package. Identify repeated instructions, irrelevant always-loaded context, ambiguous tool arguments, missing batching/recovery/reconciliation, and deterministic work better owned by a sandbox action. - Separate Skill findings from Agent routing/policy, platform persistence/context/export, and connector/provider defects. Do not encode platform workarounds as universal domain instructions.
- Build a complete candidate package and structured diff. Tie every changed file or action field to evidence, an expected outcome, and a regression check. Preserve unmodified files, action identities, runtime/language, entry paths, timeouts, and side-effect declarations.
- Call
validate_agent_skillwith the complete candidate. Compare the returned normalizedpackageJsonwith the submitted package and stop on a dropped/coerced file, path, action, runtime, language, or side-effect field. - Stop at the validated proposal unless a workspace update is explicitly
authorized. Re-read before an authorized update, reconcile drift without
overwriting concurrent changes, and revalidate the complete candidate. Use
the
currentVersionpaired with that baseline asexpectedVersion. - With
lifecycle.skillSavesAreDrafts: true, an update stages a new package and keeps the prior published package live. Do not change status to stage it. Otherwise follow the legacy/unknown-server boundary in the lifecycle rules; a draft-only request must never become an immediate live change. For an explicitly authorized Agent preview of this draft Skill, follow the shared guarded preview rules. - Call
publish_agent_skillonly after separate publication approval for an exact validated draft version.
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.
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 Changed · +10 lines 62788838892a
- 3mo ago First seen · 77 lines · 68 tokens per session scan A 003f9a985040
erstan-skill-optimizer is a skill published in the GitHub repository erstanai/erstan-agent-tools-beta (0 stars, last pushed 5d ago), licensed Apache-2.0. It adds 68 tokens to every session and 1,066 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.
erstan-skill-optimizer compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| erstan-skill-optimizererstanai/erstan-agent-tools-beta | Skill | 0 | 5d ago | Apache-2.0 | A | 68 | Claude Code, Codex |
| rowboat-spacesrowboatlabs/rowboat | Skill | 18k | today | Apache-2.0 | A | 60 | Claude Code, Codex |
| deploy-docker-composeomnigent-ai/omnigent | Skill | 12k | today | Apache-2.0 | A | 84 | Claude Code, Codex |
| create-tech-designhumanlayer/humanlayer | Skill | 13k | 10d ago | Apache-2.0 | A | 16 | Claude Code, Codex |
| haikuagno-agi/agno | Skill | 43k | today | Apache-2.0 | A | 0 | Claude Code, Codex |
| azure-mgmt-botservice-dotnetmicrosoft/skills | Skill | 3.3k | yesterday | MIT | A | 78 | Claude Code |
| fastapi-router-pymicrosoft/skills | Skill | 3.3k | yesterday | MIT | A | 46 | Claude Code |