bash-style-guide

Enforce Bash-specific quality controls on scripts and CI blocks.

7|Updated Feb 14, 2026
One-click install
npx skills add https://github.com/KentoShimizu/sw-agent-skills --skill bash-style-guide-kentoshimizu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bash-style-guide
Source: https://github.com/KentoShimizu/sw-agent-skills/tree/main/skills/bash-style-guide
Command: npx skills add https://github.com/KentoShimizu/sw-agent-skills --skill bash-style-guide-kentoshimizu

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Style, review, and refactoring standards for Bash shell scripting. Trigger when .sh files, files with shebang lines for Bash, or CI workflow blocks that specify shell: bash are created, modified, or reviewed, and Bash-specific quality controls such as quoting safety, robust error handling, portability, and readability must be enforced. Do not use for generic POSIX sh, PowerShell, or language-specific application style rules. In multi-language pull requests, run together with other applicable style-guide skills.

Core Features & Use Cases

  • Enforces consistent Bash scripting style across repositories.
  • Promotes safe quoting, explicit error handling, portability across environments, and readable code.
  • Example: when a new Bash script or a PR that updates a Bash script appears, the skill flags style deviations and suggests fixes before merging.

Quick Start

Run the Bash style-check workflow on all changed Bash scripts using ShellCheck and Shfmt to enforce the guide.

Frequently Asked Questions about bash-style-guide

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

FAQPage Schema
How do I enforce Bash scripting style and quoting safety in my repository?

To enforce Bash scripting style and quoting safety, this skill validates .sh files and Bash shebangs using ShellCheck and Shfmt, flagging style deviations and suggesting fixes before merging.

Does this style guide work with CI workflow blocks that specify shell: bash?

Yes, this Bash style guide triggers specifically for CI workflow blocks that specify shell: bash, applying quality controls like quoting safety and error handling to those Bash execution blocks.

What's the difference between using this Bash style guide and generic POSIX sh rules?

This Bash style guide specifically enforces Bash-specific quality controls, whereas generic POSIX sh rules do not apply. Do not use this skill for generic POSIX sh, PowerShell, or language-specific application style rules.

How do I run Bash script quality checks on a multi-language pull request?

To run Bash script quality checks on a multi-language pull request, this skill uses a coactivation strategy with other applicable style-guide skills, ensuring Bash scripts are validated alongside other languages.

Do I need ShellCheck and Shfmt to validate my Bash script style?

Yes, you need ShellCheck and Shfmt to validate Bash script style and safety, as this skill requires these tools to enforce quoting safety, portability, and readable code standards.

When should I not use this Bash scripting style enforcement?

You should not use this Bash scripting style enforcement for generic POSIX sh scripts, PowerShell scripts, or language-specific application style rules, as it strictly targets Bash-specific quality controls.