bash-patterns

Batch Bash commands into temporary scripts for single-approval execution.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/peterkc/acf --skill bash-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bash-patterns
Source: https://github.com/peterkc/acf/tree/main/.claude/skills/bash-patterns
Command: npx skills add https://github.com/peterkc/acf --skill bash-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

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, and log, 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.