secure-bash-rules

Community

Secure Bash scripting with strict rules.

Authorjamieadams-nerd
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Security rules for writing Bash scripts in the UMRS project: shebang directives, PATH locking, environment sanitization, strict mode, quoting, input validation, exit codes, temporary files, privileged script requirements, and secret handling. Use this skill when working with bash scripts, .sh files, shebang, PATH lock, env sanitization in bash, strict mode, privileged scripts, or writing bash. Trigger when creating or editing any .sh file or bash script content.

Core Features & Use Cases

  • Interpreter Directive Rule: enforce absolute interpreter paths in shebang lines to avoid PATH manipulation.
  • PATH locking & environment sanitization: set restricted PATH at startup and unset dangerous env vars to reduce surface area.
  • Strict mode & robust quotes: enable set -euo pipefail and strict quoting and input validation.

Quick Start

Apply these rules when creating or editing any Bash script to ensure secure, auditable execution.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: secure-bash-rules
Download link: https://github.com/jamieadams-nerd/umrs-project/archive/main.zip#secure-bash-rules

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.