writing-bash-scripts

Bash Script Style Guide

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "writing-bash-scripts" with this command: npx skills add lexler/skill-factory/lexler-skill-factory-writing-bash-scripts

Bash Script Style Guide

  • Use #!/usr/bin/env bash as shebang

  • Always use set -euo pipefail for safety

  • Keep scripts minimal: no unnecessary comments or echoes

  • Minimal input validation; print usage to stderr and exit if inputs are missing/invalid

  • Don't check for installed commands if failure is obvious on use

  • Make script executable: chmod +x <script>

  • Prefer concise, direct logic over verbosity

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

hexagonal-architecture

No summary provided by upstream source.

Repository SourceNeeds Review
General

git-worktrees

No summary provided by upstream source.

Repository SourceNeeds Review
General

using-uv

No summary provided by upstream source.

Repository SourceNeeds Review
General

refinement-loop

No summary provided by upstream source.

Repository SourceNeeds Review