standards-shell

Enforce Shell/Bash coding standards with defensive scripting and naming conventions.

57|6|Updated Jan 23, 2026
One-click install
npx skills add https://github.com/b33eep/claude-code-setup --skill standards-shell
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: standards-shell
Source: https://github.com/b33eep/claude-code-setup/tree/main/skills/standards-shell
Command: npx skills add https://github.com/b33eep/claude-code-setup --skill standards-shell

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides Shell/Bash coding standards to enforce safety, readability, and maintainability across shell projects.

Core Features & Use Cases

  • Defensive scripting guidelines: use strict mode, quote variables, and use local variables in functions.
  • Naming and Style: snake_case for variables and functions; kebab-case or snake_case for files; integrates with ShellCheck and bats-core for validation.
  • Templates & Checks: supplies templates and a code-review checklist to standardize reviews and reduce common mistakes.

Quick Start

Copy the guidelines into your project and begin applying the recommended patterns; then run shellcheck and bats-core tests to validate compliance.

Frequently Asked Questions about standards-shell

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

FAQPage Schema
What are the best practices for defensive scripting in Bash?▼

Shell/Bash coding standards enforce script safety and maintainability by applying defensive scripting patterns like strict mode, quoting variables, and using local variables in functions to prevent common errors.

How do I apply consistent naming conventions in shell scripts?▼

Consistent shell script naming conventions use snake_case for variables and functions, and kebab-case or snake_case for files, ensuring readable and standardized code across your projects.

Does this coding standard integrate with ShellCheck and bats-core?▼

Yes, these Shell/Bash coding standards integrate with ShellCheck for linting and bats-core for testing, allowing you to validate script compliance and run tests to ensure code quality.

How do I standardize shell script code reviews?▼

You can standardize shell script code reviews by using provided templates and a code-review checklist, which help enforce defensive scripting guidelines and reduce common mistakes during project adoption.

What is the best way to start enforcing Bash coding standards in an existing project?▼

To enforce Bash coding standards, copy the provided guidelines into your project, apply the recommended defensive scripting patterns, and run shellcheck and bats-core tests to validate compliance.