LogoClawIndex
CasesSkillsAbout
LogoClawIndex

bash - Write safe Bash scripts following best practices

Provides templates, safe configurations, error handling, and best practices for creating Bash scripts, automation, and CLI tools.

Tags

Updated: 2026-09-11
bashshellscriptingautomationcli

Capabilities

Write standard Bash script templatesConfigure script safety settingsImplement error handling and cleanupPerform file and variable conditionals

Typical Inputs

Command line argumentsInput text filesRequired system commands

Typical Outputs

Console output messagesExit status codesCleaned temporary files

What this skill does

  • Write standard Bash script templates
  • Configure script safety settings
  • Implement error handling and cleanup
  • Perform file and variable conditionals
  • Declare scoped and constant variables
  • Execute loops and process substitutions

Inputs

  • Command line arguments
  • Input text files
  • Required system commands

Outputs

  • Console output messages
  • Exit status codes
  • Cleaned temporary files

Requirements

  • Bash environment
  • Shellcheck tool

Source

  • Spec: SKILL.md

ClawIndex

OpenClaw Skills & Use Case Index

ClawIndex is an ecosystem-driven index of OpenClaw skills and real-world use cases.

Index

Skills·
Cases

Meta

About·
Disclaimer·
Email·
GitHub
© 2026 ClawIndex All Rights Reserved.