So just checking my ~/bin directory tree, and the median line count for my 287 scripts is 4. I am unlikely to add this framework to these.
Here is one example called 'date8sl.sh':
#!/bin/sh
date +%Y/%m/%d
This gives the date in a nice slash delimited form, suitable for creating date-structured directories, as in mkdir -pv $(date8sl.sh)
The longest of the useful ones is 22 lines.My tendency is to put anything more complicated in code, these days preferring sbcl lisp with :inferior-shell, :cl-readline. Also occasionally python.
I'm just uncomfortable with shell scripts long enough to benefit from this framework.