Skip to content
Development
Command

/shell-review

Audit shell scripts for correctness, safety, and portability.

From plugin
claude-night-market
325163 skills59 agents163 commands1 MCP
Install
$ npx -y skills add athola/claude-night-market --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/shell-review

Context preview

What this command does when you run it.

Audit shell scripts for correctness, safety, and portability.

Command definition

shell-review.md

Shell Script Review Command

Audit shell scripts for correctness, safety, and portability.

Usage

/shell-review [path/to/script.sh]

Without arguments, reviews all `.sh` files in `scripts/` and `.git/hooks/`.

What It Does

1. **Context Mapping**: Find shell scripts and integration points 2. **Exit Code Audit**: Check pipeline exit code propagation 3. **Portability Check**: POSIX vs Bash compatibility 4. **Safety Patterns**: Quoting, set flags, temp files 5. **Evidence Logging**: Document findings

Scope

  • Exit code propagation in pipelines
  • set -euo pipefail usage
  • Variable quoting
  • POSIX vs Bash compatibility
  • Temporary file handling
  • Directory change safety

Key Anti-Patterns Detected

  • `cmd | grep` in if conditions (exit code masked)
  • Unquoted variables
  • Missing set flags
  • Bash-isms in `/bin/sh` scripts
  • Unsafe temp file creation

Output

  • Exit code issues with fix patterns
  • Portability warnings
  • Safety recommendations
  • Overall assessment
Ships withclaude-night-market

A plugin marketplace for Claude Code. Install only the plugins you need to run git workflows, code review, spec-driven development, and autonomous agents from inside your Claude Code session.

Get the whole plugin, auto-invoked
Stats
325
Stars
0
Views
35
Forks
Active
Maintenance
Python
Language
MIT
License
1d ago
Last commit
8mo ago
Created

Repo: athola/claude-night-market