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

Anjie Xu, Zixing Wang, Yifeng Cai and Leye Wang at Peking University present SkillBridge, a workflow that finds and repairs OS assumptions inside agent skills so that a skill written on one operating system works on others. The paper is accepted at ICSE 2027.
Ask this paper
The problem. OS assumptions in a skill are spread across guide text, scripts, metadata, install contracts and entrypoints, so a skill that works on Linux can fail on macOS or Windows.
Three stages. Static analysis screens 3,270 skill-target-OS cases covering 1,090 skills. Dynamic validation and root-cause review confirm which failures are OS-related. Repair edits the specific contract field that caused the failure.
Repair gain. Repair raises the reviewer-judged target-task pass rate from 30.6% to 38.4%, a gain of 7.8 points.
Cost savings. In a Linux/macOS budget analysis, SkillBridge confirms 38 OS issues with 185 dynamic validations, where uniform random selection would need about 865.
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.