--- name: "Shell Standards" description: "Cross-project shell scripting standards for safety and predictable automation." applyTo: "**/*.sh" --- - Use defensive scripting with explicit error handling. - Quote variables and paths. - Validate inputs before using them in commands. - Keep scripts modular and avoid hidden side effects. - Avoid unsafe deletion patterns, silent failures, and hardcoded environment-specific paths. - Keep scripts ShellCheck-compatible where feasible.