cross-platform-shell
CommunityWrite shell scripts for any OS.
Authorsalverius-tech
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill provides robust shell scripting patterns that ensure your scripts run flawlessly across Windows (Git Bash/MSYS2), WSL, and native Linux/macOS environments, eliminating cross-platform compatibility headaches.
Core Features & Use Cases
- Platform Detection: Accurately identify the operating system (Windows, WSL, Linux, macOS) within your scripts.
- Path Normalization: Handle variations in Windows and WSL path formats to ensure consistency.
- Symlink vs. Junction Handling: Create cross-platform compatible links, using junctions on Windows where symlinks are restricted.
- CRLF Prevention: Ensure shell scripts maintain correct line endings to avoid execution errors.
- Use Case: You need to deploy a setup script that installs dependencies and configures the environment on both a developer's Windows machine and a production Linux server. This Skill ensures your script correctly detects each OS and uses the appropriate commands and path conventions.
Quick Start
Use the cross-platform-shell skill to detect the current operating system and print its name.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: cross-platform-shell Download link: https://github.com/salverius-tech/dotfiles/archive/main.zip#cross-platform-shell Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.