Cross-platform compatibility checking tools. Detects path issues, line endings, environment variables, shell commands, and other patterns that break on Windows or Linux.
Detects cross-platform compatibility issues in code that breaks on Windows or Linux. Triggers when reviewing Python code for hardcoded paths, line endings, environment variables, shell commands, and temp directory references.
/plugin marketplace add dansasser/claude-code-marketplace/plugin install preflight@dansasser-marketplaceThis skill inherits all available tools. When active, it can use any tool Claude has access to.
scripts/check_case_sensitivity.pyscripts/check_env_vars.pyscripts/check_line_endings.pyscripts/check_paths.pyscripts/check_shell_commands.pyscripts/check_temp_paths.pyScripts 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() |
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.
Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.