Agent skill

parallel-batch-executor-1-always-set-a-default

Sub-skill of parallel-batch-executor: 1. Always Set a Default (+4).

Stars 4
Forks 4

Install this agent skill to your Project

npx add-skill https://github.com/vamseeachanta/workspace-hub/tree/main/.claude/skills/_core/bash/parallel-batch-executor/1-always-set-a-default

SKILL.md

1. Always Set a Default (+4)

1. Always Set a Default

bash
PARALLEL="${PARALLEL:-5}"

2. Validate Input

bash
[[ $PARALLEL -gt 0 ]] || die "Parallelism must be positive"
[[ $PARALLEL -le 50 ]] || log_warning "High parallelism may overwhelm system"

3. Handle Failures Gracefully

bash
# Don't use set -e with xargs - it will mask failures
# Instead, track failures explicitly

4. Log Everything

bash
# Create per-task logs for debugging
log_file="$LOG_DIR/task_$(date +%s)_$$.log"

5. Clean Up Resources

bash
trap cleanup EXIT INT TERM

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results