Кроссплатформенный код для macOS, Linux и Windows
★ 7.0 · vibe-coding
cross-platform is a Claude Code skill that provides development patterns for writing code that runs correctly on macOS, Linux, Windows, and WSL. It covers platform detection via `uname` in Bash and built-in variables in PowerShell, native notifications with fallback chains (terminal-notifier → osascript, notify-send → zenity → wall, BurntToast → System.Windows.Forms, wsl-notify-send → notify-send), WSL path conversion using `wslpath`, and safe Git operations across all platforms. Common pitfalls are addressed explicitly: CRLF vs LF line endings, path separator differences, case-insensitive file systems on Windows, and checking command availability with `command -v` before use. Useful for developers adding OS support, setting up a CI/CD matrix with macos-latest/ubuntu-latest/windows-latest, or eliminating platform-specific bugs from cross-environment projects.