TL;DR
SkillOptimizer is a new pipeline that automatically improves the procedural knowledge (or "skills") used by LLM agents without requiring any real-world task data or external verifiers. By decomposing skills into a structured graph of subskills and iteratively refining them through synthetic "stress tests," the system recovers significant performance gains that are often left on the table by human-written instructions.
What Problem Does This Paper Address?
LLM agents are increasingly reliant on "skills"—structured sets of instructions, scripts, and references—to navigate complex domains like software engineering or financial analysis. However, these skills are often inconsistent; a skill’s description might promise a wide range of capabilities that its actual content fails to deliver.
The standard way to fix this is "downstream optimization": testing the agent on real tasks and tweaking the instructions until it passes. But this approach has two major flaws:
- Data Scarcity: High-quality task data and automated verifiers (oracles) are often unavailable in the real world.
- Overfitting: Optimizing for a narrow set of benchmark tasks can make a skill brittle, improving performance on those specific cases while degrading the agent's general utility.
The authors ask: Can we improve an agent's knowledge in the background, during "downtime," without waiting for a specific task to trigger an update?
Methods
SkillOptimizer functions as a "study hall" for agents. It improves skills through a three-stage pipeline:
- Initialization (The DAG): A "structure agent" reads a skill's description and decomposes it into a Directed Acyclic Graph (DAG) of subskills. Each node represents a discrete, teachable step. This turns "coverage" into a structural property—if a workflow is mentioned in the description, it must have a corresponding path in the graph.
- Prompt Generation: The system generates a set of synthetic prompts designed to traverse every possible path in the DAG. This ensures the skill is tested against its entire "contract" rather than just common use cases.
- Optimization Cycles: The system runs iterative cycles of Drafting, Grading, and Revising.
- Agents attempt the synthetic prompts using different versions of the skill (including a "negative sample" that represents what the model already knows without the skill).
- A grader identifies exactly which lines of the instructions misled the agent or what information was missing.
- An authoring agent then "sharpens" the teaching text, rubrics, and resources based on this feedback.
Crucially, this entire process is "downstream-free"—it never looks at the actual benchmark tasks it will eventually be evaluated on.
Datasets
The researchers evaluated SkillOptimizer using SKILLSBENCH, a comprehensive benchmark containing:
- 83 tasks spanning 11 diverse domains (e.g., Cybersecurity, Robotics, Finance).
- 192 individual skills that were optimized by the pipeline.
They tested the optimized skills across three distinct agent families: Claude Code (using Claude Sonnet 4.6), Codex (using GPT-5.4 mini), and OpenCode (using MiniMax-M2.7).
Key Insights and Ideas
- The "Negative Sample" Anchor: To prevent the optimizer from just restating things the LLM already knows (common knowledge), it compares the skill against a "negative sample." This forces the system to ensure the skill provides genuine additional teaching.
- Procedural vs. Factual Knowledge: The system excels in "codifiable" domains like Manufacturing (+17.8pp) and Finance (+11.7pp), where success depends on following a specific logic or checklist.
- The "Hallucination" Risk in Science: Interestingly, the system regressed in Natural Science (-4.2pp). Because the optimization is synthetic, it sometimes replaced specific factual "recipes" (like a short code snippet for a scientific calculation) with more generic procedural structures. If the agent doesn't have the underlying facts, a better "plan" can't save it.
- Background Refinement: This approach positions skill optimization as a "sleep-time" activity for agents, allowing them to refine their internal documentation and tools while they aren't actively solving user queries.
Key Results
SkillOptimizer consistently outperformed raw, human-written skills across all tested agent harnesses:
- Claude Sonnet 4.6: +4.8 percentage points (pp) improvement in mean task score.
- GPT-5.4 mini: +5.5 pp improvement.
- MiniMax-M2.7: +2.3 pp improvement.
In a specific case study on financial reports (sec-financial-report), the optimized skill moved the needle from a 40% success rate to 93%. It achieved this by identifying a subtle confusion in the raw instructions regarding "total holdings" vs. "stock holdings"—a gap that was only caught because the DAG structure forced the system to generate a prompt specifically testing that distinction.
Limitations and Future Work
- Garbage In, Garbage Out: The system treats the skill's "frontmatter" (the initial name and description) as the ground truth. If the description is misleading or incomplete, the resulting DAG and optimization will inherit those flaws.
- Environment Blindness: Since the optimization is synthetic and text-based, it cannot account for nuances in live, stateful environments (like a specific server's latency or a UI's quirk) that aren't described in the documentation.
- Future Directions: The authors suggest that future work could involve automating the creation of the initial descriptions themselves and integrating this into "always-on" agent frameworks that continuously prune and expand their own skill libraries.
Summary updated