bash-master

Create and debug bash scripts with ShellCheck validation and cross-platform compatibility.

16|3|Updated Oct 3, 2023
One-click install
npx skills add https://github.com/filippolmt/terraform-oci-free-tier --skill bash-master-filippolmt
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bash-master
Source: https://github.com/filippolmt/terraform-oci-free-tier/tree/main/.agents/skills/bash-master
Command: npx skills add https://github.com/filippolmt/terraform-oci-free-tier --skill bash-master-filippolmt

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides expert bash/shell scripting knowledge to create, debug, and optimize scripts, ensuring they are professional-grade, secure, and cross-platform compatible.

Core Features & Use Cases

  • Script Creation & Modification: Write new bash scripts or refactor existing ones.
  • Automation & DevOps: Develop scripts for system automation, CI/CD pipelines, and build/deployment processes.
  • Debugging & Optimization: Identify and fix issues, improve script performance and security.
  • Use Case: You need to automate the deployment of a web application. This Skill can help you write a robust bash script that handles environment setup, dependency installation, and service management across Linux and macOS.

Quick Start

Use the bash-master skill to create a new bash script that checks if a file exists and prints its size.

Frequently Asked Questions about bash-master

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

FAQPage Schema
How do I write a bash script for system automation that is cross-platform compatible?

To write cross-platform bash scripts for system automation, you must ensure POSIX compliance and validate execution across Linux, macOS, and Windows Git Bash. Handling platform-specific variables and paths guarantees robust deployment automation.

How can I debug and optimize shell scripts to pass ShellCheck validation?

Debugging shell scripts to pass ShellCheck validation involves identifying syntax errors, enforcing Google Shell Style Guide compliance, and applying security hardening. Optimizing performance and adding error handling ensures professional-grade execution.

Does this approach support creating CI/CD pipelines for build and deployment automation?

Yes, this approach supports CI/CD pipelines by generating bash scripts tailored for build and deployment automation. It manages environment setup, dependency installation, and service orchestration within DevOps workflows.

What is the best way to convert terminal commands into a secure bash script?

The best way to convert commands into a secure bash script is to wrap them with proper error handling, security hardening, and POSIX compliance. Testing the final script with BATS ensures reliable performance across platforms.

Why does my macOS shell script fail when running on Linux or Git Bash?

Your macOS shell script fails on Linux or Git Bash due to non-POSIX compliant syntax or platform-specific dependencies. Ensuring cross-platform compatibility and adhering to the Google Shell Style Guide prevents execution failures.