skillopt

skillopt is a skill for Claude Code from rjmurillo/ai-agents. It costs 39 tokens per session (5,285 once invoked), scanned A, original, Apache-2.0.

A controlled way to improve a reusable agent instruction or prompt using scored evaluation tasks. It applies limited edits and keeps a change only when it passes new held-out checks without losing existing passes.

In plain words
What is it for?
Use it to tune a skill, agent file, or prompt against an evaluation set, including repeated failures or safe compression of skills.
Why use it?
It prevents unsupported claims that an instruction is better and stops edits that trade one failure for another. Without scored evaluations, it makes no change.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: mentions subagents; mentions Codex.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the project-toolkit plugin — 86 skills shipped together

Good fit Use it to tune a skill, agent file, or prompt against an evaluation set, including repeated failures or safe compression of skills.

Compare 6 skills from other repositories ↓
Install

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.

Claude Code
/plugin marketplace add rjmurillo/ai-agents
Claude Code
/plugin install project-toolkit

Made for: Claude Code.

Or install project-toolkit, the plugin that ships this one along with the rest of its 86 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 skillopt

README.md
[![agentmods](https://agentmods.dev/badge/skills/rjmurillo/ai-agents/skillopt/github.svg)](https://agentmods.dev/skills/rjmurillo/ai-agents/skillopt)
Your own site
<a href="https://agentmods.dev/skills/rjmurillo/ai-agents/skillopt"><img src="https://agentmods.dev/badge/skills/rjmurillo/ai-agents/skillopt/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 skillopt

Your own site · 80×15
<a href="https://agentmods.dev/skills/rjmurillo/ai-agents/skillopt"><img src="https://agentmods.dev/badge/skills/rjmurillo/ai-agents/skillopt.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,285 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.00039 $0.05285
Opus 5.5 $0.00016 $0.02114
Sonnet 5.5 $0.00008 $0.01057
Haiku 4.5 $0.00004 $0.00528

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

Security

Grade A, and why

skillopt 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 2d ago.

The scan reads SKILL.md. This mod also ships 24 executable files (scripts/_mine_handoff.py, scripts/_mine_records.py, scripts/_mine_sources.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

src/claude/skills/skillopt/SKILL.md · 387 lines

How it starts

The opening of the file, as written. The whole thing — 387 lines — stays where its author put it; the contents beside it link to each section on GitHub.

SkillOpt

A candidate lands only when it adds at least one held-out pass and loses none. No scored eval set means no gate, and no gate means no edit.

SkillOpt treats a skill document as the trainable state of a frozen model. You run rollouts and reflect on failures. The bundled scripts decide whether an edit may exist: the edit budget, the patch applier, the protected-section guard, the rejected-edit buffer, and the acceptance gate are deterministic. Do not edit the target by hand. Route every edit through the scripts so the gate is real. Method: Yang et al., arXiv:2605.23904; this skill does not reproduce its reported gains.

Triggers

Phrase Action
optimize this skill Run the Process below against a scored eval set
make this skill better Same, after the Preconditions pass
compress these skills safely Declare a resource task up front, then gate
tune this prompt against an eval Same loop with a prompt as the target
A skill keeps failing the same way Mine sessions, confirm the defect, then gate

Boundaries

Need Owner
Create a skill, find one, or route a request to one skillforge
Decide skill vs passive context, or compress markdown with no eval context-optimizer
Measured improvement of an existing skill, agent file, or prompt this skill
Held-out optimization of agents, rules, and hooks inside the rjmurillo/ai-agents checkout optimize-artifact.py in that repo's eval tooling (not shipped)

Preconditions (hard stop if unmet)

  1. Target artifact. A SKILL.md, agent file, or prompt.
  2. Scored eval set. A nonempty held-out sel split with per-task pass or fail verifiers (references/eval-set-format.md). Without one, stop and say so. score and pair-gate exit 2 on a missing or empty split.
  3. Canonical owner. Name the versioned source, its generated mirrors, and the live install path before any candidate runs. A file in an eval workspace is not deployed behavior.
  4. Two isolated runners. The candidate author and the sel runner must be separate: a fresh subagent or another session. The sel runner writes and holds the full eval.json. The author gets a train-only copy that keeps the sel task ids but drops the sel task bodies; apply reads only those ids. In every step the author must not write, run, or see the sel prompts, verifiers, or per-task results. Only the gate verdict goes back. If the harness cannot provide both, do not run skillopt. Report that the gate cannot be independent. Replacement holdouts written by the same agent are still exposed.
  5. Right container. For a skill, run context-optimizer placement analysis on SKILL.md before any rollout. On Passive Context and no script actions, stop and report. Never in loop or gates.

Read the full file on GitHub · 387 lines

Files

What ships with it

38 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. 2d ago Changed · -49 tokens per session 7d78d58ca570
  2. 4d ago Changed · +2 lines 4450442d72e5
  3. 5d ago Changed · -23 tokens per session 8dc6bf895263
  4. 6d ago Changed · +4 lines 0b87b32eeaf3
  5. 8d ago Changed 942d973d97fc
  6. 12d ago Changed · +77 lines · +8 tokens per session b56e4d484b20
  7. 1mo ago First seen · 304 lines · 103 tokens per session scan A 8f425bab9a5a

Subscribe to this mod's changes

skillopt is a skill published in the GitHub repository rjmurillo/ai-agents (50 stars, last pushed today), licensed Apache-2.0. It adds 39 tokens to every session and 5,285 once invoked, about $0.0002 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-10-15.

Related

skillopt compared with skills from other repositories

skillopt next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
skilloptrjmurillo/ai-agentsSkill50todayApache-2.0A39Claude Code
architecture-auditfabioc-aloha/Alex_Skill_MallSkill62d agoMITA18Claude Code, Codex
semantic-codebase-intelligencefabioc-aloha/Alex_Skill_MallSkill62d agoMITA81Claude Code, Codex
code-reviewfabioc-aloha/Alex_Skill_MallSkill62d agoMITA19Claude Code, Codex
deep-reviewfabioc-aloha/Alex_Skill_MallSkill62d agoMITA54Claude Code, Codex
extension-audit-methodologyfabioc-aloha/Alex_Skill_MallSkill62d agoMITA32Claude Code, Codex
parity-guard-test-patternfabioc-aloha/Alex_Skill_MallSkill62d agoMITA28Claude Code, Codex