opsh

Community

Write safer ops scripts with a standard Bash library.

Authoralexanderguy
Version1.0.0
Installs0

System Documentation

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."

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: opsh
Download link: https://github.com/alexanderguy/skills/archive/main.zip#opsh

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.