Skip to content
Back to skills

Shell Script

ASecurity

シェルスクリプトの作成・レビュー・改善を行うスキル。POSIX準拠とShellCheck対応

  • 666 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 2, 2026
ai-agentsc#shellbash

Security analysis

A100/100

Scanned September 2, 2026

npx -y skills add majiayu000/claude-skill-registry --skill shell-script --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Shell Script?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Shell Script
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-shell-script-claude-skill-registry/badge)](https://www.skillsdirectory.com/skills/majiayu000-shell-script-claude-skill-registry)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: shell-script
description: シェルスクリプトの作成・レビュー・改善を行うスキル。POSIX準拠とShellCheck対応
---

# Shell Script Skill

シェルスクリプトの作成・レビュー・改善を行うためのスキルです。

## 基本方針

### POSIX準拠

- 可搬性を重視
- bash拡張が必要な場合は shebang で明示

### ShellCheck準拠

- 全てのスクリプトはShellCheckでエラー0を目指す
- 必要な場合のみ `# shellcheck disable=SC####` で抑制

## コーディング規約

### 変数

```bash
# 変数は常にクォート
echo "${variable}"

# ローカル変数には local を使用
local my_var="value"

# 定数は大文字
readonly MY_CONSTANT="value"
```

### エラーハンドリング

```bash
# スクリプト先頭に設定
set -euo pipefail

# エラーメッセージは stderr へ
echo "Error: something went wrong" >&2
exit 1
```

### 関数

```bash
# 関数名はスネークケース
my_function() {
    local arg1="$1"
    # 処理
}
```

## チェックリスト

- [ ] shebang は適切か(#!/bin/bash or #!/bin/sh)
- [ ] `set -euo pipefail` があるか
- [ ] 変数は全てクォートされているか
- [ ] ShellCheckエラーはないか
- [ ] 実行権限の設定は適切か

## 出力形式(レビュー時)

```markdown
## Shell Script Review

### ShellCheck Results
[ShellCheckの結果サマリ]

### Issues
- [問題点と修正提案]

### Improved Script
[改善版スクリプト(必要な場合)]
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.