# bash-linux

A Bash reference skill for macOS and Linux: command chaining, files, processes, error handling. Useful when the agent edits shell scripts or digs through logs.

- skill · `type=skill` · Claude Code · 215 installs
- Author: davila7
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/davila7/claude-code-templates/tree/HEAD/cli-tool/components/skills/development/bash-linux
- Updated: 2026-10-24
- HTML: https://affpapa.org/en/nevibecode/skills/bash-linux

## What it does

The skill hands the agent a cheat sheet of terminal patterns. Chaining operators `;`, `&&` and `||` sit next to pipes, and there are everyday calls like `ls -la`, `find`, `tail -f` and `grep -r`. Process work includes locating a name with `ps aux | grep` and freeing a port through `lsof`.

Text tools come as a separate table: `sed`, `awk`, `cut`, `sort`, `uniq`. Environment variables and network calls with `curl` and `nc` get their own sections. The script template uses `set -euo pipefail`, a `trap` for cleanup, and a `command -v` check before relying on a binary.

Tool access is declared in `allowed-tools`: `Read`, `Write`, `Edit`, `Glob`, `Grep`, `Bash`. A skill about shell commands without `Bash` in that list is dead weight. One table maps PowerShell habits onto Bash, which helps when porting scripts over from Windows. The advice it keeps repeating is simple: quote your variables, and let `set -e` stop the run at the first failure.

## Install

### Claude Code (native platform)

1. **claude-code-templates**
```bash
npx claude-code-templates@latest --skill development/bash-linux
```

2. **Skills CLI (Vercel)**
```bash
npx skills add davila7/claude-code-templates --skill bash-linux -a claude-code
```

3. **Manually: put the files in place**
- File: `~/.claude/skills/bash-linux/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/bash-linux/

### Codex

**Manually: put the files in place**
- File: `.agents/skills/bash-linux/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

**Manually: put the files in place**
- File: `.cursor/skills/bash-linux/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install davila7/claude-code-templates bash-linux
```

2. **Manually: put the files in place**
- File: `.github/skills/bash-linux/SKILL.md`

### Gemini CLI

**Platform CLI**
```bash
gemini skills install https://github.com/davila7/claude-code-templates --path cli-tool/components/skills/development/bash-linux
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/bash-linux/SKILL.md` — The legacy .windsurf/skills/ path still works

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/davila7/claude-code-templates/tree/HEAD/cli-tool/components/skills/development/bash-linux

## When to use it
- chain `find`, `grep` and `xargs` without breaking the pipeline
- find which process holds port 3000 and kill it
- write a bash script that stops on the first error
- replace a string across a file with `sed`
- port a script from PowerShell to Bash

## Example prompts
- Find out which process is listening on port 3000 and kill it
- Rewrite `build.sh` so it exits on any error and removes its temp files
- Count repeated IPs in `access.log` and show the top five

## Similar
- [setup-matt-pocock-skills](https://affpapa.org/en/nevibecode/skills/setup-matt-pocock-skills.md) — skill · 1052851 installs
- [ask-matt](https://affpapa.org/en/nevibecode/skills/ask-matt.md) — skill · 766587 installs
- [to-tickets](https://affpapa.org/en/nevibecode/skills/to-tickets.md) — skill · 711230 installs
- [writing-plans](https://affpapa.org/en/nevibecode/skills/writing-plans.md) — skill · 282859 installs
- [caveman-review](https://affpapa.org/en/nevibecode/skills/caveman-review.md) — skill · 411800 installs
- [caveman-compress](https://affpapa.org/en/nevibecode/skills/caveman-compress.md) — skill · 411500 installs

From the same set: [davila7/claude-code-templates](https://affpapa.org/en/nevibecode/by/davila7/claude-code-templates.md) — 495 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
