Help us improve
Share bugs, ideas, or general feedback.
From preflight
Detects cross-platform compatibility issues in Python code including paths, line endings, env vars, shell commands, case sensitivity, and temp paths. Outputs JSON with fixes for Windows/Linux portability.
npx claudepluginhub dansasser/claude-code-marketplace --plugin preflightHow this skill is triggered — by the user, by Claude, or both
Slash command
/preflight:xplat-checksThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Scripts for detecting cross-platform compatibility issues in Python code.
Generates professional bash/shell scripts with Google Shell Style Guide compliance, ShellCheck validation, cross-platform support (Linux/macOS/Windows/containers), POSIX compliance, security hardening, error handling, performance optimization, and BATS testing. Useful for automation, DevOps/CI/CD, build scripts, debugging.
Configures ShellCheck static analysis for shell script quality, including CI/CD integration, error code understanding, and rule configuration.
Validates bash/shell code blocks in Claude Code plugin .md files for syntax errors (bash -n), shellcheck pitfalls, macOS/Linux portability issues, unsafe commands, and runtime failures.
Share bugs, ideas, or general feedback.
Scripts for detecting cross-platform compatibility issues in Python code.
Detect hardcoded path separators.
python .claude/skills/xplat-checks/scripts/check_paths.py [directory]
Finds:
Detect line ending issues.
python .claude/skills/xplat-checks/scripts/check_line_endings.py [directory]
Finds:
Find platform-specific environment variable usage.
python .claude/skills/xplat-checks/scripts/check_env_vars.py [directory]
Finds:
Detect case sensitivity issues.
python .claude/skills/xplat-checks/scripts/check_case_sensitivity.py [directory]
Finds:
Detect shell command compatibility issues.
python .claude/skills/xplat-checks/scripts/check_shell_commands.py [directory]
Finds:
Find hardcoded temp directory paths.
python .claude/skills/xplat-checks/scripts/check_temp_paths.py [directory]
Finds:
All scripts output JSON:
{
"status": "PASS|FAIL",
"files_scanned": 156,
"issues": [
{
"file": "src/config.py",
"line": 47,
"column": 12,
"issue": "Hardcoded forward slash in path",
"code": "config_path = 'data/config.yaml'",
"suggestion": "Use Path('data') / 'config.yaml'"
}
]
}
| Issue | Bad | Good |
|---|---|---|
| Path separator | "data/file.txt" | Path("data") / "file.txt" |
| Home directory | os.environ["HOME"] | Path.home() |
| Temp directory | "/tmp/file" | Path(tempfile.gettempdir()) / "file" |
| Shell command | os.system("rm -rf x") | shutil.rmtree("x") |
| Username | os.environ["USER"] | getpass.getuser() |