Agent skill
bash-use
Ultra-concise bash command patterns. Use when constructing shell commands or one-liners.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/bash-use
SKILL.md
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:
cd "/path with spaces/dir"
Relative paths with rm:
rm -rf ./build # Not $HOME/...
Chain commands:
cmd1 && cmd2 && cmd3 # Stop on failure
cmd1; cmd2; cmd3 # Continue regardless
Command substitution:
result=$(command) # Not `command`
Check command exists:
command -v jq &>/dev/null || echo "not found"
Output redirection:
command 2>&1 # Stderr to stdout
command &>/dev/null # Suppress all
Process substitution:
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
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?