S
shellcheck-configuration
About shellcheck-configuration
A ShellCheck configuration and static-analysis skill for people maintaining shell scripts. It covers linting setup, warning interpretation, rule configuration, and integration into development workflows.
Key features
- 01Configure ShellCheck for target shells
- 02Analyze scripts for common issues
- 03Understand warnings and error codes
- 04Suppress false positives with rationale
- 05Integrate checks into CI/CD and editors
Use cases
- 01Add shell linting to CI/CD pipelines
- 02Review existing scripts for issues
- 03Configure rules for project requirements
- 04Enforce script quality before merging
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ wshobson/ agents --skill shellcheck-configurationAfter installing, type/shellcheck-configurationin Claude Code to confirm it loaded.
Bundled filesreferences/details.md
Details
From the project READMEShellCheck 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
Detailed patterns and worked examples
Detailed pattern documentation lives in references/details.md. Read that file when the navigation tier above is insufficient.
Best Practices
- Run ShellCheck in CI/CD - Catch issues before merging
- Configure for your target shell - Don't analyze bash as sh
- Document exclusions - Explain why violations are suppressed
- Address violations - Don't just disable warnings
- Enable strict mode - Use
--enable=allwith careful exclusions - Update regularly - Keep ShellCheck current for new checks
- Use pre-commit hooks - Catch issues locally before pushing
- Integrate with editors - Get real-time feedback during development
Comments
Markdown supported