Skills · Coding

ShellCheck Configuration and Static Analysis

Unverified29/40

Master ShellCheck static analysis configuration and usage for shell script quality. Use when setting up linting infrastructure, fixing code issues, or ensuring script portability.

Originally by wshobson · MIT

Claude CodePartialHas SKILL.md but declares no allowed-tools — Claude Code will ask for permission each time
CursorPartialPlain prose you can paste in — but no Cursor rules file
CodexPartialPlain prose you can paste in — but no AGENTS.md
Gemini CLIPartialPlain prose you can paste in
CopilotPartialPlain prose you can paste in — but no Copilot instructions file
npx agentalley add shellcheck-configuration

This command does not work yet — the CLI is still being built. Until then, use Raw in the reader below to take the file.

Who is stuck, and on what

Master ShellCheck static analysis configuration and usage for shell script quality. Use when setting up linting infrastructure, fixing code issues, or ensuring script portability.

The whole source

No sign-in, no blur, nothing truncated
shellcheck-configuration/SKILL.md35 lines1.6 KBRawView on GitHub
Frontmatter — 2 properties
nameshellcheck-configuration
descriptionMaster ShellCheck static analysis configuration and usage for shell script quality. Use when setting up linting infrastructure, fixing code issues, or ensuring script portability.
1---
2name: shellcheck-configuration
3description: Master ShellCheck static analysis configuration and usage for shell script quality. Use when setting up linting infrastructure, fixing code issues, or ensuring script portability.
4---A5No allowed-tools declared — no way to tell what this skill may touch
5 
6# ShellCheck Configuration and Static Analysis
7 
8Comprehensive guidance for configuring and using ShellCheck to improve shell script quality, catch common pitfalls, and enforce best practices through static code analysis.
9 
10## When to Use This Skill
11 
12- Setting up linting for shell scripts in CI/CD pipelines
13- Analyzing existing shell scripts for issues
14- Understanding ShellCheck error codes and warnings
15- Configuring ShellCheck for specific project requirements
16- Integrating ShellCheck into development workflows
17- Suppressing false positives and configuring rule sets
18- Enforcing consistent code quality standards
19- Migrating scripts to meet quality gates
20 
21## Detailed patterns and worked examples
22 
23Detailed pattern documentation lives in `references/details.md`. Read that file when the navigation tier above is insufficient.
24 
25## Best Practices
26 
271. **Run ShellCheck in CI/CD** - Catch issues before merging
282. **Configure for your target shell** - Don't analyze bash as sh
293. **Document exclusions** - Explain why violations are suppressed
304. **Address violations** - Don't just disable warnings
315. **Enable strict mode** - Use `--enable=all` with careful exclusions
326. **Update regularly** - Keep ShellCheck current for new checks
337. **Use pre-commit hooks** - Catch issues locally before pushing
348. **Integrate with editors** - Get real-time feedback during development
35 

Reviews

Installed this one?Write the first review and take the Trailblazer badge.

Reviews only open after a real install, so this is empty — and we leave it empty rather than invent one.

Alternatives

Also in Coding