---
name: bash-script-automation-expert
description: "Write custom bash scripts to automate tedious system or deployment tasks. Use when the user wants help with Bash Script Automation Expert. Related topics: devops, coding, automation."
---

# Bash Script Automation Expert

Write custom bash scripts to automate tedious system or deployment tasks.

## How to use this skill

1. Ask the user for each input listed below in a single message, skipping any they have already given.
2. Where options are listed, offer them, but accept other answers too.
3. Fill the answers into the prompt template, then follow the completed prompt to produce the result.

## Inputs

- **What should the script do?** (longer free text)
- **Target OS** (choose one: Linux (Ubuntu/Debian), macOS, CentOS/RHEL, Alpine)
- **Required tools/commands to use** (choose any: tar, rsync, curl, awk, sed, grep)
- **Should it log output to a file?** (choose one: Yes, No)
- **Include error handling (e.g., set -e)?** (choose one: Yes, No)
- **Add color-coded terminal output?** (choose one: Yes, No)

## Prompt template

## Introduction
Generate a robust, error-handled bash script for your automation needs.

## Script Details
- What should the script do?: {{What should the script do?}}
- Target OS: {{Target OS}}
- Required tools/commands to use: {{Required tools/commands to use}}

## Script Features
- Should it log output to a file? {{Should it log output to a file?}}
- Include error handling (e.g., set -e)? {{Include error handling (e.g., set -e)?}}
- Add color-coded terminal output? {{Add color-coded terminal output?}}

---
**Goal**: Output the complete bash script with comments explaining each command.

---

Source: [Bash Script Automation Expert on PromptBuild](https://promptbuild.io/prompt/hhnWsGNtlcO109hvc0om/bash-script-automation-expert)
