lint
Run linting tools on shell scripts and GitHub Actions workflows in this project.
Your Task
Run the following checks on changed files (relative to main branch):
1. Shell Scripts (shellcheck)
# 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
2. GitHub Actions Workflows (actionlint)
# 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
done
Handling Issues
When lint issues are found:
- Fix the issues - Correct the code to resolve warnings/errors
- Only use disable directives as a last resort - If a warning is a false positive or truly unavoidable, add a disable comment with explanation:
# shellcheck disable=SC2034 # Variable used by sourcing script - Report what was fixed - Summarize the changes made
Optional Guidance
$ARGUMENTS
More from aaddrick/claude-desktop-debian
simplify
Manually trigger the cdd-code-simplifier agent to review and simplify code
54setup-build-tools
Install build and extraction tools needed for building Claude Desktop Debian packages
44writing-agents
Use when creating new agents, editing existing agents, or defining specialized subagent roles for the Task tool
22improvement-loop
Use after resolving a bug, failed task, or unexpected agent behavior to improve the pipeline skills, agents, hooks, or scripts that contributed to the problem. Also proactively suggest improvements when recurring patterns or inefficiencies are observed.
18implement-issue
Use when given a GitHub issue number and base branch to implement end-to-end
18writing-skills
Use when creating new skills, editing existing skills, or verifying skills work before deployment
17