Home
cd ../playbooks
Developer ToolsAdvanced

Autonomous Skill Optimizer

Evaluate and iteratively improve SKILL.md files with a research-grounded 9-dimension rubric and a critical insight most self-improvement loops miss: absolute LLM-judge scores are too noisy (±8 points on unchanged text) for keep/revert decisions — only a same-judge, same-call paired comparison between two versions cancels that noise out reliably.

15 minutes
By alchaincyf (darwin-skill)Source
#skill-creation#llm-evaluation#prompt-engineering#self-improvement#developer-tools

Re-scoring the exact same unmodified skill with a fresh LLM judge can swing the total by 8 points out of 100 — which means a naive 'did the score go up' optimization loop will keep genuine regressions and revert genuine improvements roughly as often as chance, unless the comparison is paired within a single judge call instead of two separate absolute scores.

Who it's for: teams building or maintaining a library of Claude Code or agent skills, anyone running an LLM-as-judge evaluation loop who's noticed inconsistent scores between runs, skill authors who want a rubric that catches missing failure-mode coverage and vague hedging language specifically, teams shipping skills across multiple agent runtimes who need to catch runtime-locked phrasing before it causes another agent to reject the skill

Example

"Audit and improve our skill library" → Test prompts designed and confirmed per skill before any scoring happens, a baseline pass scoring all 9 dimensions (including a real with-skill-vs-without-skill comparison for the effectiveness dimension), then an optimization loop that diagnoses the weakest weighted dimension, proposes one specific edit, and decides keep-or-revert via majority vote from judges comparing both versions side by side in a single call — never by comparing two separately generated absolute scores

CLAUDE.md Template

New here? 3-minute setup guide → | Already set up? Copy the template below.

Or install from your terminal:
npx ccplaybooks add autonomous-skill-optimizer
# Autonomous Skill Optimizer

Evaluate and iteratively improve `SKILL.md` files using a 9-dimension quality rubric, validation-gated editing, and human-in-the-loop checkpoints. Combines an evaluation methodology inspired by Microsoft Research's SkillLens rubric and SkillOpt's validation-gated design with a core insight from controlled testing: absolute LLM-judge scores are too noisy for keep/revert decisions, but the same judge comparing two versions side by side in one call is reliable.

**Core loop:** evaluate → improve → test → human confirms → keep or revert → repeat.

## Why Not Pure Structural Review

The difference from a plain structural lint: it doesn't just check whether the SKILL.md is written to spec — it checks whether the skill's actual real-world output, tested with and without the skill loaded, is measurably better.

## The 9-Dimension Rubric (100 Points)

Get new playbooks like this one

One email a week with new Claude Code workflows. Free, like everything here.

No spam. Unsubscribe anytime.

README.md

What This Does

A skill-quality evaluation and improvement loop built on a specific, cited empirical finding: LLM-as-judge assessment of skill quality is only about 46% accurate on its own — close to random — and improves to roughly 74% once three "meta-skill" dimensions get added to the rubric: whether failure modes are explicitly encoded ("if X fails → Y"), whether real user-confirmation checkpoints exist (visibly marked, not just softly worded), and whether the skill includes an explicit anti-pattern blacklist rather than only positive instructions. The resulting 9-dimension, 100-point rubric splits into structural dimensions gradeable by reading the skill (frontmatter quality, workflow clarity, failure-mode coverage, checkpoint design, actionable specificity) and effectiveness dimensions that require actually running 2–3 designed test prompts with and without the skill loaded and comparing the outputs — a real measurement most "review this skill" workflows skip entirely.

The methodological core — and the reason this differs from a naive self-improvement loop — is how keep/revert decisions get made. Controlled testing found that re-scoring the exact same unmodified skill text with a fresh judge call could swing the absolute total by as much as 8 points, enough noise to hide or fabricate a real 3–8 point improvement from a conservative edit. The fix is a paired comparison: an odd number of independent judges each read both the previous and new version within the same call and vote better/worse/tie against the rubric as a head-to-head comparison, never as two separately generated absolute scores — because a single judge's calibration quirks apply equally to both versions it's comparing in one call, canceling out exactly the noise that corrupts a two-separate-scores comparison. A revert only happens on a genuine paired-majority worse verdict, never on a negative delta between two absolute re-scores. It also includes a standalone runtime-neutrality gate that catches phrasing like "for Claude Code" that would get an unrelated agent runtime to reject an otherwise-portable skill outright.


Quick Start

Step 1: Create a Project Folder

mkdir skill-optimizer && cd skill-optimizer

Step 2: Download the Template

Click Download above, then:

mv ~/Downloads/CLAUDE.md ./

Step 3: Optimize a Skill Library

claude

Point Claude at a directory of SKILL.md files (or a specific list) and ask it to evaluate and improve them. It will design and confirm test prompts first, run a baseline scoring pass across all 9 dimensions, then iterate on the weakest skills using paired same-judge comparisons to decide what to keep — pausing for your confirmation at each checkpoint.


