cs.SENov 19, 2026

SkillBridge: Cost-Aware Diagnosis and Repair of Cross-OS Compatibility Defects in Agent Skills

Authors: Anjie Xu, Zixing Wang, Yifeng Cai, Leye Wang

Organizations: Key Lab of High Confidence Software Technologies (Peking University), Ministry of Education, China · School of Computer Science, Peking University, Beijing, China · Zhongguancun Academy, Beijing, China · School of Computer Science, Northwestern Polytechnical University, Xi’an, China

Abstract

LLM agents increasingly reuse executable capabilities through skills, but a skill that works on one OS may fail on another because OS assumptions are spread across guide text, scripts, metadata, install contracts, and local entrypoints. Diagnosing such failures by running every skill on every OS is expensive: many executions spend model tokens, runner time, and review effort before revealing whether the failure is truly OS-related. We present SkillBridge, a contract-based workflow with three stages: static analysis, dynamic validation, and repair. SkillBridge first screens 3,270 skill-target-OS cases, covering 1,090 skills across Linux, macOS, and Windows, to find OS-sensitive contract evidence. It then runs dynamic tasks and root-cause review on selected cases to confirm whether a failure is caused by an OS assumption, and repairs the contract field that caused the failure, such as guide text, package scripts, dependencies, or platform declarations. Repair raises the reviewer-judged target-task pass rate from 30.6% to 38.4%, a gain of 7.8 percentage points. A retrospective Linux/macOS budget analysis further shows the efficiency effect: SkillBridge reaches 38 confirmed OS issues with 185 dynamic validations, where uniform random selection would require about 865 validations in expectation.

Figures & tables

Explore similar work

CardsList
  1. Skill Drift Is Contract Violation: Proactive Maintenance for LLM Agent Skill Libraries

    May 9, 2026Linfeng Fan, Yuan Tian, Ziwei Li +1AI Agent Monitoring

  2. SkillLens: An Interactive Human-LLM System for Diagnosing and Refining Agent Skills

    Nov 21, 2026Shuo Yan, Rui Sheng, Xiaoyan Gu +3LLM Agent DebuggingLLM Agent Skill Evaluation

  3. What Keeps Agent Skills from Being Reusable? Evidence from 138K SKILL.md Files

    Aug 9, 2026Chi Zhang, Yimin Liu, Xinze Chen +1LLM Agent Skill Retrieval