بنقرة واحدة
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>
==================================================