Skills shellcheck-configuration
🐚

shellcheck-configuration

Safe 🌐 Network access⚙️ External commands📁 Filesystem access

Configure ShellCheck for reliable shell linting

Shell script issues hide until production and slow code reviews. This skill explains ShellCheck setup, rule configuration, and integration workflows to catch problems before merge.

Supports: Claude Codex Code(CC)
📊 71 Adequate
1

Download the skill ZIP

2

Upload in Claude

Go to Settings → Capabilities → Skills → Upload skill

3

Toggle on and start using

Test it

Using "shellcheck-configuration". I need help understanding SC2086 and how to fix it

Expected outcome:

  • SC2086 is the unquoted variable expansion warning
  • Fix by quoting variables or using array syntax
  • Example: change 'for i in $list' to 'for i in "$list"' or 'for i in "${list[@]}"'

Using "shellcheck-configuration". Create a .shellcheckrc for a Bash project

Expected outcome:

  • Set shell=bash for Bash dialect analysis
  • Enable optional checks like require-variable-braces
  • Disable SC1091 for sourced files that may not exist
  • Document each disabled code with a comment explaining why

Security Audit

Safe
v4 • 1/17/2026

Pure documentation skill containing only markdown guidance for ShellCheck, a legitimate open-source static analysis tool. All static findings are false positives. References like SC2009, SC2086 are ShellCheck error codes (not C2 keywords), sha256sum is appropriate for caching (not weak crypto), and shell examples are documentation (not malicious patterns).

2
Files scanned
631
Lines analyzed
3
findings
4
Total audits
Audited by: claude View Audit History →

Quality Score

38
Architecture
100
Maintainability
85
Content
32
Community
100
Security
91
Spec Compliance

What You Can Build

Add CI shell linting

Set up ShellCheck in CI pipelines with consistent flags and failure rules.

Fix common warnings

Understand key ShellCheck codes and apply safer quoting and flow patterns.

Standardize lint rules

Define shared .shellcheckrc settings and documented suppression policies.

Try These Prompts

Get started
Explain how to install ShellCheck and run it on a single script. Include example commands for installing on Ubuntu and running against a Bash file.
Project config
Draft a .shellcheckrc for Bash scripts with a few enabled checks and two disabled codes. Explain each setting.
CI integration
Provide a minimal GitHub Actions step that installs ShellCheck and runs it on all .sh files, failing on warnings.
Suppress warnings
Show how to suppress SC1091 and SC2119 in a shell script and document why each suppression is safe.

Best Practices

  • Set the target shell explicitly before linting to match your deployment environment
  • Document every suppressed code with a comment explaining the justification
  • Run ShellCheck in both pre-commit hooks and CI for early local and remote detection

Avoid

  • Disable warnings broadly without specific justification for each code
  • Lint Bash scripts as POSIX sh without understanding compatibility requirements
  • Ignore ShellCheck failures in CI or override exit codes without review

Frequently Asked Questions

Is this compatible with Bash and POSIX sh?
Yes. It covers Bash and POSIX sh settings and shows how to set the target shell dialect explicitly.
What are the limits of this skill?
It provides guidance only and does not run ShellCheck or modify files in your repository.
Can it integrate with CI systems?
Yes. It includes examples for GitHub Actions, GitLab CI, and pre-commit hook integration.
Does it access my files or credentials?
No. It contains static documentation and does not access your system or credentials.
What if ShellCheck reports too many warnings?
Use targeted suppressions with documented reasons and set a team policy for reviewing excluded codes.
How does it compare to generic linters?
ShellCheck is specialized for shell scripts and catches shell-specific issues that generic linters miss.

Developer Details

File structure

📄 SKILL.md