You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: skills/software-development/scripts-bash/SKILL.md
+16-5Lines changed: 16 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
name: scripts-bash
3
-
description: "Use when writing, revising, or reviewing long-lived bash installer/manager scripts. Enforces a rigid ops-script standard: fixed header, SCREAMING_SNAKE_CASE globals, ANSI log lines, spinner suite, case-driven routines, and hard verification gates."
4
-
version: 4.2.1
3
+
description: "Use when creating, writing, rewriting, revising, restyling, or reviewing any bash (.sh) installer/manager/automation script—especially short user prompts like 'rewrite this script: /path/foo.sh'. Auto-applies rigid ops-script standard: fixed header, SCREAMING_SNAKE_CASE, ANSI logs, spinners, ROUTINE/case, sexit, craft bar. On rewrite: write version-bumped sibling (name.sh→name-01.sh, name-01.sh→name-02.sh); do not overwrite source unless asked."
4
+
version: 4.2.2
5
5
author: Vituvo
6
6
license: MIT
7
7
platforms: [linux]
@@ -17,9 +17,19 @@ Standard for **long-lived bash installer / manager scripts**. Not for one-liners
17
17
18
18
## When to use
19
19
20
-
- Create or revise an installer/manager script
21
-
- Enforce house style: header, colors, spinners, `ROUTINE` + `case`
22
-
- Review a script against this spec
20
+
-**Any** create / write / rewrite / restyle / fix / review of a `.sh` file in coder-bash
21
+
- Short prompts: `rewrite this script: /path/to/foo.sh` (load this skill automatically; user need not list steps)
22
+
- Installer/manager automation under profile `workspace/`
23
+
24
+
## Rewrite output naming (automatic)
25
+
26
+
| Source | Output (same directory) |
27
+
|--------|-------------------------|
28
+
|`name.sh`|`name-01.sh`|
29
+
|`name-01.sh`|`name-02.sh`|
30
+
|`name-NN.sh`|`name-(NN+1).sh` (2-digit pad) |
31
+
32
+
Do not overwrite source unless user says overwrite. Keep behavior; apply full style law.
23
33
24
34
## When NOT to use
25
35
@@ -183,6 +193,7 @@ House style uses **explicit exit checks** + `sexit; exit 1`. Do **not** slap `se
183
193
184
194
## Version
185
195
196
+
-**4.2.2** — Auto rewrite triggers; version-bump output paths (name.sh→name-01.sh…)
186
197
-**4.2.1** — Single template at `templates/template-base.sh`; removed duplicate references/examples copies
0 commit comments