bash-linux
Bash/Linux terminal patterns. Critical commands, piping, error handling, scripting. Use when working on macOS or Linux systems.
Security Assessment
About bash-linux
Bash-Linux is a Claude Code reference skill that packages essential Bash and Linux/macOS terminal patterns into a compact cheat-sheet. It solves the everyday problem of recalling correct command syntax and safe scripting idioms by giving Claude a curated reference for operators, file operations, process management, text processing, environment variables, networking, and error handling when working on Unix-like systems.
The skill is organized as a series of quick-reference tables and short code snippets. It covers command-chaining operators, common file commands, process inspection and termination, core text tools (grep, sed, awk, cut, sort, uniq, wc), environment-variable handling, and basic networking with curl and nc. It includes a reusable script template that turns on strict mode (set -euo pipefail), defines logging helpers, and resolves the script directory, plus common patterns such as checking whether a command exists, default variable values, reading files line by line, looping over files, and using trap for cleanup. A comparison table maps PowerShell equivalents to Bash for users switching between shells, and a dedicated error-handling section explains the strict-mode options and cleanup traps.
It targets developers, DevOps engineers, and anyone scripting on Linux or macOS who wants concise, correct patterns and safer-by-default scripting habits. Although the skill's frontmatter self-labels its risk as critical, the content is purely educational reference material: it documents standard commands (including force-kill and temp-file cleanup) as examples rather than executing any destructive automation, and it emphasizes defensive practices like strict mode, variable quoting, and cleanup traps.
FAQ
What does this skill cover?
It is a Bash/Linux cheat-sheet covering operator syntax, file operations, process management, text processing tools, environment variables, networking, a reusable script template, common scripting patterns, PowerShell-to-Bash equivalents, and error handling.
Is it safe despite the critical risk label?
The frontmatter self-declares risk as critical, but the content is a read-only educational reference. It documents standard commands such as kill -9 and temp-file removal as examples and actively promotes safe habits like strict mode and variable quoting rather than running destructive automation.
Does it work on macOS as well as Linux?
Yes. The skill is described as applicable to both macOS and Linux systems and includes cross-shell notes comparing PowerShell commands to their Bash equivalents.
What safe-scripting practices does it recommend?
It recommends starting scripts with set -euo pipefail to exit on errors, undefined variables, and pipe failures, quoting variables, using && for success chains, and using trap for cleanup on exit.
When should I rely on it?
Use it when a task clearly matches Bash/Linux terminal work. The skill itself notes it should not substitute for environment-specific validation and testing, and to stop and ask for clarification if inputs, permissions, or safety boundaries are unclear.
Install bash-linux
Quick Setup:
- Copy the skill folder to
.claude/skills/ - Claude will automatically detect and use the skill
Repository
sickn33/antigravity-awesome-skills