SkillLens: An Interactive Human-LLM System for Diagnosing and Refining Agent Skills
Authors: Shuo Yan, Rui Sheng, Xiaoyan Gu, Lian Lian, Chengran Xu, Yifang Wang
Organizations: Florida State University Department of Computer Science Tallahassee, Florida, USA · The Hong Kong University of Science and Technology Department of Computer Science and Engineering Hong Kong, China · Washington University in St. Louis Department of Computer Science & Engineering St. Louis, Missouri, USA · University of Wisconsin–Madison College of Letters & Science Madison, Wisconsin, USA
LLM agents increasingly rely on reusable skills, yet maintaining them requires developers to connect revisions with changes in behavior and task outcomes. Existing workflows fragment evidence across versions, evaluation cases, and execution traces. We present SkillLens, an interactive human-LLM system for diagnosing and refining agent skills. A formative study with five developers and researchers identified challenges in prioritizing failures, reconstructing case-level evidence, and preserving context across revisions. SkillLens links performance changes, case transitions, skill diffs, invocation sequences, traces, and outputs in a recoverable workflow, while keeping model-generated explanations and refinements under human review. Through a between-subjects user study with 20 participants, we show that SkillLens supports developers in diagnosing and refining agent skills through a more usable and less demanding workflow than the baseline. These findings highlight the value of linking version comparisons, case-level evidence, and human-reviewed refinement across skill iterations.
Figures & tables
Figure 1. SkillLens connects performance changes to summarized error patterns, case evidence, and a bounded refinement plan. A wide screenshot of \systemname{} showing Performance, Summary, Context, and Refinement views connected by skill and case evidence.
Participant
Background
Skill-related experience
E1
Master’s student
Agent development and creating or updating Skills
E2
Undergraduate student in AI
Skill creation, patching, and task-specific debugging
E3
Community contributor and software engineer
Reverse engineering and Skill development
E4
Industry engineer
Creating or updating agent Skills
E5
Industry engineer
Creating or updating agent Skills
Table 1. Participant backgrounds and Skill-related experience.
Figure 2. Explored version-centric temporal canvas. A skill-version timeline is coordinated with case outcomes and a persistent Evidence Lens. An alternative interface design centered on a skill-version timeline,with case outcomes aligned to versions and a persistent evidence panel.
Figure 3. The SkillLens refinement workflow: comparing benchmark results, inspecting case and skill evidence, and validating human-authorized revisions through reruns. Three connected stages: Evaluate, Diagnose and Inspect, and Act and Validate. Human review guides each stage, and rerun results feed the next iteration.
Figure 4. Details of the Refinement View: (D1) Multiple Runs provide matched historical and repeated-run context; (D2) Proposal Skill Diff supports inspection and editing of the proposed Skill revision; (D3) What-if Result reports the rerun outcome and before-and-after case transitions. A composite interface figure showing version history, a proposed skill diff, and a rerun result with before-and-after accuracy and case transitions.
Figure 5. Ratings for the six dimensions of the adapted seven-point NASA-TLX questionnaire by condition. Blue bars represent Baseline and yellow bars represent SkillLens ; error bars indicate SEM. Significance annotations are based on Holm-adjusted p-values across the six comparisons. Higher Performance ratings indicate better perceived performance; this item was direction-adjusted during data collection and was not reverse-coded during analysis. Grouped bar chart of six NASA-TLX dimensions for \systemname{} and Baseline, with significance brackets on mental demand, temporal demand, and performance.
Figure 6. Task confidence ratings by condition. Each stacked bar contains 10 responses, and segment labels indicate participant counts. Colors represent ratings from 1 to 5, with higher values indicating greater confidence. The four items concern performance-change identification, case-level evidence localization, evidence-supported hypothesis formation, and maintenance planning. Stacked bars of 10 task-confidence ratings per condition for four items: performance-change identification, case-level evidence localization, evidence-supported hypothesis formation, and maintenance planning.
Skill documents, structured natural-language instructions that guide Large Language Model (LLM) agents, are critical to modern agent frameworks, yet LLMs struggle to write skills that actually work. On SkillsBench, human-authored skills improve pass rates by 16.2 percentage points, while LLM-authored skills provide no measurable gain. We introduce SkillAxe, a fully unsupervised framework that enables LLMs to iteratively diagnose and refine their own skills. SkillAxe decomposes skill quality into four interpretable dimensions (quality impact, trigger precision, instruction compliance with fault attribution, and solution-path coverage), producing structured improvement briefs that require no ground-truth labels, test suites, or environment rewards. On SkillsBench, SkillAxe improves pass rates by 28% relative over unimproved LLM skills and closes 47--67% of the gap to human-authored skills. We validate the approach as a continuous improvement engine in the wild on SpreadsheetBench, where a SkillAxe-built skill library learns from past agent trajectories and raises pass rate from 16.0% to 52.0% using only 22 skills.
Agent skills are procedural artifacts that enable LLM agents to execute workflows, verify constraints, and recover from failures. Existing self-evolving methods refine skills using accumulated trajectories. However, they struggle in cold-start settings, where only an initial, imperfect skill is available. Consequently, skill construction defaults to expert authoring or one-shot LLM generation. Expert-authored skills are costly and may not align with how LLM agents actually execute tasks, while one-shot generated skills can be syntactically well formed yet behaviorally weak. To bridge this gap, we propose SkillRevise, an execution-grounded framework designed to iteratively refine these initial skills. SkillRevise diagnoses skill defects from execution evidence, retrieves relevant repair principles from a general memory, and applies execution-anchored edits. By re-executing candidates, it retains the first verifier-passing skill within the revision budget and falls back to empirical utility only when no candidate succeeds. Evaluated across three benchmarks and five LLMs, SkillRevise substantially outperforms one-shot baselines, improving the base agent's success rate on SkillsBench from 36.05% to 61.63%. Furthermore, the revised skills transfer across both executors and task environments, suggesting that SkillRevise captures reusable procedural knowledge beyond any single executor.
Yuxuan Liu, Zhaochen Su, Lingyun Xie +11
The Hong Kong University of Science and Technology · Harbin Institute of Technology · Harbin Institute of Technology, Shenzhen +2
Skill libraries have become a practical way for LLM agents to reuse procedural experience across tasks. However, existing systems typically treat skills as flat, single-resolution prompt blocks. This creates a tension between relevance and cost: injecting coarse skills can introduce irrelevant or misleading context, while rewriting entire skills is expensive and often unnecessary. We propose SkillLens, a hierarchical skill-evolution framework that organizes skills into a four-layer graph of policies, strategies, procedures, and primitives, and retrieves them at mixed granularity. Given a task, SkillLens first retrieves semantically relevant skill seeds, expands them through degree-corrected random walk over the skill graph, and then uses a verifier to decide whether each visited unit should be accepted, decomposed, rewritten, or skipped. This enables the agent to reuse compatible subskills directly while adapting only locally mismatched components. To improve the system over time, SkillLens further refines multi-granularity skills and verifier in order to improve its routing decisions. We provide theoretical analysis showing that mixed-granularity adaptation incurs sublinear cost under sparse mismatch assumptions and that the evolutionary update rule monotonically improves the validation objective until a local optimum. Across MuLocbench and ALFWorld, SkillLens consistently improves over strong skill-based baselines, achieving up to a 6.31 percentage-point Acc@1 gain for bug localization and raising agent success rate from 45.00% to 51.31%.