dicklesworthstone/pi_agent_rust/shellcheck-configuration
Claude Code and agent skill by dicklesworthstone/pi_agent_rust
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"},{"type":"config","description":"Configuration overrides"}]
Checking that the SKILL.md file is still in the repository.
Master ShellCheck static analysis configuration and usage for shell script quality. Use when setting up linting infrastructure, fixing code issues, or ensuring script portability.
Install
npx vskill@latest install dicklesworthstone/pi_agent_rust/shellcheck-configurationSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as dicklesworthstone/pi_agent_rust/shellcheck-configuration.
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
- 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
Resources
- ShellCheck GitHub: https://github.com/koalaman/shellcheck
- ShellCheck Wiki: https://www.shellcheck.net/wiki/
- Error Code Reference: https://www.shellcheck.net/
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingtests/ext_conformance/artifacts/agents-wshobson/shell-scripting/skills/shellcheck-configuration/SKILL.md
Popularity
- Repository stars
- 1,831
- Repository forks
- 218
- 7-day trend score
- 38
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 19 Mar 2026, 8 months ago.
Extension points
hookPre/post lifecycle hooksconfigConfiguration overrides
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/dicklesworthstone/pi_agent_rust/shellcheck-configuration)