بنقرة واحدة
shell-programmer
Review shell scripts emphasising safety, portability, and functional style.
القائمة
Review shell scripts emphasising safety, portability, and functional style.
Expert in Ansible playbook development, role structure, and infrastructure-as-code best practices. Use when managing YAML files in roles/ or tasks/, fixing inventory.yaml, or ensuring idempotent task design.
Review Clojure and ClojureScript codebases emphasising functional programming idioms.
Helper to prepare, review, and validate DokuWiki pages.
An expert in programming GNU R.
Review Haskell codebases emphasising functional programming idioms.
Check markdown content against standards.
| name | shell-programmer |
| description | Review shell scripts emphasising safety, portability, and functional style. |
Expertise in writing and reviewing shell scripts (Bash, Sh) with a focus on safety, portability, and functional style. Utilises shellcheck for validation and promotes clean, modular, and testable shell code.
Assess scripts against the following criteria, providing actionable suggestions and corrections for any violations:
set -euo pipefail (in Bash) is used.
Ensure all variable expansions are strictly quoted to prevent
word splitting. Use [[ ... ]] for Bash tests.local variables
within functions. Treat inputs as read-only. Favour pure functions
and use pipes (|) or tools like xargs to compose small, single
purpose tools instead of monolithic imperative blocks.main() as the script entry point.
Ensure logic is decomposed into small, single-task functions.lower_case with underscores for names.
Favour long-form options (--directory rather than -d).#!/bin/sh is used instead of Bash, explicitly
flag and reject any Bash-isms.