TL;DR
SkillBridge is a cost-aware framework designed to diagnose and repair cross-operating system (OS) compatibility bugs in LLM agent "skills." By using cheap static analysis to triage which skills are likely to fail on a new OS, it finds nearly 5x more bugs per test run than random selection and improves task success rates by nearly 8 percentage points through automated, multi-agent repairs.
What Problem Does This Paper Address?
LLM agents like Claude Code or OpenCode are increasingly powerful, but they rely on "skills"—reusable packages containing code, prompts, dependencies, and metadata. A skill built and tested on Linux often breaks when run on Windows or macOS because of hidden OS-specific assumptions: a hardcoded /tmp path, a dependency on apt-get, or a shell command like ls that behaves differently across platforms.
The "brute force" solution—running every skill on every OS to find bugs—is prohibitively expensive. It wastes model tokens, runner time, and human review effort on tasks that might fail for reasons unrelated to the OS (like a flaky API or a planning error). The authors identify a need for a way to pinpoint true OS compatibility defects without breaking the bank.
Methods
The authors introduce SkillBridge, a workflow that treats compatibility as a "contract" problem. A skill isn't just code; it’s a contract between the agent and the environment.
The framework operates in three main stages:
- Static Analysis & Selection: Instead of running everything, SkillBridge uses 34 screening rules to scan the "skill contract" (guide text, scripts, metadata). It looks for "risky" evidence like POSIX-only scripts or platform-specific CLI flags. This stage enqueues only high-risk skill-OS pairs for testing.
- Dynamic Validation: The system runs the selected skills on actual target OSes (Ubuntu, macOS, Windows). It records a detailed execution trace, capturing not just pass/fail bits but also command errors and environment state.
- Multi-Agent Repair: If a failure is confirmed as OS-related, a specialized multi-agent team takes over:
- Issue Agent: Triages the evidence into a structured report.
- Dev Agent: Proposes a patch to the skill contract (e.g., adding a Windows-specific command branch).
- Review Agent: Replays the task to verify the fix and ensures no regressions were introduced.
Datasets
The study evaluated 1,090 skills sourced from public repositories like ClawHub and SkillSh. This resulted in 3,270 unique skill-target-OS cases across three environments:
- Linux: Ubuntu 22.04
- macOS: Apple Silicon
- Windows: Windows 11
The authors have open-sourced their experimental code and data to serve as a benchmark for future cross-OS agent research.
Key Insights and Ideas
- Compatibility is a "Contract" Issue: A bug might not be in the source code; it might be in the
README.md(the "guide") telling the agent to run a command that doesn't exist on Windows. SkillBridge is unique because it repairs the entire artifact, including prompts and install instructions. - Static Triage is a Force Multiplier: You don't need a perfect static analyzer to save money. Even a "recall-oriented" analyzer that flags potential issues can drastically reduce the search space for expensive dynamic tests.
- Windows is the Primary Friction Point: The evaluation found that Windows contributes the largest share of compatibility issues (9.91% confirmed case rate), largely because most current agent skills are authored with Unix-like assumptions (paths, shell semantics).
- Repair is Not Always Monotonic: As shown in the progression analysis, fixing one OS issue can sometimes expose a new inconsistency or lead to temporary "churn" before reaching a stable, cross-platform state.
Key Results
- Effectiveness: Automated repairs raised the reviewer-judged pass rate from 30.6% to 38.4%, a solid 7.8 percentage point gain.
- Efficiency: To find 38 confirmed OS issues, SkillBridge required only 185 dynamic validations. In contrast, a uniform random selection strategy would have required an estimated 865 validations to find the same number of bugs.
- Root Causes: The most common culprits were Command/path/shell assumptions (42%) and Native app/API assumptions (31.7%).
Limitations and Future Work
- Runtime-Generated Assumptions: Static analysis is great for finding hardcoded strings, but it misses assumptions that only emerge during execution (e.g., a script that dynamically constructs a path based on environment variables).
- Agent Reliability: The "Review Agent" is itself an LLM. While SkillBridge includes safeguards, there is still a risk that the agent's judgment of a "fix" might differ from a human maintainer's perspective.
- Scope: The current work focuses on common desktop/server OSes. Future work could extend this to mobile, container-only, or embedded environments where compatibility constraints are even tighter.
Summary updated