ワンクリックで
lint-shellscript
Run shell lint tools, then check custom coding rules. Severity labels in Japanese.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Run shell lint tools, then check custom coding rules. Severity labels in Japanese.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Run JavaScript/React lint tools, then check custom coding rules. Severity labels in Japanese.
Run Python lint tools, then check custom coding rules. Severity labels in Japanese.
Run TypeScript/React lint tools, then check custom coding rules. Severity labels in Japanese.
Generates commit messages and checks code quality for staged changes. Prefer gcmA alias for fast use.
| name | lint-shellscript |
| description | Run shell lint tools, then check custom coding rules. Severity labels in Japanese. |
| allowed-tools | bash, write, edit |
Detect available tools (make, bash, sh), then choose ONE branch:
Branch A — Makefile has lint: target:
make lint 2>&1
Branch B — fallback to bash syntax check + shellcheck (if available):
for f in $(find . -maxdepth 5 -name '*.sh' ! -path '*/.git/*'); do
echo "=== checking $f ==="
bash -n "$f" 2>&1 || true
command -v shellcheck >/dev/null 2>&1 \
&& shellcheck "$f" 2>&1 || true
done
Then scan custom rules (fix iteratively):
[高] Must fix:
#!/bin/bash or #!/bin/sh shebangeval usagesource without set -e or error handlingsh scripts using arrays, [[ ]], $'...'# ------------------------------------------------------------------------------ (80 chars)[中] Should fix:
set -euo pipefail (bash) or set -eu (sh)cd without error check{} would suffice[低] Nice to fix:
echo with unescaped special characters (use printf)&& / || used as ternary replacement)Print summary:
==================================================
Lint complete (Shell Script)
==================================================
Files checked : <N>
[高] Critical : <N>
[中] Important : <N>
[低] Minor : <N>
==================================================