fix-line-endings-check-bash

Fix line endings AND check bash syntax in one step (recommended). Use after creating or editing bash scripts.

⭐2stars🔀0forks📁View on GitHub🕐Updated Dec 2, 2025

When & Why to Use This Skill

This Claude skill streamlines bash script development by combining line ending normalization (CRLF to LF) and syntax validation into a single automated step. It ensures scripts are cross-platform compatible and free of syntax errors, preventing common execution failures when moving scripts between Windows and Linux/Unix environments.

Use Cases

  • Cross-platform development: Automatically fixing 'carriage return' errors in scripts edited on Windows for seamless execution on Linux servers.
  • Pre-execution validation: Checking the syntax of newly created or modified bash scripts to catch logic and structural errors before deployment.
  • Batch script maintenance: Efficiently processing multiple shell scripts at once to ensure consistent formatting and syntax integrity across a project.
namefix-line-endings-check-bash
descriptionFix line endings AND check bash syntax in one step (recommended). Use after creating or editing bash scripts.
allowed-toolsBash

Fix Line Endings + Check Bash

Recommended tool for bash script preparation.

.claude/skills/fix-line-endings-check-bash/scripts/fix-line-endings-check-bash.sh script1.sh script2.sh

Converts CRLF→LF, then validates syntax. Stops on first failure.