modern-automation-patterns

modern-automation-patterns is a skill for Claude Code from JosiahSiegel/claude-plugin-marketplace. It costs 160 tokens per session (3,980 once invoked), scanned C, original, MIT.

A collection of shell automation patterns for DevOps and CI/CD, the automated process of building, testing, and delivering software. It covers containers, Kubernetes pods, and cloud command-line tools such as AWS, Azure, and Google Cloud.

In plain words
What is it for?
Use it when writing CI/CD scripts, container-aware shell commands, Kubernetes helpers, or automation around AWS, Azure, or Google Cloud.
Why use it?
It helps make automation scripts account for the environment they run in, including containers, clusters, and cloud services. The input also specifies conventions for Windows paths and keeping documentation changes limited.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: positional $N argument.

Part of the bash-master plugin — 10 skills, 4 commands, 1 agent shipped together

Good fit Use it when writing CI/CD scripts, container-aware shell commands, Kubernetes helpers, or automation around AWS, Azure, or Google Cloud.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/josiahsiegel/claude-plugin-marketplace/modern-automation-patterns
Install

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.

Any agent
npx skills add JosiahSiegel/claude-plugin-marketplace --skill modern-automation-patterns
Clone the repo
git clone --depth 1 https://github.com/JosiahSiegel/claude-plugin-marketplace

Made for: Claude Code.

Or install bash-master, the plugin that ships this one along with the rest of its 10 skills, 4 commands, 1 agent.

Wrote 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.

agentmods badge for modern-automation-patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/josiahsiegel/claude-plugin-marketplace/modern-automation-patterns/github.svg)](https://agentmods.dev/skills/josiahsiegel/claude-plugin-marketplace/modern-automation-patterns)
Your own site
<a href="https://agentmods.dev/skills/josiahsiegel/claude-plugin-marketplace/modern-automation-patterns"><img src="https://agentmods.dev/badge/skills/josiahsiegel/claude-plugin-marketplace/modern-automation-patterns/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.

agentmods 80×15 button for modern-automation-patterns

Your own site · 80×15
<a href="https://agentmods.dev/skills/josiahsiegel/claude-plugin-marketplace/modern-automation-patterns"><img src="https://agentmods.dev/badge/skills/josiahsiegel/claude-plugin-marketplace/modern-automation-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 160 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,980 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00160 $0.03980
Opus 5 $0.00080 $0.01990
Sonnet 5 $0.00032 $0.00796
Haiku 4.5 $0.00016 $0.00398

Measured 12d ago against content hash 6e85ca2cfa61, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade C, and why

modern-automation-patterns 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 12d 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.

Cloud metadata endpointhighServer-side request forgery

One request to 169.254.169.254 can return temporary IAM credentials.

"http://169.254.169.254/metadata/identity/oauth2/token?api-version=2018-02-01&resource=$resource" \

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

if ! timeout "$timeout" curl -sf http://localhost:8080/health > /dev/null; then
plugins/bash-master/skills/modern-automation-patterns/SKILL.md · 695 lines

How it starts

The opening of the file, as written. The whole thing — 695 lines — stays where its author put it; the contents beside it link to each section on GitHub.

🚨 CRITICAL GUIDELINES

Windows File Path Requirements

MANDATORY: Always Use Backslashes on Windows for File Paths

When using Edit or Write tools on Windows, you MUST use backslashes (\) in file paths, NOT forward slashes (/).

Examples:

  • ❌ WRONG: D:/repos/project/file.tsx
  • ✅ CORRECT: D:\repos\project\file.tsx

This applies to:

  • Edit tool file_path parameter
  • Write tool file_path parameter
  • All file operations on Windows systems

Documentation Guidelines

NEVER create new documentation files unless explicitly requested by the user.

  • Priority: Update existing README.md files rather than creating new documentation
  • Repository cleanliness: Keep repository root clean - only README.md unless user requests otherwise
  • Style: Documentation should be concise, direct, and professional - avoid AI-generated tone
  • User preference: Only create additional .md files when user specifically asks for documentation

Modern Automation Patterns (2025)

Overview

Production-ready patterns for DevOps automation, CI/CD pipelines, and cloud-native operations following 2025 industry standards.

Container-Aware Scripting

Docker/Kubernetes Detection

#!/usr/bin/env bash
set -euo pipefail

# Detect container environment
detect_container() {
    if [[ -f /.dockerenv ]]; then
        echo "docker"
    elif grep -q docker /proc/1/cgroup 2>/dev/null; then
        echo "docker"
    elif [[ -n "${KUBERNETES_SERVICE_HOST:-}" ]]; then
        echo "kubernetes"
    else
        echo "host"
    fi
}

# Container-aware configuration
readonly CONTAINER_ENV=$(detect_container)

case "$CONTAINER_ENV" in
    docker|kubernetes)
        # Container-specific paths
        DATA_DIR="/data"
        CONFIG_DIR="/config"
        ;;
    host)
        # Host-specific paths
        DATA_DIR="/var/lib/app"
        CONFIG_DIR="/etc/app"
        ;;
esac

Minimal Container Scripts

#!/bin/sh
# Use /bin/sh for Alpine-based containers (no bash)

set -eu  # Note: No pipefail in POSIX sh

# Check if running as PID 1
if [ $$ -eq 1 ]; then
    # PID 1 must handle signals properly
    trap 'kill -TERM $child 2>/dev/null' TERM INT

    # Start main process in background
    /app/main &
    child=$!

    # Wait for child
    wait "$child"
else
    # Not PID 1, run directly
    exec /app/main
fi

Read the full file on GitHub · 695 lines

Changes

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.

  1. 12d ago First seen · 695 lines · 160 tokens per session scan C 6e85ca2cfa61

Subscribe to this mod's changes

modern-automation-patterns is a skill published in the GitHub repository JosiahSiegel/claude-plugin-marketplace (54 stars, last pushed 2mo ago), licensed MIT. It adds 160 tokens to every session and 3,980 once invoked, about $0.0008 per session on Opus 5. A static security scan graded it C with 2 findings (cloud metadata endpoint, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

deployment-patterns

Deployment workflows, CI/CD pipeline patterns, Docker containerization, health checks, rollback strategies, and production readiness checklists for web applications. Use when setting up deployment infrastructure or planning releases.

affaan-m/ECC · 41 tokens

gear

Managing dependencies, CI/CD, advanced GitHub Actions workflows, containers, secrets, and operational config. Use for build, workflow, or environment work.

simota/agent-skills · 32 tokens

devops

You are the DevOps Specialist -- the single authority on version control, CI/CD pipelines, platform operations (GitHub, Azure DevOps, GitLab), infrastructure, deployment, backup, and cleanup. If it touches git, pipelines, or production infrastructure, it's yours.

samibs/skillfoundry · 6 tokens

devops-zeroclaw-coordination-rules

ZEROCLAW COORDINATION RULES — extracted from roles.json deepPrompt for devops.

iampantherr/SecureContext · 29 tokens

dockerized-service-release-deployment-workflow

Create a Dockerized-service release contract with clean GitHub Actions builds, main-anchored tags, immutable digest manifests, published-release deployments, production approval, health checks, and exact-digest rollback.

gaelic-ghost/socket · 49 tokens

cuelabs-delivery-standard

Audit, create, or standardize CueLABS delivery systems. Use for GitHub Actions, CI parity, release workflows, Dockerfiles, Docker Compose, Helm, Terraform, Cloud Run, Firebase App Hosting, environment variables, OpenTelemetry, artifacts, or deployment readiness.

cuesoftinc/oss-engineering-standards · 61 tokens