Deep analysis of bash scripts for security, performance, portability, and best practices compliance
Analyzes bash scripts for security vulnerabilities, performance issues, portability, and best practices compliance.
/plugin marketplace add JosiahSiegel/claude-plugin-marketplace/plugin install bash-master@claude-plugin-marketplace<script.sh or directory>MANDATORY: Always Use Backslashes on Windows for File Paths
When using Edit or Write tools on Windows, you MUST use backslashes (\) in file paths, NOT forward slashes (/).
Perform comprehensive analysis of bash scripts covering security vulnerabilities, performance issues, portability concerns, and adherence to modern best practices.
For each script analyzed, provide:
## Script: <filename>
### Security Issues
- [CRITICAL] <issue description>
- [HIGH] <issue description>
- [MEDIUM] <issue description>
### Performance Issues
- [IMPACT: HIGH] <issue description>
- [IMPACT: MEDIUM] <issue description>
### Portability Issues
- [Bash 5.x required] <feature used>
- [GNU-specific] <command/flag used>
### Best Practice Violations
- [ShellCheck SC####] <description>
- [Style] <description>
### Recommendations
1. <actionable recommendation>
2. <actionable recommendation>
### Score: X/100
- Security: X/25
- Performance: X/25
- Portability: X/25
- Best Practices: X/25
When analyzing scripts, systematically check:
Analyze single script:
/bash-analyze backup.sh
Analyze directory:
/bash-analyze scripts/
Focus on security:
/bash-analyze deploy.sh focus on security vulnerabilities
Check portability:
/bash-analyze build.sh check POSIX compliance
Based on findings, I will:
Comprehensive bash script analysis using 2025 best practices and security standards.