bash-patterns
CommunityMaster Bash: reduce approvals, boost performance, simplify scripts.
Authorpeterkc
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Inefficient or poorly structured Bash commands in AI workflows lead to excessive approval prompts, slow execution, and difficult debugging. This skill provides battle-tested patterns to optimize Bash usage, minimizing friction and maximizing efficiency.
Core Features & Use Cases
- Approval Optimization: Guides the use of specialized Claude tools (Read, Grep, Glob) over Bash commands to avoid unnecessary approval prompts, significantly speeding up interactive workflows.
- Temporary Script Pattern: Enables writing complex Bash logic to temporary executable scripts (
.cache/scripts/) for a single approval, making multi-step operations smooth and debuggable. - Parallel Execution: Provides patterns for batching independent Bash commands in a single message to achieve substantial speedups (2-8x faster), improving overall workflow performance.
- Enhanced Readability: Offers best practices for quoting, heredocs, and error handling to ensure Bash commands are robust, maintainable, and easy to understand.
- Use Case: When performing a multi-step Git operation like
status,diff, andlog, use this skill to learn how to batch these commands for a single approval and 3-4x faster execution, saving interactive time.
Quick Start
Show me the temp script pattern to reduce Bash approval prompts for complex logic.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: bash-patterns Download link: https://github.com/peterkc/acf/archive/main.zip#bash-patterns Please download this .zip file, extract it, and install it in the .claude/skills/ directory.