bash-linux

Enforce POSIX Bash scripting best practices with strict modes and quoting.

8|Updated Apr 8, 2026
One-click install
npx skills add https://github.com/gabriellpequeno/Reserva-Aqui---Projeto-de-fim-de-ciclo --skill bash-linux-gabriellpequeno
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bash-linux
Source: https://github.com/gabriellpequeno/Reserva-Aqui---Projeto-de-fim-de-ciclo/tree/main/.cursor/skills/bash-linux
Command: npx skills add https://github.com/gabriellpequeno/Reserva-Aqui---Projeto-de-fim-de-ciclo --skill bash-linux-gabriellpequeno

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Establishes clear, reusable guidelines to write safe, portable Bash and shell scripts in POSIX environments, reducing errors and regressions.

Core Features & Use Cases

  • Enforce strict scripting modes like set -euo pipefail where applicable to catch errors early.
  • Emphasize proper quoting and variable validation to prevent common shell bugs.
  • Provide a reference for best practices when reviewing or writing new scripts, improving code quality across the project.

Quick Start

Enable strict modes and apply quoting and input validation in every Bash script you touch.

Frequently Asked Questions about bash-linux

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce safe Bash scripting practices across a project?

To enforce safe Bash scripting, apply mandatory rules like set -euo pipefail, proper variable quoting, and input validation to catch errors early and ensure consistent shell code quality across repository-level tooling.

What is the best way to prevent common Bash shell errors in POSIX environments?

The best way to prevent common POSIX shell errors is enabling strict scripting modes like set -euo pipefail and emphasizing proper quoting and variable validation to reduce unexpected regressions and script failures.

How do I apply POSIX-compliant rules when writing new shell scripts?

To apply POSIX-compliant rules when writing shell scripts, establish reusable guidelines that mandate strict error handling, proper quoting, and input validation, serving as a reference during code reviews and new script development.

Why does my Bash script fail silently without catching errors?

Bash scripts fail silently when strict modes are not enabled. Applying set -euo pipefail ensures the script exits on undefined variables and pipeline failures, catching errors early instead of allowing silent regressions.

Can I use these shell scripting rules for code reviews in Linux repositories?

Yes, these shell scripting rules are designed for repository-level Bash and Linux tooling, providing a reference to enforce consistent, safe POSIX code practices during both script development and code reviews.

Do I need to set strict modes in every Bash script I touch?

Yes, the quick start approach is to enable strict modes like set -euo pipefail and apply quoting and input validation in every Bash script you touch to maintain safe, portable code across the project.