xplat-checks

Detect cross-platform compatibility issues in Python code for CI workflows.

9|2|Updated Nov 9, 2025
One-click install
npx skills add https://github.com/dansasser/claude-code-marketplace --skill xplat-checks
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: xplat-checks
Source: https://github.com/dansasser/claude-code-marketplace/tree/main/plugins/preflight/skills/xplat-checks
Command: npx skills add https://github.com/dansasser/claude-code-marketplace --skill xplat-checks

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Cross-platform compatibility issues can cause CI failures or runtime bugs when code runs on Windows, macOS, or Linux; this skill detects and reports patterns that commonly break portability.

Core Features & Use Cases

  • Detect hardcoded path separators, line endings, environment-variable usage, case sensitivity issues, shell command usage, and hardcoded temp paths across a codebase.
  • Scans Python files and other text-based sources to surface portability issues during development or CI.
  • Use Case: Integrate findings into pull requests to guide refactoring for cross-platform compatibility.

Quick Start

Run the xplat-checks scanner on your Python project to surface cross-platform issues.

Frequently Asked Questions about xplat-checks

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect cross-platform compatibility issues in Python code?

Cross-platform compatibility issues in Python code are detected by scanning source files for hardcoded path separators, line endings, environment variables, shell usage, and temp path patterns. This process surfaces portability problems that commonly cause runtime bugs or CI failures across operating systems.

What causes cross-platform portability problems between Windows and Linux?

Cross-platform portability problems between Windows and Linux are typically caused by hardcoded path separators, inconsistent line endings, case sensitivity issues, and hardcoded temp paths. Shell command usage and environment variable handling also contribute to broken code execution across different operating systems.

Can I run static analysis for cross-platform portability in a CI workflow?

Static analysis for cross-platform portability can be integrated into CI workflows by running scanner scripts that output machine-readable results. These deterministic checks identify OS-specific patterns in Python files and other text-based sources to catch issues during development or pull requests.

Does the xplat-checks scanner work on non-Python source files?

The xplat-checks scanner works on Python files and other text-based sources to detect portability issues. It evaluates codebases running on Windows and Linux, analyzing patterns like environment variable usage and line endings across the entire project rather than limiting checks to Python exclusively.

What are the limitations of static analysis for finding portability issues?

Static analysis for portability issues is limited to detecting hardcoded patterns in source files, such as path separators and shell usage. It identifies deterministic code-quality issues but does not execute the application to catch runtime environment variables or OS-specific dynamic behaviors that cause CI failures.