Shell
Shell scripting guide of 49 rules for safe, portable, and maintainable bash and POSIX sh scripts.
- CCM score
- 49 of 100
- skills.sh installs
- 718
- GitHub stars
- 228
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers nine prioritized categories, from safety and portability down to style, with rule files and examples
- Includes 49 rules, each with incorrect-versus-correct code comparisons and impact notes, such as
safety-command-injectionanderr-strict-mode - Enforces guardrails like quoting variables, avoiding
eval, usingset -euo pipefail, and running ShellCheck - Designed for agents writing, reviewing, or refactoring scripts, Dockerfile RUN commands, Makefiles, CI jobs, cron, and systemd units
Install
$ npx -y skills add pproenca/dot-skills --skill shell -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Shell Scripts Best Practices (Community)
Comprehensive best practices guide for shell scripting, designed for AI agents and LLMs. Contains 49 rules across 9 categories, prioritized by impact from critical (safety, portability) to incremental (style). Each rule includes detailed explanations, real-world examples comparing incorrect vs. correct implementations, and specific impact metrics.
When to Apply
Reference these guidelines when:
- Writing new bash or POSIX shell scripts
- Reviewing shell scripts for security vulnerabilities
- Debugging scripts that fail silently or behave unexpectedly
- Porting scripts between Linux, macOS, and containers
- Optimizing shell script performance
- Setting up CI/CD pipelines with shell scripts
Rule Categories by Priority
Details
- Repository
- github.com/pproenca/dot-skills
- Categories
- CLI & Terminal, DevOps & Cloud
- First seen
- Jun 3, 2026
More from pproenca/dot-skills
All 100- Tailwind674
- Refactor668
- Expo575
- React513
- Tailwind Responsive Ui487
- Tailwind Ui Refactor480
- Zustand472
- Debug458
- Ios Design454
- Feature Arch445
- Feature Spec444
- React Testing Library436
- Expo React Native Coder428
- Tdd428
- Jscodeshift427
- Humanize425
- Knip Deadcode422
- React Optimise416
- Rails Hotwire395
- Ts Google390
- Nginx C Module Design387
- Audio Voice Recovery385
- Nginx C Modules384
- Vite381
Similar to Shell
More CLI & Terminalbash-scriptingmindrally/skills942 installsShell scripting conventions for secure, portable, and well-handled automation scripts in DevOps work.
bash-masterjosiahsiegel/claude-plugin-marketplace469 installsExpert Bash scripting guide covering safety, portability across Linux, macOS, WSL, Git Bash, and containers.
bash-prosickn33/agentic-awesome-skills988 installsDefensive Bash scripting guide for production automation, CI/CD pipelines, and portable system utilities with strict error handling.
posix-shell-prosickn33/agentic-awesome-skills250 installsStrict POSIX sh scripting guide that keeps shell scripts portable across dash, ash, and bash --posix.
bash-script-validatorakin-ozer/cc-devops-skills811 installsValidation pipeline for shell scripts that layers syntax checks, ShellCheck analysis, and custom security and portability rules.
unix-clipproenca/dot-skills338 installsReference guidelines for building UNIX-style command-line tools with POSIX conventions, exit codes, and stream handling.