shell-scripting-pro — Claude Code subagent for shell scripts
A subagent that writes and fixes shell scripts: strict error mode, quoted variables, portability across Unix-like systems.
npx claude-code-templates@latest --agent programming-languages/shell-scripting-proWhat shell-scripting-pro does
shell-scripting-pro is a Claude subagent aimed at automation and sysadmin work. It handles bash and zsh, process management, file operations and text processing. Its toolset is small: Read, Write, Edit and Bash.
The agent follows a fixed set of habits. Scripts start with set -euo pipefail, variables get quoted so word splitting does not bite, and built-ins win over external tools where that works. Input validation, modular functions and readable help messages come along with it. Complex logic is expected to carry comments and usage examples.
POSIX compliance is listed as a priority, so the output targets different Unix-like environments. You still run the result yourself — the subagent writes code, it does not execute it in your setup. Teams with existing logging or monitoring conventions should say so up front, or they will get tidy scripts in someone else's style.
What it helps with
- write a deployment script with error handling
- rewrite a bash script to be POSIX-compliant
- add argument validation to an existing script
- split a long script into reusable functions
- wire logging and monitoring into an automation script
Example prompts for the agent
- Write
deploy.shfor server rollout, with argument checks and strict error mode - Rewrite this bash script so it runs in POSIX-compliant shells
- Add logging to this script and break it into functions
How to install shell-scripting-pro
1claude-code-templates
npx claude-code-templates@latest --agent programming-languages/shell-scripting-pro2Manually: put the files in place
.claude/agents/shell-scripting-pro.mdFor all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention
Manually: put the files in place
.codex/agents/shell-scripting-pro.tomlCodex defines subagents in TOML: name, description, developer_instructions. Move the Markdown text into developer_instructions by hand. For all projects use ~/.codex/agents/
Manually: put the files in place
.cursor/agents/shell-scripting-pro.mdCursor also reads .claude/agents/
Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean
Questions about shell-scripting-pro
How do I install shell-scripting-pro in Claude Code?
Run npx claude-code-templates@latest --agent programming-languages/shell-scripting-pro. The subagent file lands at .claude/agents/shell-scripting-pro.md.
What does shell-scripting-pro do?
It writes and edits shell scripts for automation and administration, with attention to error handling, quoting and portability across Unix-like systems.
Which tools can the subagent use?
Read, Write, Edit and Bash — reading, writing and editing files, plus running shell commands.