Shell Scripting Guidelines
Objective: Define standards for writing robust, portable, and safe shell scripts for automation, CI/CD pipelines, and developer tooling, covering safety flags, variables, portability, error handling, and cross-platform compatibility.
Source File
View the full rule: .agent/rules/shell.md
Sections
- Safety Flags & Script Header
- Variables & Quoting
- Functions & Structure
- Portability & Best Practices
- Error Handling & Tooling
- Cross-Platform Delegation Pattern
- Linting Requirements (All Script Types)
- High-Performance & Robustness Patterns
- Defensive Tool Installation Pattern (MANDATORY)
- Language-Specific Best Practices
