agentsclimarketplace

Bash

Skill G1Joshi/Agent-Skills/skills/languages/bash

Bash shell scripting for automation, pipelines, and system administration. Use for .sh files and Linux scripting.From its SKILL.md

Install
npx -y skills add G1Joshi/Agent-Skills --skill bash

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 12 stars12 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

1.3 KB, 341 tokens by cl100k_base, as published. Nobody here has run it

Bash

Bourne Again SHell, the standard shell for Linux and macOS.

When to Use

  • Automating system tasks
  • CI/CD pipelines
  • File manipulation
  • Glue code between CLIs

Quick Start

#!/bin/bash

NAME="World"
echo "Hello, $NAME!"

if [ -f "file.txt" ]; then
    echo "File exists"
else
    echo "File not found"
fi

Core Concepts

Variables

No data types. Everything is a string.

count=10
echo $count

Pipes and Redirection

  • |: Pipe output of one command to input of next.
  • >: Redirect output to file (overwrite).
  • >>: Redirect output to file (append).
cat file.txt | grep "error" > errors.log

Exit Codes

Commands return 0 for success and non-zero for failure. Check with $?.

Best Practices

Do:

  • Use set -e (e)xit on error
  • Use set -u (u)nset variable usage is error
  • Use set -o pipefail to catch errors in pipes
  • Quote variables "$VAR" to handle spaces

Don't:

  • Parse ls output (use globs *)
  • Use simple [ vs [[ (double brackets are safer)

References

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.