# Shell Script Helper

> Generate, explain, and debug shell scripts with ready-made templates. Use when writing Bash, debugging errors, creating cron jobs, checking syntax.

- Skill: `bytesagain/shell-script-helper` (Agent Skill, multi-file: 4 files)
- Install (CLI): `npx skillmds@latest add bytesagain/shell-script-helper`
- Raw SKILL.md: https://api.skillmd.com/api/skills/bytesagain/shell-script-helper/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: bytesagain (https://skillmd.com/u/bytesagain)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/bytesagain/shell-script-helper

---

# Shell Script Helper

Shell脚本助手。脚本生成、逐行解释、调试排错、常用模板(备份/监控/部署)、一行命令、Bash速查表。Shell script generator, explainer, debugger, templates, one-liners, cheatsheet. Shell、Bash、Linux命令。

## 如何使用

1. 选择你需要的功能命令
2. 输入你的具体需求描述
3. 获取专业的输出结果
4. 根据需要调整和完善

## 命令列表

| 命令 | 功能 |
| Command | Description |
|---------|-------------|
| `backup` | Backup |
| `deploy` | Deploy |
| `monitor` | Monitor |
| `setup` | Setup |

## 专业建议

- 开头加 `set -euo pipefail`（出错即停、未定义变量报错、管道错误传播）
- 变量双引号包裹 `"$var"`（防止空格/特殊字符问题）
- 用 `[[ ]]` 代替 `[ ]`（更安全、支持正则）
- 用 `$(command)` 代替反引号
- 函数内用 `local` 声明局部变量

---
*Shell Script Helper by BytesAgain*
---
💬 Feedback & Feature Requests: https://bytesagain.com/feedback
Powered by BytesAgain | bytesagain.com

## Examples

```bash
# Show help
shell-script help

# Run
shell-script run
```

## Commands

Run `shell-script help` to see all available commands.

