AI AGENT ADDONS
CLI & Terminal
583installs

Shell scripts are a powerful way to automate tasks. But they can be dangerous if not written carefully. This guide provides 49 best practices to make your scripts safe, portable, and maintainable.

Whether you are writing bash or POSIX shell scripts, these rules help you avoid common mistakes. They cover everything from command injection prevention to error handling and portability.

Each rule comes with clear examples of what to do and what not to do. Use this guide when writing, reviewing, or fixing shell scripts for any system.

Add Shell skill to your workflow

Global

mkdir -p ~/.claude/skills/shell

Project

mkdir -p .claude/skills/shell

Source Repository

Stars
172
Forks
12
Watchers
172
License
MIT
Last Push
1 month ago
Created
6 months ago