Skip to content
Back to skills

Bash Use

ASecurity

Ultra-concise bash command patterns. Use when constructing shell commands or one-liners.

  • 666 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 2, 2026
ai-agentsshellbashdebugging

Works with

  • cli

Security analysis

A93/100
  • highPerforms destructive filesystem operations

Pro shows the line behind each finding and how to fix it

Scanned September 2, 2026

npx -y skills add majiayu000/claude-skill-registry --skill bash-use --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Bash Use?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Bash Use
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-bash-use-claude-skill-registry/badge)](https://www.skillsdirectory.com/skills/majiayu000-bash-use-claude-skill-registry)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: bash-use
description: Ultra-concise bash command patterns. Use when constructing shell commands or one-liners.
---

# Bash Use Skill

Patterns for interactive bash commands, one-liners, and CLI usage.

---

## When to Use

- Constructing shell commands
- Writing one-liners
- Interactive CLI usage
- Command debugging or improvement

---

## Quick Reference

**Quote paths with spaces:**
```bash
cd "/path with spaces/dir"
```

**Relative paths with rm:**
```bash
rm -rf ./build  # Not $HOME/...
```

**Chain commands:**
```bash
cmd1 && cmd2 && cmd3  # Stop on failure
cmd1; cmd2; cmd3      # Continue regardless
```

**Command substitution:**
```bash
result=$(command)  # Not `command`
```

**Check command exists:**
```bash
command -v jq &>/dev/null || echo "not found"
```

**Output redirection:**
```bash
command 2>&1        # Stderr to stdout
command &>/dev/null # Suppress all
```

**Process substitution:**
```bash
diff <(cmd1) <(cmd2)
```

---

## Full Guidelines

**Read:** `~/.claude/skills/code-implement/resources/loqui/languages/bash/reference/commands.md`

Use Read tool to access (paths outside cwd require direct reads).

---

## Anti-Patterns Checklist

- ✘ Unquoted paths with spaces
- ✘ Absolute paths with `rm`
- ✘ Using `;` when `&&` is needed
- ✘ Backticks instead of `$()`

---

## Related Skills

- **code-implement**: Language-specific patterns (includes bash)
- **code-test**: TDD workflow

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.