Skip to content
Back to skills

1 Always Set A Default

ASecurity

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

  • 17 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 9, 2026
code-qualitygobashdebugging

Security analysis

A100/100

Scanned September 9, 2026

npx -y skills add vamseeachanta/workspace-hub --skill 1-always-set-a-default --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 1 Always Set A Default?

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

Security grade badge for 1 Always Set A Default
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vamseeachanta-1-always-set-a-default/badge)](https://www.skillsdirectory.com/skills/vamseeachanta-1-always-set-a-default)

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: parallel-batch-executor-1-always-set-a-default
description: 'Sub-skill of parallel-batch-executor: 1. Always Set a Default (+4).'
version: 1.0.0
category: _core
type: reference
scripts_exempt: true
---

# 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
```

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.