Agent skill · data analytics · aiskillstore
shellcheck-configuration
Master ShellCheck static analysis configuration and usage for shell script quality. Use when setting up linting infrastructure, fixing code issues, or ensuring script portability.
Why this skill is useful
Provides specific ShellCheck configuration patterns and error handling that the AI wouldn't reliably generate on its own.
What it needs
Requires shellcheck installed locally. About 5k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.
What this skill does
ShellCheck Configuration and Static Analysis Comprehensive guidance for configuring and using ShellCheck to improve shell script quality, catch common pitfalls, and enforce best practices through static code analysis. When to Use This Skill Setting up linting for shell scripts in CI/CD pipelines Analyzing existing shell scripts for issues Understanding ShellCheck error codes and warnings Configuring ShellCheck for specific project requirements Integrating ShellCheck into development workflows Suppressing false positives and configuring rule sets Enforcing consistent code quality standards Migrating scripts to meet quality gates ShellCheck Fundamentals What is ShellCheck? ShellCheck is a static analysis tool that analyzes shell scripts and detects problematic patterns. It supports: Bash, sh, dash, ksh, and other POSIX shells Over 100 different warnings and errors Configuration for target shell and flags Integration with editors and CI/CD systems Installation Configuration Files .shellcheckrc (Project Level) Create .shellcheckrc in your project root: Environment Variables Common ShellCheck Error Codes SC1000-1099: Parser Errors SC2000-2099: Shell Issues SC2100-2199: Quoting Issues SC3000-3999: POSIX Compliance Issues Practical Configuration Examples Minimal Configuration (Strict POSIX) Development Configuration (Bash with Relaxed Rules) CI/CD Integration Configuration .shellcheckrc for Project Integration Patterns Pre-commit Hook Configuration GitHub Actions Workflow GitLab CI Pipeline Handling ShellCheck Violations Suppressing Specific Warnings Common Violations and Fixes SC2086: Double quote to prevent word splitting SC2181: Check exit code directly SC2015: Use if-then instead of && SC2016: Expressions don't expand in single quotes SC2009: Use pgrep instead of grep Performance Optimization Checking Multiple Files Caching Results Output Formats Default Format GCC Format (for CI/CD) JSON Format (for parsing) Quiet Format Best Practices 1. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills aiskillstore/shellcheck-configuration--f60ef9