Tips & Best Practices

  • Never let the loop skip Phase 0.5 (test prompt design) — without real test prompts, dimension 8 (real-world performance, worth 23 of 100 points) can't be scored at all, and the whole optimization risks chasing structural polish that doesn't reflect actual output quality.
  • Treat the absolute baseline score strictly as a triage ranking, never as evidence a specific edit helped — the paired-comparison mechanism exists specifically because that instinct (compare two absolute numbers) is unreliable by roughly ±8 points on identical text.
  • Run the runtime-neutrality grep scan early, even outside a full optimization pass — a single "for Claude Code" phrase left in a general-purpose skill is a cheap, easy-to-miss reason another agent runtime silently refuses to install it.

Limitations

  • Even with the meta-skill dimensions added, the source material is explicit that fine-grained quality differences between similar-scoring skills remain unreliable to judge automatically — treat any close-call optimization decision as needing human review, not just the majority vote.
  • Requires the ability to spawn independent sub-agents (for both the with/without-skill effectiveness test and the paired judge comparisons); an environment that can't do this falls back to a lower-confidence dry-run mode that should be flagged as such in the final report.
  • Tuned for SKILL.md-style agent skill files specifically — the rubric's dimensions (frontmatter, checkpoints, failure-mode branches) assume that document shape and would need adaptation for a general prompt-engineering or documentation-quality review.

$Related Playbooks

Developer Tools

Better Web Typography

Web typography engineering as a review discipline, not a style guide — CSS properties over raw variable-font tags, a semantic type scale with descending heading sizes, deliberate text-wrap usage (balance vs. pretty), tabular numbers for changing values, mobile input zoom fixes, and a severity-rated review report format with a concrete common-mistakes table.

5 minutes
Intermediate
Developer Tools

Automated PR Code Review

High-signal automated PR review using parallel agents with a validation pass that filters out false positives before anything gets posted.

10 minutes
Advanced
Developer Tools

Auto Repo Setup

Turn Claude Code into an environment doctor that diagnoses, fixes, and verifies a codebase so non-technical teammates can run it without understanding the stack.

10 minutes
Intermediate
Developer Tools

Artifacts Builder

Create elaborate multi-component HTML artifacts using React, Tailwind CSS, and shadcn/ui components with professional bundling.

15 minutes
Advanced
Developer Tools

Claude Code Cost Optimizer

A static audit of a project's Claude Code setup for the handful of well-known token-cost leaks — oversized CLAUDE.md prepended every turn, bloated memory files, never-invoked skills loaded into the index, unscoped subagent fan-out, and the cache-killing hook that silently ~10x's cost — each with a PASS/WARN/FAIL check and a concrete fix, ranked by biggest win per effort.

5 minutes
Beginner
Developer Tools

Cinematic GSAP + Lenis Motion System

Build a connected, premium web motion language with GSAP, ScrollTrigger, and Lenis smooth scroll — a full token system for eases/durations/staggers, Lenis-driven-by-the-GSAP-ticker setup, a reusable data-attribute markup API for text reveals and parallax, and reduced-motion handling built in from the start, not bolted on after.

15 minutes
Advanced
Developer Tools

CEO-Mode Plan Review

Review a technical or product plan the way a great CEO would — pick a mode (expand scope, cherry-pick expansions, hold scope, or cut ruthlessly), then apply nine prime directives and eleven cognitive patterns to catch every silent failure, missing edge case, and unnamed error before it ships.

10 minutes
Advanced
Developer Tools

Claude Code Project Architecture

A setup guide for structuring a Claude Code project's full toolkit — layered CLAUDE.md context, slash commands, sub-agents, skills, hooks, and plugins — each used for what it's actually good at instead of one mechanism for everything.

20 minutes
Intermediate
Developer Tools

Claude Model Migration Assistant

Migrate code and prompts between Claude models — update model strings, remove incompatible beta headers, and adjust prompts only for reported behavioral differences.

5 minutes
Beginner
Developer Tools

Claude Code Plugin Builder

End-to-end guided workflow for building Claude Code plugins — structure, commands, agents, skills, hooks, and MCP integration — with a validation checklist before you distribute.

15 minutes
Advanced
Developer Tools

CLAUDE.md Progressive Disclosurer

Slim down and restructure a bloated CLAUDE.md (or AGENTS.md) using progressive disclosure — move low-frequency detail to Level 2 references while keeping Level 1 lean, with zero information loss.

15 minutes
Intermediate
Developer Tools

Claude Usage Analyst

Analyze Claude Code token usage, cost, quota burn, model mix, and cache read/write using ccusage evidence — and explain in human terms why your quota got exhausted.

10 minutes
Beginner

Browse all Developer Tools playbooks →