Claude Cursor Skill

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.

LLM Mart · 0 points · 17 views 0 listing impressions 0 install-command copies
Download wshobson-agents-plugins_shell-scripting_skills_shellcheck-configuration-554237f.zip · 3 KB

Install

skills CLI npx skills add https://github.com/wshobson/agents/tree/main/plugins/shell-scripting/skills/shellcheck-configuration
Claude Code claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install wshobson-agents@llmmart
Git git clone https://github.com/wshobson/agents.git

The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole wshobson/agents collection as a plugin from our marketplace. Git is the plain clone.

Skill manifest

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

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

  1. Run ShellCheck in CI/CD - Catch issues before merging
  2. Configure for your target shell - Don't analyze bash as sh
  3. Document exclusions - Explain why violations are suppressed
  4. Address violations - Don't just disable warnings
  5. Enable strict mode - Use --enable=all with careful exclusions
  6. Update regularly - Keep ShellCheck current for new checks
  7. Use pre-commit hooks - Catch issues locally before pushing
  8. Integrate with editors - Get real-time feedback during development
Files (agents)
  • references
    • details.md 7.8 KB
      Loading…
  • SKILL.md 1.6 KB
    ---
    name: shellcheck-configuration
    description: Master ShellCheck static analysis configuration and usage for shell script quality. Use when setting up linting infrastructure, fixing code issues, or ensuring script portability.
    ---
    
    # 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
    
    ## 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
    
    1. **Run ShellCheck in CI/CD** - Catch issues before merging
    2. **Configure for your target shell** - Don't analyze bash as sh
    3. **Document exclusions** - Explain why violations are suppressed
    4. **Address violations** - Don't just disable warnings
    5. **Enable strict mode** - Use `--enable=all` with careful exclusions
    6. **Update regularly** - Keep ShellCheck current for new checks
    7. **Use pre-commit hooks** - Catch issues locally before pushing
    8. **Integrate with editors** - Get real-time feedback during development
    

Comments (0)

Sign in to join the conversation.

No comments yet.

Reviews (0)

No reviews yet.