shell-scripting

Automate administrative tasks with portable bash/zsh scripts and strict error handling.

4|Updated Dec 23, 2025
One-click install
npx skills add https://github.com/89jobrien/steve --skill shell-scripting-89jobrien
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: shell-scripting
Source: https://github.com/89jobrien/steve/tree/main/steve/skills/shell-scripting
Command: npx skills add https://github.com/89jobrien/steve --skill shell-scripting-89jobrien

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides robust patterns for shell scripting, automation, and CLI tool development.

Core Features & Use Cases

  • Error Handling: set -euo pipefail and safe variable handling.
  • Templates & Patterns: Reusable templates and idioms.
  • CLI Tools: Build practical command-line utilities.

Quick Start

Start new shell scripts quickly using the provided templates.

Frequently Asked Questions about shell-scripting

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

FAQPage Schema
How do I write shell scripts with proper error handling?

Shell scripts with robust error handling use set -euo pipefail to exit on errors, undefined variables, and pipe failures. This pattern, combined with safe variable handling and structured templates, prevents silent failures in automation scripts and CLI tools.

What are shell scripting best practices for automation and CLI tools?

Best practices include strict error handling with set -euo pipefail, portable bash/zsh patterns, structured argument parsing, logging conventions, and reusable templates. These patterns ensure reliable automation scripts, system administration tasks, and CLI utilities across environments.

How do I build command-line tools with bash or zsh?

Build CLI tools using portable bash/zsh patterns with argument parsing, error handling, logging, and structured templates. This approach works for automation scripts, deployment workflows, log processing, and system administration tasks reliably across platforms.

Can I use these patterns for cron jobs and deployment automation?

Yes. Shell scripting patterns apply to cron jobs, build workflows, and deployment automation. Strict error handling, safe variables, and logging conventions ensure these scripts fail safely and produce auditable logs for scheduled and deployment contexts.

What's the best way to structure file manipulation and log processing scripts?

Use structured templates with argument parsing, error handling, and logging conventions for file manipulation and log processing. Reusable patterns and portable bash/zsh idioms provide reliable, maintainable scripts for these administrative tasks.

Do I need to learn both bash and zsh for shell scripting?

Portable bash/zsh patterns allow scripts to work across both shells. Learning shared idioms and strict error handling techniques like set -euo pipefail ensures your automation scripts and CLI tools run reliably regardless of which shell executes them.