TL;DR
LLM agents rely heavily on "skills"—structured natural-language prompt documents—to execute complex workflows, but LLMs are notoriously bad at writing effective skills for themselves. This paper introduces SKILLAXE, an unsupervised self-refinement framework that evaluates LLM-authored skills across four distinct behavioral dimensions to generate actionable feedback. By diagnosing failures without human labels or environment rewards, SKILLAXE significantly boosts agent pass rates and closes up to 67% of the performance gap to human-authored skills.
What Problem Does This Paper Address?
Large Language Model (LLM) agents are increasingly deployed in procedural, tool-heavy environments like spreadsheet manipulation or software engineering. To help them navigate these environments, developers use "skills"—persistent, structured natural-language instructions that encode domain knowledge and API strategies. While human-written skills provide massive performance boosts, creating them is a slow, manual process of trial-and-error.
Naturally, we want LLMs to generate these skills automatically. However, vanilla LLM-authored skills often provide zero measurable improvement over bare agents, despite looking superficially plausible. The core issue is a lack of diagnostic feedback: standard evaluations only provide a coarse task-level pass/fail signal. This leaves the system blind to whether a failure happened because the skill triggered on the wrong task, contained vague instructions, or failed to support alternative solution paths.
Methods
The authors present SKILLAXE, a fully unsupervised, evaluation-guided self-refinement loop. Instead of relying on ground-truth labels or environment rewards, SKILLAXE runs the agent on a task twice—once with the skill and once without it (the baseline)—and analyzes the behavioral differences across four interpretable dimensions:
- Quality Impact: An LLM judge compares the two outputs to determine if the skill actually helped or hindered task completion.
- Trigger Precision: Evaluates whether the skill activates for the correct tasks. It extracts positive and negative trigger phrases, converts them into context-aware embeddings, and calculates geometric metrics to map out clear activation and exclusion zones.
- Instruction Compliance with Fault Attribution: The framework extracts explicit rules from the skill document to form a custom rubric. Crucially, it differentiates between agent execution errors (the agent ignored a clear rule) and skill faults (the rule was too vague to follow), ensuring correct rules aren't accidentally ruined during rewriting.
- Solution-Path Coverage: Since tasks can often be solved in multiple ways (e.g., using Python's
pandaslibrary vs. native Excel formulas), an LLM enumerates plausible solution paths to ensure the skill provides guidance for diverse strategies rather than overcommitting to just one.
These diagnostics are compiled into a structured Improvement Brief, which an LLM refiner uses to iteratively rewrite and sharpen the skill.
Datasets
The framework was evaluated on two major benchmarks:
- SkillsBench: A benchmark containing 89 complex tasks spanning software engineering, data science, and scientific computing, featuring 191 unique skill slots.
- SpreadsheetBench: A dataset consisting of 912 real-world spreadsheet manipulation tasks (formulas, formatting, macros, pivot tables). The authors used a split of 200 training tasks to build/refine a continuous skill library and 50 held-out tasks for evaluation.
Key Insights and Ideas
- Skills Provide Execution Knowledge, Not Answer Quality: Hierarchical decomposition revealed a fascinating mechanism: SKILLAXE doesn't necessarily make final answers "better" for tasks the agent already knows how to do. Instead, it dramatically increases coverage (preventing crashes, timeouts, and setup failures). It gives the agent the procedural scaffolding required to actually finish hard tasks.
- Fault Attribution is Essential: If an agent fails a task, naive prompt optimization assumes the prompt is bad. SKILLAXE's ability to say "the rule was perfect, the agent just messed up the execution" prevents the system from degrading high-quality instructions during refinement.
- Compression via Better Triggers: In open-ended, "in-the-wild" settings, a massive library of narrow, task-specific skills wastes tokens and confuses agents. By refining trigger phrases with explicit negative exclusions, SKILLAXE allows a tiny library of broad, high-quality skills to match the accuracy of a massive, unrefined library.
Key Results
- SkillsBench Improvements: On SkillsBench, SKILLAXE increased the overall agent pass rate from 32.5% (unimproved LLM skills) to 41.6% under native verifiers, closing 47% of the gap to human-authored skills. When evaluated by a multimodal "fair grader" (which ignores rigid test-suite constraints and looks at actual visual output completion), SKILLAXE reached a 54.5% pass rate (up from 39.0%), closing 67% of the human gap.
- SpreadsheetBench Efficiency: In a continuous learning setup on SpreadsheetBench, SKILLAXE compressed a naive library of 69 skills down to just 22 consolidated skills. Despite having 68% fewer skills, this compact library matched the accuracy of the large library (52.0% pass rate vs. 16.0% baseline) because the skills were better written and activated nearly twice as often (35.8% vs 20.0%).
Limitations and Future Work
- Structural Misalignment: If a skill teaches a strategy that is fundamentally wrong but internally self-consistent, rule-level compliance checks won't catch it.
- Independent Skill Evaluation: SKILLAXE evaluates and refines skills in isolation. It does not explicitly model interactions, redundancies, or conflicts when multiple skills are active simultaneously.
- LLM Judge Biases: The framework relies heavily on LLM judges for compliance and grading, which can introduce positional or calibration biases.
- Single-Update Loop: While iterative, the current implementation primarily focuses on a single-update refinement loop per trajectory; moving toward deeper multi-iteration online execution feedback is a noted direction for future work.
Summary updated