bash-scaffold

Installation
SKILL.md

Scaffold a Bash Script

This skill produces a single self-contained bash script. The script starts from a curated template that combines the safety patterns from ralish/bash-script-template with the formatting rules from the Google Shell Style Guide and a colour palette drawn from Open Color via 24-bit ANSI escapes. Every optional feature in the template is gated behind a section marker; the scaffolder removes the markers and the unselected feature blocks before writing the file.

When this skill applies

The user is starting a new shell script and wants the boilerplate done well. They might phrase it as "scaffold a bash script", "give me a template", "start a new .sh for X", or simply describe a chore they plan to automate in bash. If the user is editing an existing script or asking for a one-line shell snippet, this skill does not apply.

Workflow

The work happens in five steps. Steps 2 and 3 are the only places the user is interrupted; everything else runs without prompting.

Step 1 — Capture the script's purpose

Read the user's request. The purpose is whatever they said the script will do. If the request was vague ("a bash script" with no details), ask one clarifying free-text question before continuing — the purpose ends up in the file header and shapes the placeholder body.

Pick a sensible script name from the purpose if the user did not supply one. Snake-case, no extension when the script is meant to be on PATH, .sh extension otherwise. Confirm the name and path with the user only if there is real ambiguity; otherwise state your choice and proceed.

Step 2 — Shape-up round 1: runtime context

Related skills
Installs
2
GitHub Stars
1
First Seen
4 days ago