What problem does it solve?
It eliminates inconsistent, fragile operational shell scripting by providing a curated opsh Bash environment with strict runtime defaults, predictable utilities, and a shared import-based library system.
Core Features & Use Cases
- Strict, reliable runtime defaults: Enforces safer Bash behavior (errexit, nounset, pipefail, and better error propagation) to reduce silent failures during operations work.
- Import-based standard libraries: Access reusable functionality via
lib::import (for example: git, semver, ssh, cloud-init, path, and more).
- Built-in primitives for common scripting needs: Consistent logging (
log::info, log::warn, log::error, log::fatal), managed temp files/dirs (temp::file, temp::dir), arrays (array::split, array::join), and ordered step execution (steps::run).
- Use Case: Debugging and deploying infrastructure tasks where you need reproducible scripts that fail fast, log clearly, and reuse proven helpers for versioning, SSH setup, and environment handling.
Quick Start
Use the opsh skill to run an imported-library script by asking: "Write an opsh script that checks whether the local git working tree is clean and prints the current version, failing with a clear error if the repo is dirty."