Agent Skills
› instructa/agent-skills
› shellck
shellck
GitHub在编辑脚本或调试 Shell 错误后运行 shellcheck,用于 linting 脚本、捕获未定义变量、子shell使用不当或引号错误等问题。
Trigger Scenarios
编辑完 Shell 脚本后
遇到 Shell 脚本执行错误时
Install
npx skills add instructa/agent-skills --skill shellck -g -y
SKILL.md
Frontmatter
{
"name": "shellck",
"description": "Run shellcheck on shell scripts after editing scripts or when debugging shell errors. Use for linting scripts in a repo (especially scripts\/), catching issues like set -u with unset vars, bad subshell usage, or quoting mistakes."
}
Shellck
Overview
Provide a fast, repeatable shellcheck pass for repo scripts. Use this skill after editing shell scripts or when a script fails unexpectedly.
Workflow
- Ensure
shellcheckis installed. - From the repo root, run the helper script.
Quick start
Run against the default scripts/ directory:
$CODEX_HOME/skills/shellck/scripts/run_shellck.sh
Run against specific files or directories:
$CODEX_HOME/skills/shellck/scripts/run_shellck.sh scripts/perf-profiler
$CODEX_HOME/skills/shellck/scripts/run_shellck.sh scripts/ other/dir/some.sh
Behavior
- If no paths are provided, it scans
scripts/for shell scripts. - If paths are provided, it accepts files or directories and filters to shell scripts by extension or shebang.
- Exits non-zero on shellcheck failures.
Resources
scripts/
run_shellck.sh: shellcheck runner with sensible defaults and directory filtering.
Version History
- 11dfe69 Current 2026-08-20 11:31


