bash-pro

bash-pro is a skill for Claude Code from aAAaqwq/AGI-Super-Team. It costs 35 tokens per session (4,316 once invoked), scanned D, a copy of bash-pro, MIT.

A skill for writing Bash scripts, which automate commands in Unix-like systems, with checks for unsafe input, portability, failures, and test coverage.

In plain words
What is it for?
Use it to write or review Bash for production automation, CI/CD, and system utilities, including tests with Bats and checks with ShellCheck.
Why use it?
It helps avoid fragile shell automation that mishandles arguments, files, failures, or destructive operations.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the agi-super-team plugin — 192 skills, 1 agent shipped together

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.

agentmods
npx agentmods add skills/aaaaqwq/agi-super-team/bash-pro
Any agent
npx skills add aAAaqwq/AGI-Super-Team --skill bash-pro
Clone the repo
git clone --depth 1 https://github.com/aAAaqwq/AGI-Super-Team

Made for: Claude Code.

Or install agi-super-team, the plugin that ships this one along with the rest of its 192 skills, 1 agent.

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-pro

README.md
[![agentmods](https://agentmods.dev/badge/skills/aaaaqwq/agi-super-team/bash-pro.svg)](https://agentmods.dev/skills/aaaaqwq/agi-super-team/bash-pro)
Your own site
<a href="https://agentmods.dev/skills/aaaaqwq/agi-super-team/bash-pro"><img src="https://agentmods.dev/badge/skills/aaaaqwq/agi-super-team/bash-pro.svg" alt="Measured on agentmods" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,316 The whole file, excluding the scripts and references it only reads on demand.
Security scan D 3 findings. Scan, not verified.
Origin 94% copy Near-identical to another mod 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.00035 $0.04316
Opus 5 $0.00017 $0.02158
Sonnet 5 $0.00007 $0.00863
Haiku 4.5 $0.00003 $0.00432

Measured yesterday against content hash 347eb3e32f52, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade D, and why

bash-pro scanned grade D with 3 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 yesterday.

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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

- **Privilege analysis**: Audit scripts for unnecessary root/sudo requirements

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

- End option parsing with `--` and use `rm -rf -- "$dir"` for safe operations

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- Implement `timeout` for external commands: `timeout 30s curl ...` prevents hangs
Origin

This is a copy

94% identical to bash-pro — 16 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/bash-pro/SKILL.md · 321 lines

How it starts

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

Use this skill when

  • Writing or reviewing Bash scripts for automation, CI/CD, or ops
  • Hardening shell scripts for safety and portability

Do not use this skill when

  • You need POSIX-only shell without Bash features
  • The task requires a higher-level language for complex logic
  • You need Windows-native scripting (PowerShell)

Instructions

  1. Define script inputs, outputs, and failure modes.
  2. Apply strict mode and safe argument parsing.
  3. Implement core logic with defensive patterns.
  4. Add tests and linting with Bats and ShellCheck.

Safety

  • Treat input as untrusted; avoid eval and unsafe globbing.
  • Prefer dry-run modes before destructive actions.

Focus Areas

  • Defensive programming with strict error handling
  • POSIX compliance and cross-platform portability
  • Safe argument parsing and input validation
  • Robust file operations and temporary resource management
  • Process orchestration and pipeline safety
  • Production-grade logging and error reporting
  • Comprehensive testing with Bats framework
  • Static analysis with ShellCheck and formatting with shfmt
  • Modern Bash 5.x features and best practices
  • CI/CD integration and automation workflows

Approach

  • Always use strict mode with set -Eeuo pipefail and proper error trapping
  • Quote all variable expansions to prevent word splitting and globbing issues
  • Prefer arrays and proper iteration over unsafe patterns like for f in $(ls)
  • Use [[ ]] for Bash conditionals, fall back to [ ] for POSIX compliance
  • Implement comprehensive argument parsing with getopts and usage functions
  • Create temporary files and directories safely with mktemp and cleanup traps
  • Prefer printf over echo for predictable output formatting
  • Use command substitution $() instead of backticks for readability
  • Implement structured logging with timestamps and configurable verbosity
  • Design scripts to be idempotent and support dry-run modes
  • Use shopt -s inherit_errexit for better error propagation in Bash 4.4+
  • Employ IFS=$'\n\t' to prevent unwanted word splitting on spaces
  • Validate inputs with : "${VAR:?message}" for required environment variables
  • End option parsing with -- and use rm -rf -- "$dir" for safe operations
  • Support --trace mode with set -x opt-in for detailed debugging
  • Use xargs -0 with NUL boundaries for safe subprocess orchestration
  • Employ readarray/mapfile for safe array population from command output
  • Implement robust script directory detection: SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P)"
  • Use NUL-safe patterns: find -print0 | while IFS= read -r -d '' file; do ...; done

Read the full file on GitHub · 321 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. yesterday First seen · 321 lines · 35 tokens per session scan D 347eb3e32f52

Subscribe to this mod's changes

bash-pro is a skill published in the GitHub repository aAAaqwq/AGI-Super-Team (91 stars, last pushed 2d ago), licensed MIT. It adds 35 tokens to every session and 4,316 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it D with 3 findings (asks for root, recursive force delete, makes network calls). It is 94% identical to bash-pro, differing in 16 lines, and is treated as a copy.

Related

Other skills, from other repositories

playwright-testing

E2E testing with Playwright - Page Objects, cross-browser, CI/CD.

alinaqi/maggy · 20 tokens

beevibe-verify-pr

CI verification before marking a PR-bearing task done. Use BEFORE calling mcpbeevibeupdateprogress(done) on any session whose deliverable is a pull request — including the first dispatch (you opened the PR with gh pr create) and any revision dispatch (you pushed new commits to an existing PR). Watches the PR's…

beevibe-ai/beevibe · 172 tokens

qa

Run scalable, isolated live QA for nac development. The top-level local orchestrator must parse n (default 4), dispatch one setup worker with this skill, copy its n assignment contracts verbatim into exactly n parallel test workers with this skill, then dispatch one aggregate worker with this skill using all test…

arcee-ai/nac · 100 tokens

browser-check

Drive a real browser and come back with a MEASUREMENT rather than an impression - console errors and >=400 responses as counts, computed styles as JSON when appearance is disputed. Use when work touches UI, when a review must verify one, or when fidelity-gate asks for its measurement.

jjanczur/tyran · 58 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

verify

Verify-before-done — exercise the current change end-to-end against its acceptance criteria (the SDD plan's, or the ticket's) and report a per-criterion PASS/FAIL verdict, then record the outcome to memory. This is the concrete action that satisfies moflo's verify-before-done gate (gates.verifybeforedone / /flo -v /…

eric-cielo/moflo · 122 tokens