# Build Safer Bash and Linux Workflows

Shell work often fails because commands, quoting, process handling, and error behavior vary by context. This skill provides practical Bash patterns for safer Linux and macOS terminal tasks.

## Install

```bash
npx skillstore add sickn33/bash-linux
```

## Metadata

- Status: approved
- Slug: sickn33-bash-linux
- Skillstore revision: r2
- Version status: missing
- Tree hash: cf51d3a5facf9825cb0b2e7f4bc9d61bdd05566b71deb9293fd7bea17d91e992
- Author: sickn33
- GitHub username: sickn33
- License: MIT
- Repository: https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/bash-linux
- Ref: 5a26d1d61d694db29af9b138c661c1981076d9df
- Supported tools: Claude, Codex, Claude Code
- Audit status: complete
- Agent install advisory: allowed
- Manual install advisory: allowed
- Artifact signature: available
- Audit attestation: unavailable
- Human verification: not\_verified
- Risk factors: external\_commands, network, filesystem
- Quality score: 50
- Quality tier: warning
- Public page: https://skillstore.pages.dev/skills/sickn33-bash-linux
- Manifest: https://skillstore.pages.dev/api/skills/sickn33-bash-linux/manifest

## Capabilities

- Explains command chaining, pipelines, and conditional operators with short examples.
- Provides common patterns for inspecting files, directories, disk use, and logs.
- Covers process discovery, background jobs, ports, and process termination.
- Demonstrates text processing with grep, sed, awk, cut, sort, uniq, and wc.
- Supplies a strict-mode script template with logging, functions, arguments, and script-directory detection.
- Compares common Bash syntax with familiar PowerShell equivalents.

## Use Cases

- Troubleshoot Local Development: Inspect logs, identify a port conflict, and choose cautious process-management steps for a local service.
- Draft Reliable Automation: Structure a Bash script with strict error handling, clear logging, quoted variables, and cleanup behavior.
- Translate Terminal Workflows: Map familiar PowerShell concepts to Bash commands while learning text-based pipeline behavior.

## Prompt Templates

### Find and Inspect Files

```
Show Bash commands to find [file pattern] under [directory], preview matches, and avoid modifying files.
```

### Diagnose a Port Conflict

```
Help diagnose port [number] on [operating system]. Identify the process, verify ownership, and propose graceful shutdown before stronger actions.
```

### Create a Robust Script

```
Draft a Bash workflow for [task] with strict mode, validated inputs, quoted variables, logging, and secure temporary-file cleanup.
```

### Audit a Shell Script

```
Review [script path] for quoting, injection, secret exposure, cleanup, signal handling, portability, and failure behavior. Explain each recommended change.
```

## Limitations

- The skill provides guidance and examples but does not execute or validate commands.
- Commands depend on installed tools, operating system behavior, permissions, and shell configuration.
- Several examples require added safeguards before use with secrets, shared systems, or production services.
- The content focuses on Bash for Linux and macOS, not complete cross-shell portability.

## Best Practices

- Review command effects, paths, permissions, and target processes before execution.
- Quote variable expansions and validate all external input before using it in commands.
- Test scripts in a disposable environment before applying them to production systems.

## Anti Patterns

- Do not paste commands into privileged shells without understanding every argument.
- Do not print full environments or enable tracing when scripts handle secrets.
- Do not use forced process termination before confirming identity and attempting graceful shutdown.

## Security Audit

- Audited at: 2026-08-14T10:03:57.565\+00:00
- Summary: Most static alerts are false positives caused by Markdown formatting, illustrative shell syntax, reserved example URLs, and comparison headings. Confirmed concerns involve predictable shared temporary-file cleanup and guidance that may expose secrets or terminate unintended processes.

## Stats

- Views: 131
- Downloads: 14
- Favorites: 0
- Popularity score: 0
