一键导入
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 页面并帮你完成安装。
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.
基于 SOC 职业分类
| 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>
==================================================