synthesys-lab/agentize/shell-script-review
Claude Code and agent skill by synthesys-lab/agentize
- community
Checking that the SKILL.md file is still in the repository.
Skill for reviewing shell scripts with shell-neutral behavior with best efforts.
Install
npx vskill@latest install synthesys-lab/agentize/shell-script-reviewSKILL.md
The same SKILL.md was published earlier as majiayu000/claude-skill-registry/shell-script-review.
Currently, all the mainstream operating systems are using Bash as their default shell. However, many programmers like Zsh for its better interactive features.
Below we list several common different behaviors between Bash and Zsh, along with workarounds to write shell-neutral scripts that work in both shells.
DO NOT over checking!
Suspecting everything itself is suspicious: If the file checked is a well committed file in this repo, DO NOT check for it existence at all! If you are not sure, use git ls-files XXX to check if it is tracked by git.
Similarly for environment variables, check setup.sh and session-init.sh to see if these variables are always set by those scripts. If so, DO NOT -z or -n check them!
Array Indexing
Shell-neutral workaround:
Option 1: Force ksh-style arrays in zsh
Option 2: Avoid use traversal
Additionally, when parsing positional arguments, extract them to variables directly:
Script Path Detection
Shell-neutral workaround:
A reliable way to get the script path in both shells:
Another option is to reply on environment variables exported by setup.sh and we use absolute paths based on those or absolute paths by git rev-parse.
Variable Expansion & Word Splitting
Shell-neutral workaround:
Globbing
Shell-neutral workaround:
Arrays & Associative Arrays
Bash:
Zsh:
Shell-neutral workaround:
local path="screwed" echo $PATH # screwed
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.claude-plugin/skills/shell-script-review/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/synthesys-lab/agentize/shell-script-review)