Skip to content

Commit 2c11d4c

Browse files
committed
feat: auto scripts-bash on rewrite; version-bump output paths
SOUL/AGENTS (profile) + skill 4.2.2: short "rewrite this script" prompts load skill without step lists; name.sh → name-01.sh → name-02.sh.
1 parent 1ebfab2 commit 2c11d4c

1 file changed

Lines changed: 16 additions & 5 deletions

File tree

  • skills/software-development/scripts-bash

skills/software-development/scripts-bash/SKILL.md

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
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
55
author: Vituvo
66
license: MIT
77
platforms: [linux]
@@ -17,9 +17,19 @@ Standard for **long-lived bash installer / manager scripts**. Not for one-liners
1717

1818
## When to use
1919

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.
2333

2434
## When NOT to use
2535

@@ -183,6 +193,7 @@ House style uses **explicit exit checks** + `sexit; exit 1`. Do **not** slap `se
183193

184194
## Version
185195

196+
- **4.2.2** — Auto rewrite triggers; version-bump output paths (name.sh→name-01.sh…)
186197
- **4.2.1** — Single template at `templates/template-base.sh`; removed duplicate references/examples copies
187198
- **4.2.0** — Craft bar; SOUL/AGENTS alignment
188199
- **4.1.x** — Authoring tutorial; lean hub package

0 commit comments

Comments
 (0)