Toolverse
All skills

bash-pro

by sickn33

Master of defensive Bash scripting for production automation, CI/CD pipelines, and system utilities. Expert in safe, portable, and testable shell scripts.

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Author
sickn33
Category
DevOps

About this skill

Master of defensive Bash scripting for production automation, CI/CD pipelines, and system utilities. Expert in safe, portable, and testable shell scripts.

How to use

  1. Zdefiniuj wejścia, wyjścia i scenariusze awarii skryptu – jasno określ, co skrypt powinien robić i jak ma się zachowywać w przypadku błędów.

  2. Zastosuj tryb ścisły, dodając na początku skryptu set -Eeuo pipefail i ustaw pułapkę na błędy za pomocą trap. Wszystkie rozwinięcia zmiennych ujmij w cudzysłowy, aby uniknąć podziału słów i niebezpiecznych rozszerzeń globu.

  3. Implementuj logikę jądra ze wzorcami defensywnymi – używaj [[ ]] dla warunków Bash'a, preferuj tablice zamiast niebezpiecznych wzorców jak for f in $(ls), a do plików tymczasowych użyj mktemp z czyszczeniem przez trap.

  4. Dodaj kompleksowe parsowanie argumentów za pomocą getopts i funkcji użytkownika, traktując wszystkie dane wejściowe jako niezaufane – unikaj eval i niebezpiecznego globu.

  5. Przetestuj skrypt za pomocą frameworku Bats, aby pokryć przypadki normalne i błędne. Uruchom statyczną analizę z ShellCheck i formatowanie shfmt, aby upewnić się, że kod jest czysty i przenośny.

  6. Zintegruj skrypt z potokiem CI/CD, implementując produkcyjne logowanie i raportowanie błędów – zawsze oferuj tryb dry-run przed akcjami destrukcyjnymi.

Related skills

streamlit

by sverzijl

When working with Streamlit web apps, data dashboards, ML/AI app UIs, interactive Python visualizations, or building data science applications with Python

DevOps
49161

drawio-diagrams-enhanced

by jgtolentino

Create professional draw.io (diagrams.net) diagrams in XML format (.drawio files) with integrated PMP/PMBOK methodologies, extensive visual asset libraries, and industry-standard professional templates. Use this skill when users ask to create flowcharts, swimlane diagrams,

DevOps
918943

file-organizer

by ComposioHQ

Intelligently organizes your files and folders across your computer by understanding context, finding duplicates, suggesting better structures, and automating cleanup tasks. Reduces cognitive load and keeps your digital workspace tidy without manual effort.

DevOps
1399

turborepo

by vercel

Turborepo monorepo build system guidance. Triggers on: turbo.json, task pipelines,\ndependsOn, caching, remote cache, the \

DevOps
1066

pmbok-project-management

by jgtolentino

Comprehensive PMP/PMBOK project management methodologies and best practices. Use this skill when users need guidance on project management processes, templates, knowledge areas, process groups, tools, techniques, or certification preparation. Covers all 10 PMBOK Knowledge Areas

DevOps
21133

crawl4ai

by basher83

This skill should be used when users need to scrape websites, extract structured data, handle JavaScript-heavy pages, crawl multiple URLs, or build automated web data pipelines. Includes optimized extraction patterns with schema generation for efficient, LLM-free extraction.

DevOps
11128