bash-scripting

bash-scripting is a skill for Claude Code, Codex from tmolavi/mcp-agent-skills-hub. It costs 24 tokens per session (1,044 once invoked), scanned A, original, MIT.

A workflow for creating production-ready Bash shell scripts with defensive coding, error handling, and automated tests. It covers automation, system administration, backups, deployments, and CI/CD.

In plain words
What is it for?
Use it to design and build automation or deployment scripts, then add strict settings, argument parsing, logging, and tests.
Why use it?
It gives shell-script projects a repeatable structure for planning, safe implementation, logging, cleanup, and verification.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument.

Good fit Use it to design and build automation or deployment scripts, then add…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tmolavi/mcp-agent-skills-hub/bash-scripting
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add tmolavi/mcp-agent-skills-hub --skill bash-scripting
Clone the repo
git clone --depth 1 https://github.com/tmolavi/mcp-agent-skills-hub

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for bash-scripting

README.md
[![agentmods](https://agentmods.dev/badge/skills/tmolavi/mcp-agent-skills-hub/bash-scripting.svg)](https://agentmods.dev/skills/tmolavi/mcp-agent-skills-hub/bash-scripting)
Your own site
<a href="https://agentmods.dev/skills/tmolavi/mcp-agent-skills-hub/bash-scripting"><img src="https://agentmods.dev/badge/skills/tmolavi/mcp-agent-skills-hub/bash-scripting.svg" alt="Measured on agentmods" height="20"></a>
Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,044 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00024 $0.01044
Opus 5 $0.00012 $0.00522
Sonnet 5 $0.00005 $0.00209
Haiku 4.5 $0.00002 $0.00104

Measured 3d ago against content hash 7e2815152ede, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

bash-scripting scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/bash-scripting/SKILL.md · 202 lines

How it starts

The opening of the file, as written. The whole thing — 202 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Bash Scripting Workflow

Overview

Specialized workflow for creating robust, production-ready bash scripts with defensive programming patterns, comprehensive error handling, and automated testing.

When to Use This Workflow

Use this workflow when:

  • Creating automation scripts
  • Writing system administration tools
  • Building deployment scripts
  • Developing backup solutions
  • Creating CI/CD scripts

Workflow Phases

Phase 1: Script Design

Skills to Invoke
  • bash-pro - Professional scripting
  • bash-defensive-patterns - Defensive patterns
Actions
  1. Define script purpose
  2. Identify inputs/outputs
  3. Plan error handling
  4. Design logging strategy
  5. Document requirements
Copy-Paste Prompts
Use @bash-pro to design production-ready bash script

Phase 2: Script Structure

Skills to Invoke
  • bash-pro - Script structure
  • bash-defensive-patterns - Safety patterns
Actions
  1. Add shebang and strict mode
  2. Create usage function
  3. Implement argument parsing
  4. Set up logging
  5. Add cleanup handlers
Copy-Paste Prompts
Use @bash-defensive-patterns to implement strict mode and error handling

Phase 3: Core Implementation

Skills to Invoke
  • bash-linux - Linux commands
  • linux-shell-scripting - Shell scripting
Actions
  1. Implement main functions
  2. Add input validation
  3. Create helper functions
  4. Handle edge cases
  5. Add progress indicators
Copy-Paste Prompts
Use @bash-linux to implement system commands

Phase 4: Error Handling

Skills to Invoke
  • bash-defensive-patterns - Error handling
  • error-handling-patterns - Error patterns
Actions
  1. Add trap handlers
  2. Implement retry logic
  3. Create error messages
  4. Set up exit codes
  5. Add rollback capability
Copy-Paste Prompts
Use @bash-defensive-patterns to add comprehensive error handling

Phase 5: Logging

Skills to Invoke
  • bash-pro - Logging patterns
Actions
  1. Create logging function
  2. Add log levels
  3. Implement timestamps
  4. Configure log rotation
  5. Add debug mode

Read the full file on GitHub · 202 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 202 lines · 24 tokens per session scan A 7e2815152ede

Subscribe to this mod's changes

bash-scripting is a skill published in the GitHub repository tmolavi/mcp-agent-skills-hub (8 stars, last pushed 11d ago), licensed MIT. It adds 24 tokens to every session and 1,044 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

godot-export

Export and build a Godot 4.7 project for distribution: install export templates, define export presets (Windows/macOS/Linux/Web/Android), run headless command-line exports for CI, and handle web (HTML5) COOP/COEP and dedicated-server/headless builds. Use when exporting a Godot game, configuring exportpresets.cfg…

gamedev-skills/awesome-gamedev-agent-skills · 92 tokens

appveyor-automation

Automate Appveyor tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/awesome-claude-skills · 27 tokens

e2e-testing-expert

Expert guide for End-to-End (E2E) testing with Playwright, unit/integration testing with Vitest, and CI/CD automated testing pipeline setup / Panduan ahli pengujian End-to-End (E2E) dengan Playwright, pengujian unit/integrasi dengan Vitest, dan otomatisasi CI/CD.

roedyrustam/vibes-plug · 74 tokens

e2e-tester

End-to-end (E2E) user scenario and integration testing with Cypress, Playwright, or Appium. / TR: Cypress, Playwright veya Appium ile uçtan uca (E2E) kullanıcı senaryoları ve entegrasyon testleri yazma yeteneği.

GktuOktay/ai-skills · 66 tokens

unit-test-architect

Comprehensive unit testing patterns, mock/stub usages, and edge-case scenario coverage. / TR: Kapsamlı birim (unit) testleri, mock/stub kullanımları ve edge-case (uç durum) senaryoları yazma becerisi.

GktuOktay/ai-skills · 60 tokens

performance-tester

Load testing, memory leak detection, benchmark analysis, and performance optimization. / TR: Yük (load) testi, memory leak (bellek kaçağı) tespiti, benchmark analizleri ve performans optimizasyonu.

GktuOktay/ai-skills · 52 tokens