Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add d-padmanabhan/agent-engineering-handbook --skill scripting-automationgit clone --depth 1 https://github.com/d-padmanabhan/agent-engineering-handbookWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/d-padmanabhan/agent-engineering-handbook/scripting-automation)<a href="https://agentmods.dev/skills/d-padmanabhan/agent-engineering-handbook/scripting-automation"><img src="https://agentmods.dev/badge/skills/d-padmanabhan/agent-engineering-handbook/scripting-automation/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/d-padmanabhan/agent-engineering-handbook/scripting-automation"><img src="https://agentmods.dev/badge/skills/d-padmanabhan/agent-engineering-handbook/scripting-automation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00073 | $0.03752 |
| Opus 5.5 | $0.00029 | $0.01501 |
| Sonnet 5.5 | $0.00015 | $0.00750 |
| Haiku 4.5 | $0.00007 | $0.00375 |
Grade C, and why
scripting-automation scanned grade C with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
rm -rf "$TEST_DIR" Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
Use for: Diagnostics, cleanup operations, commands where failure is expected (grep, curl with retries). How it starts
The opening of the file, as written. The whole thing — 572 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Scripting & Automation
Use the Bash skill (${HANDBOOK_ROOT}/skills/bash-shell-scripting/SKILL.md) for baseline shell authoring. This skill owns automation-specific retries, locks, signals, idempotency, deployment workflows, and BATS patterns.
Guiding Principles
- "Fail fast, fail clearly" - Use strict mode, validate early, provide clear error messages
- "Quotes are your friend" - Always quote variables unless you explicitly want word splitting
- "Explicit over implicit" - Use
local,readonly, clear function names, document assumptions - "Security by default" - Sanitize inputs, use
mktemp, avoideval, validate file paths - "Composition over complexity" - Small functions, clear separation of concerns, reusable patterns
- "Observability is essential" - Structured logging, proper exit codes, error context
- "Test what you write" - Use shellcheck, test on multiple platforms, write BATS tests
- "Format consistently" - Must pass
shfmt -i 2 -ci -sr -bn(2-space indentation; prefer ~100-character lines)
Quick Reference
# Safety modes
set -euo pipefail # Strict mode (fail-fast)
set -uo pipefail # Controlled mode (explicit error handling)
set -Euo pipefail # Strict + ERR trap propagation to functions
# Common patterns
command -v cmd >/dev/null # Check if command exists (portable)
trap 'cleanup' EXIT # Always cleanup
flock -n 200 || exit 1 # Prevent concurrent runs
readonly VAR="value" # Immutable constant
local var="value" # Function-local variable
shfmt -w -i 2 -ci -sr -bn . # Format with Google-style 2-space indentation
Standard Header + Prelude
Use this for new automation scripts. It documents purpose and usage, keeps debug tracing available but commented, creates a timestamped logfile named after the script, and uses a safe logging helper instead of raw echo.
#!/usr/bin/env bash
#
# Script Name : <script_name>.sh
#
# Purpose : <One or two sentences explaining what the script does.
# Wrap continuation lines under the value column.>
#
# Dependencies : <List required commands, or "None">
#
# Script Usage : ./<script_name>.sh [options] <arguments>
#
# <Examples and argument notes.>
#
##----------------------------------------------------------------------------------------##
# Turn debug on or off
# set -x
##----------------------------------------------------------------------------------------##
set -euo pipefail
readonly DTTM="$(date -u +"%Y%m%d_%H%M%S")"
readonly SCRIPT_NAME="$(basename "${0}" .sh)"
readonly LOGFILE="${SCRIPT_NAME}_${DTTM}.log"
logmsg() {
local timestamp
timestamp="$(date -u +"%Y-%m-%dT%H:%M:%SZ")"
printf "%s: %s\n" "${timestamp}" "$*" | tee -a "${LOGFILE}" >&2
}
die() {
logmsg "ERROR: $*"
exit 1
}
debug() {
[[ "${DEBUG:-0}" == "1" ]] && logmsg "DEBUG: $*"
}
require_command() {
local command_name="$1"
command -v "${command_name}" >/dev/null 2>&1 || die "Missing command: ${command_name}"
}
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 572 lines · 73 tokens per session scan C 5f375c28b66e
scripting-automation is a skill published in the GitHub repository d-padmanabhan/agent-engineering-handbook (21 stars, last pushed 9d ago), licensed MIT. It adds 73 tokens to every session and 3,752 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it C with 2 findings (recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
scripting-automation compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| scripting-automationd-padmanabhan/agent-engineering-handbook | Skill | 21 | 9d ago | MIT | C | 73 | Claude Code, Codex |
| ci-auditgarrytan/gstack | Skill | 143k | today | MIT | A | 40 | Claude Code |
| chinese-git-workflowjnMetaCode/superpowers-zh | Skill | 8.7k | 5d ago | MIT | A | 69 | Claude Code |
| webhook-managementhoangsonww/Claude-Code-Agent-Monitor | Skill | 1.2k | today | MIT | A | 56 | Claude Code, Codex |
| deployment-engineerrmyndharis/antigravity-skills | Skill | 2.2k | 4d ago | MIT | A | 73 | Claude Code, Codex |
| managing-github-actions-secretsPostHog/posthog-foss | Skill | 737 | today | MIT | A | 67 | Claude Code, Codex |
| monorepo-managementwshobson/agents | Skill | 43k | 4d ago | MIT | C | 54 | Claude Code |