skillopt

skillopt is a skill for Claude Code from rjmurillo/ai-agents. It costs 103 tokens per session (3,745 once invoked), scanned A, original, MIT.

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: reads .claude/ paths; mentions subagents; mentions Claude Code.

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 — 125 skills, 25 commands, 33 agents, 5 hooks 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 125 skills, 25 commands, 33 agents, 5 hooks.

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 103 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,745 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.00103 $0.03745
Opus 5.5 $0.00041 $0.01498
Sonnet 5.5 $0.00021 $0.00749
Haiku 4.5 $0.00010 $0.00375

Measured 3d ago against content hash 8f425bab9a5a, 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 3d ago.

The scan reads SKILL.md. This mod also ships 8 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.

.claude/skills/skillopt/SKILL.md · 304 lines

How it starts

The opening of the file, as written. The whole thing — 304 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. The paper's reported gains are its claims; this skill does not reproduce them.

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 repository'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.

Read the full file on GitHub · 304 lines

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. 3d 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 (48 stars, last pushed today), licensed MIT. It adds 103 tokens to every session and 3,745 once invoked, about $0.0004 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

Other skills, from other repositories

parity-guard-test-pattern

When checking that all callers of a contract implement it correctly, you get false positives from wrapper delegators.

fabioc-aloha/Alex_Skill_Mall · 28 tokens

phoenix-review

Review completed work against the Intent Contract's acceptance criteria using objective evidence, not opinion — re-run every check, confirm no regressions, inspect the tamper-evident trace, and surface only real issues (bugs, unmet criteria, regressions). Use before shipping, after a feature is built, or when the user…

All-The-Vibes/ATV-Phoenix · 78 tokens

loop-verifier

Independent verification agent for loop-produced changes. Finds reasons to reject. Runs tests. Confirms diff scope. Use after minimal-fix or any implementer sub-agent — never in the same role as the implementer.

cobusgreyling/loop-engineering · 47 tokens

verification

Verification-before-completion discipline ensuring all success criteria are met, tests pass, and reviews complete before declaring work done.

a5c-ai/babysitter · 25 tokens

053-design-simple-rules

Use when Java design, refactoring, or implementation tradeoffs should be evaluated with Kent Beck's simple design rules, including passes the tests, reveals intention, has no duplication, and has the fewest elements. This should trigger for requests such as Apply simple design rules; Review this design with Beck's…

jabrena/plinth · 86 tokens

Pair Programming

AI-assisted pair programming with multiple modes (driver$navigator$switch), real-time verification, quality monitoring, and comprehensive testing. Supports TDD, debugging, refactoring, and learning sessions. Features automatic role switching, continuous code review, security scanning, and performance optimization with…

ruvnet/ruflo · 61 tokens