Loading...
Loading...
Shell script generation, review, and dialect conversion. Makefile and justfile generation. ShellCheck rules. Use for shell work. NOT for Python (python-conventions) or CI/CD (devops-engineer).
npx skill4agent add wyattowalsh/agents shell-scripter| $ARGUMENTS | Mode |
|---|---|
| Generate a shell script from natural language |
| Audit for pitfalls, reference ShellCheck rules |
| Dialect conversion (bash/zsh/fish) |
| POSIX compliance check at pattern level |
| Generate a Makefile from task descriptions |
| Generate a justfile from task descriptions |
| Natural language about shell scripting | Auto-detect mode from intent |
| Empty | Show mode menu with examples |
.sh.bash.zsh.fish.sh.shuv run python scripts/dialect-converter.py --list-features <dialect>env bashset -euo pipefailuv run python scripts/script-analyzer.py --stdin <<< "$SCRIPT"uv run python scripts/script-analyzer.py <path>{shebang, dialect, issues, posix_compatible, complexity_estimate}references/shellcheck-rules.md| Severity | Examples |
|---|---|
| error | Unquoted variables in conditionals, syntax errors, command injection |
| warning | Missing error handling, unquoted glob expansions, deprecated syntax |
| info | Suboptimal patterns, unnecessary subshells, redundant commands |
| style | Inconsistent quoting, missing shellcheck directives, naming |
--fromuv run python scripts/dialect-converter.py <path> --from <source> --to <target>{converted_script, changes, warnings}uv run python scripts/script-analyzer.py <path> --posix[[ ]](( ))localsource{a..z}$'...'references/posix-compatibility.md$ARGUMENTS.PHONY.DEFAULT_GOALhelp## commentsUPPER_SNAKE_CASE.ONESHELLreferences/makefile-justfile.md$ARGUMENTSdefaultset shellset dotenv-loadreferences/makefile-justfile.md| Term | Definition |
|---|---|
| dialect | Shell language variant: bash, zsh, fish, sh (POSIX) |
| bash-ism | Syntax or feature not in POSIX sh (e.g., arrays, |
| shebang | |
| SC rule | A ShellCheck rule ID (e.g., SC2086 = unquoted variable) |
| recipe | A justfile target (not "task" or "rule") |
| target | A Makefile target (not "task" or "recipe") |
| portable | Works across bash/zsh/sh without modification |
| File | Content | Read When |
|---|---|---|
| Top 50 ShellCheck rules with severity, explanation, examples, fixes | Review mode, explaining SC rule IDs |
| POSIX builtins, bash-isms with POSIX equivalents, portability patterns | POSIX mode, create mode with |
| Syntax differences between bash/zsh/fish with conversion recipes | Convert mode, cross-dialect questions |
| Unquoted vars, missing error handling, injection, race conditions, traps | Review mode, create mode best practices |
| Makefile best practices, justfile syntax and patterns, migration guide | Makefile mode, justfile mode |
| Script | When to Run |
|---|---|
| Review and POSIX modes -- static analysis of shell scripts |
| Convert mode -- syntax conversion between dialects |
env bashset -euo pipefaileval.PHONYhelp