os-skill-improvement

os-skill-improvement is a skill for Claude Code from richfrem/agent-plugins-skills. It costs 133 tokens per session (1,229 once invoked), scanned A, original, MIT.

A method for improving an existing agent skill through repeated testing and focused revisions. It adapts the RED-GREEN-REFACTOR cycle: observe a failure, make a change, test it, and refine the result.

In plain words
What is it for?
Use it to improve trigger descriptions, routing accuracy, and skill instructions while checking each patch against a baseline.
Why use it?
It uses evaluation results to find routing or instruction problems before keeping a skill change.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the agent-agentic-os plugin — 25 skills, 4 commands, 6 agents, 3 hooks shipped together

Good fit Use it to improve trigger descriptions, routing accuracy, and skill instructions while checking each patch against a baseline.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/richfrem/agent-plugins-skills/os-skill-improvement
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 richfrem/agent-plugins-skills --skill os-skill-improvement
Clone the repo
git clone --depth 1 https://github.com/richfrem/agent-plugins-skills

Made for: Claude Code.

Or install agent-agentic-os, the plugin that ships this one along with the rest of its 25 skills, 4 commands, 6 agents, 3 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 os-skill-improvement

README.md
[![agentmods](https://agentmods.dev/badge/skills/richfrem/agent-plugins-skills/os-skill-improvement/github.svg)](https://agentmods.dev/skills/richfrem/agent-plugins-skills/os-skill-improvement)
Your own site
<a href="https://agentmods.dev/skills/richfrem/agent-plugins-skills/os-skill-improvement"><img src="https://agentmods.dev/badge/skills/richfrem/agent-plugins-skills/os-skill-improvement/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 os-skill-improvement

Your own site · 80×15
<a href="https://agentmods.dev/skills/richfrem/agent-plugins-skills/os-skill-improvement"><img src="https://agentmods.dev/badge/skills/richfrem/agent-plugins-skills/os-skill-improvement.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 133 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,229 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00133 $0.01229
Opus 5 $0.00067 $0.00615
Sonnet 5 $0.00027 $0.00246
Haiku 4.5 $0.00013 $0.00123

Measured yesterday against content hash c96c6832371e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

os-skill-improvement 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 yesterday.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/eval_runner.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.

plugins/agent-agentic-os/skills/os-skill-improvement/SKILL.md · 99 lines

How it starts

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

Skill Continuous Improvement: RED-GREEN-REFACTOR

Adapts the RED-GREEN-REFACTOR cycle from software testing to skill authoring. The key insight: a skill is a testable contract. The failure to follow the contract is observable. Always observe the failure BEFORE writing the fix.

Integrated with:

  • os-eval-runner -- runs eval_runner.py as the GREEN verification step
  • os-improvement-loop -- uses this methodology to gate every proposed skill patch
  • evals/evals.json + results.tsv -- autoresearch eval format for longitudinal tracking

The TDD Mapping

Software TDD Skill Authoring Equivalent
Test case Pressure scenario: a user prompt that should trigger the skill
RED phase Run a baseline WITHOUT the skill. Observe: does the agent violate the intended protocol?
GREEN phase Write the skill. Run os-eval-runner. KEEP only if score >= baseline.
REFACTOR phase Identify loopholes from eval failures. Patch frontmatter or examples. Re-eval.

Iron Law: Run a RED Scenario BEFORE Writing

Never write a new skill without first observing a failure.

The RED scenario is the evidence that the skill is needed. Without it you cannot know the specific failure being fixed, cannot do a before/after comparison, and examples become generic rather than addressing real failure modes. Full steps for running a RED scenario are in references/detailed-reference.md.

Required before any mutation

  1. Skill State Snapshot — run eval_runner.py --skill <experiment-dir> --snapshot to see current score, iteration history, and whether the dominant problem is PRECISION (too many false positives — don't add more keywords) or RECALL (don't add adversarial examples without also adding trigger phrases). Full detail in references/detailed-reference.md.
  2. Hypothesis Block — output failure mode, root cause, change, expected effect, and named regression risk before editing any file. Format and worked example in references/detailed-reference.md. Vague hypotheses ("description too vague") are not acceptable — they produce random mutations and early plateau.

Read the full file on GitHub · 99 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. yesterday Changed · -212 lines c96c6832371e
  2. 9d ago First seen · 311 lines · 133 tokens per session scan A ba4f7bb18459

Subscribe to this mod's changes

os-skill-improvement is a skill published in the GitHub repository richfrem/agent-plugins-skills (6 stars, last pushed today), licensed MIT. It adds 133 tokens to every session and 1,229 once invoked, about $0.0007 per session on Opus 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

Other skills, from other repositories

test-verification

Requires behavioral, failure-path, and durable-seam evidence for tests and review. Use when writing tests, reviewing test coverage, assessing behavioral test quality, or accepting high-risk behavior on test evidence.

Ezra144israel/governed-agent-skills · 43 tokens

test-writing

Write comprehensive tests for code including unit tests, integration tests, and end-to-end tests. Use this to ensure code quality, catch bugs, and validate functionality.

KarmaloopAI/Jiva · 35 tokens

tdd-xfail

Use when fixing a bug through strict xfail reproduction and needing proof that the test fails for the intended reason.

tony/skills · 27 tokens

concept-implementation

An implementation skill for turning a confirmed concept model into a modular monolith, a single deployable application split into independent modules.

ontology-of-everything/SemanticSkills · 57 tokens

a11y-testing

Use this skill when the user asks about accessibility testing, axe-core, jest-axe, "@testing-library", "@axe-core/playwright", "Playwright accessibility testing", "WAVE", "Lighthouse accessibility", "automated a11y tests", "accessibility CI/CD", "eslint-plugin-jsx-a11y", "a11y linting", "axe DevTools", setting up…

RadOrigin-LLC/RAD-Claude-Skills · 130 tokens

fortify

Testing infrastructure, coverage, and verified test quality for any project. Detects stack, installs testing ecosystem, audits untested critical paths, writes thorough tests weighted toward error paths, runs them, verifies via mutation testing. Use when user says '/fortify', 'add tests', 'set up testing', 'I need…

catcatcatstudio/cat-skills · 90 tokens