Run shellcheck and actionlint on shell scripts and GitHub Actions workflows. Use before pushing or when fixing lint issues.
91
93%
Does it follow best practices?
Impact
87%
1.14xAverage score across 6 eval scenarios
Passed
No known issues
Run linting tools on shell scripts and GitHub Actions workflows in this project.
Run the following checks on changed files (relative to main branch):
# Find changed shell scripts
changed_scripts=$(git diff --name-only main...HEAD 2>/dev/null | grep -E '\.sh$')
# Run shellcheck on each
for script in $changed_scripts; do
if [[ -f "$script" ]]; then
shellcheck -f gcc "$script"
fi
done# Find changed workflow files
changed_workflows=$(git diff --name-only main...HEAD 2>/dev/null | grep -E '\.github/workflows/.*\.ya?ml$')
# Run actionlint on each
for workflow in $changed_workflows; do
if [[ -f "$workflow" ]]; then
actionlint "$workflow"
fi
doneWhen lint issues are found:
# shellcheck disable=SC2034 # Variable used by sourcing script$ARGUMENTS
814cd52
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.