google-shell-style

Enforce Google Shell Style Guide compliance in Bash scripts.

Updated Dec 14, 2025
One-click install
npx skills add https://github.com/pproenca/dot-claude --skill google-shell-style
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: google-shell-style
Source: https://github.com/pproenca/dot-claude/tree/main/plugins/shell/skills/google-shell-style
Command: npx skills add https://github.com/pproenca/dot-claude --skill google-shell-style

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Maintaining consistent, safe, and readable shell scripts across a team can be challenging, leading to style drift, potential bugs, and reduced maintainability.

Core Features & Use Cases

  • Automated Style Enforcement: Applies Google Shell Style Guide rules for formatting, quoting, naming, and control flow to ensure consistency.
  • Refactoring Guidance: Helps refactor existing scripts to meet high-quality standards, improving readability and safety.
  • Use Case: When you've written a new Bash script and want to ensure it adheres to best practices, this skill can review and suggest improvements for readability and safety.

Quick Start

Use the google-shell-style skill to review the attached 'myscript.sh' and suggest style improvements.

Frequently Asked Questions about google-shell-style

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

FAQPage Schema
How do I enforce Google Shell Style Guide compliance on my Bash scripts?

Google Shell Style Guide compliance enforces consistent formatting, quoting, naming, and control flow across Bash scripts. This skill applies automated rules for proper variable handling, indentation, line length, error checks, and function structure to improve code safety and readability across your shell utilities.

What are the key style rules this applies to shell scripts?

The skill enforces rules covering proper quoting, return value handling, error checks, indentation, line length, control structures, variable handling, arrays, functions, and robust error reporting. These rules ensure consistency, safety, and maintainability aligned with Google's shell scripting standards.

Can I use this to refactor existing Bash scripts for better quality?

Yes. This skill reviews existing Bash scripts and provides refactoring guidance to meet high-quality standards. It identifies style violations and suggests improvements for readability, safety, and adherence to Google Shell Style Guide best practices.

How does this compare to ShellCheck for script quality?

ShellCheck detects bugs and potential issues through static analysis. This skill specifically enforces Google Shell Style Guide compliance for consistent formatting, naming conventions, and structural best practices, complementing ShellCheck's error detection with style standardization.

What types of shell scripts can I review with this?

This skill works with small utilities and wrapper scripts written in Bash. It applies style enforcement and refactoring guidance to any shell script where you want to standardize code across your team and improve maintainability.