| name | os-scripting |
| description | Operating system and shell scripting troubleshooting workflow for Linux, macOS, and Windows. Covers bash scripting, system administration, debugging, and automation. |
| type | skill |
| created | 2026-02-27T00:00:00.000Z |
| domain | software-development |
| category | devtools |
| risk | safe |
| source | personal |
| tags | ["skill","software-development","devtools","scripting"] |
OS/Shell Scripting Troubleshooting Workflow Bundle
Overview
Comprehensive workflow for operating system troubleshooting, shell scripting, and system administration across Linux, macOS, and Windows. This bundle orchestrates skills for debugging system issues, creating robust scripts, and automating administrative tasks.
When to Use This Workflow
Use this workflow when:
- Debugging shell script errors
- Creating production-ready bash scripts
- Troubleshooting system issues
- Automating system administration tasks
- Managing processes and services
- Configuring system resources
Workflow Phases
Phase 1: Environment Assessment
Skills to Invoke
bash-linux - Linux bash patterns
bash-pro - Professional bash scripting
bash-defensive-patterns - Defensive scripting
Actions
- Identify operating system and version
- Check available tools and commands
- Verify permissions and access
- Assess system resources
- Review logs and error messages
Diagnostic Commands
uname -a
cat /etc/os-release
hostnamectl
top
htop
df -h
free -m
ps aux
pgrep -f pattern
lsof -i :port
netstat -tulpn
ss -tulpn
ip addr show
Copy-Paste Prompts
Use @bash-linux to diagnose system performance issues
Phase 2: Script Analysis
Skills to Invoke
bash-defensive-patterns - Defensive scripting
shellcheck-configuration - ShellCheck linting
bats-testing-patterns - Bats testing
Actions
- Run ShellCheck for linting
- Analyze script structure
- Identify potential issues
- Check error handling
- Verify variable usage
ShellCheck Usage
apt install shellcheck
brew install shellcheck
shellcheck script.sh
shellcheck -f gcc script.sh