stack-bash

Enforce Bash and Shell scripting patterns with ShellCheck and BATS testing.

Updated Feb 11, 2026
One-click install
npx skills add https://github.com/juniorfontenele/ai-guidelines --skill stack-bash
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: stack-bash
Source: https://github.com/juniorfontenele/ai-guidelines/tree/main/.agents/skills/stack-bash
Command: npx skills add https://github.com/juniorfontenele/ai-guidelines --skill stack-bash

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a comprehensive set of guidelines, best practices, and tools to ensure your Bash and Shell scripts are robust, maintainable, and error-free.

Core Features & Use Cases

  • Idiomatic Scripting: Learn standard patterns for script structure, variable quoting, and naming conventions.
  • Error Handling & Linting: Implement robust error checking and integrate ShellCheck for mandatory linting.
  • Testing Frameworks: Utilize BATS or manual assertion patterns for reliable script testing.
  • Use Case: When developing a new deployment script, use this Skill to ensure it adheres to best practices for safety, error handling, and testability.

Quick Start

Ensure all your shell scripts are linted using ShellCheck.

Frequently Asked Questions about stack-bash

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

FAQPage Schema
What are the best practices for writing robust Bash scripts?

Bash script testing uses BATS or manual assertion patterns to verify script behavior. These testing frameworks integrate with quality gates to ensure your shell scripts function reliably before deployment.

How do I set up ShellCheck linting for my shell scripts?

Bash error handling implements robust error checking mechanisms and mandatory linting via ShellCheck. These quality gates enforce safe development patterns, catching script failures and ensuring error-free execution.

Do I need BATS to test my Bash scripts?

Bash script testing uses BATS or manual assertion patterns to verify script behavior. These testing frameworks integrate with quality gates to ensure your shell scripts function reliably before deployment.

How do I handle errors in shell scripts?

Bash script testing uses BATS or manual assertion patterns to verify script behavior. These testing frameworks integrate with quality gates to ensure your shell scripts function reliably before deployment.

Can I use this for setting up a new Bash project?

Bash script testing uses BATS or manual assertion patterns to verify script behavior. These testing frameworks integrate with quality gates to ensure your shell scripts function reliably before deployment.