shellcheck-configuration

Configure and run ShellCheck static analysis for Bash and POSIX shell scripts.

4|Updated Mar 3, 2026
One-click install
npx skills add https://github.com/AI-Foundry-Core/ril-agents --skill shellcheck-configuration-ai-foundry-core
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: shellcheck-configuration
Source: https://github.com/AI-Foundry-Core/ril-agents/tree/main/plugins/shell-scripting/skills/shellcheck-configuration
Command: npx skills add https://github.com/AI-Foundry-Core/ril-agents --skill shellcheck-configuration-ai-foundry-core

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

ShellCheck configuration and usage to improve shell script quality, catch common mistakes, and enforce best practices in Bash and POSIX shells.

Core Features & Use Cases

  • Centralized ShellCheck configuration via a .shellcheckrc file to tailor rules and environment.
  • Guidance for installing, configuring, and integrating ShellCheck into CI/CD, local development, and pre-commit hooks.
  • Strategies to suppress false positives and adapt checks across projects.

Quick Start

Install ShellCheck, add a .shellcheckrc to your project, and run shellcheck on your scripts to begin linting.

Frequently Asked Questions about shellcheck-configuration

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure ShellCheck for local development and lint shell scripts?

To configure ShellCheck for local development and lint shell scripts, install ShellCheck and add a .shellcheckrc file to your project to centralize rules. You can then run shellcheck on your Bash and POSIX scripts to catch common mistakes and enforce best practices.

What is the best way to integrate shell script static analysis into a CI pipeline?

The best way to integrate shell script static analysis into a CI pipeline is by configuring ShellCheck with environment variables and a .shellcheckrc file. This tailors targets, checks, and exclusions directly within your CI/CD workflows to ensure consistent shell script quality.

How do I suppress false positives in ShellCheck?

To suppress false positives in ShellCheck, use your .shellcheckrc file or environment variables to tailor checks and configure exclusions. This allows you to adapt static analysis rules across different projects while ignoring non-applicable warnings.

Does ShellCheck work with POSIX shells or only Bash?

ShellCheck works with both Bash and POSIX shells. You can configure it to target specific shell environments using the .shellcheckrc file, ensuring accurate linting and static analysis tailored to your specific shell script syntax.

Do I need a .shellcheckrc file to run shell script linting?

You do not need a .shellcheckrc file to run basic shell script linting, but it is required for centralized project configuration. The .shellcheckrc file allows you to tailor rules, suppress warnings, and set environment variables for consistent static analysis across your CI and local workflows.

Why use ShellCheck for shell script quality instead of other static analysis tools?

Use ShellCheck for shell script quality because it specifically targets common mistakes and enforces best practices in Bash and POSIX shells. It provides centralized configuration via .shellcheckrc and easily integrates into pre-commit hooks and CI pipelines for comprehensive linting workflows.