lint

Run linting tools on shell scripts and GitHub Actions workflows in this project.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "lint" with this command: npx skills add aaddrick/claude-desktop-debian/aaddrick-claude-desktop-debian-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

  1. 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

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

simplify

No summary provided by upstream source.

Repository SourceNeeds Review
General

setup-build-tools

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

writing-agents

No summary provided by upstream source.

Repository SourceNeeds Review
General

writing-skills

No summary provided by upstream source.

Repository SourceNeeds Review