/cloud-devops:aws-batchfrom cloud-devops
Analyzes AWS Batch compute environments, job queues, scheduling policies, and array jobs. Covers Fargate vs EC2 comparison, resource utilization, and failure investigation.
Ships in cloud-devops. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Analyze AWS Batch compute environments and jobs with parallel execution and anti-hallucination guardrails.
Relationship to other AWS skills:
aws-batch/ → Batch-specific analysis (compute environments, job queues, jobs)aws/ → "How to execute" (parallel patterns, throttling, output format)ALL independent operations MUST run in parallel using background jobs (&) and wait.
#!/bin/bash
export AWS_PAGER=""
for ce in $compute_envs; do
describe_compute_env "$ce" &
done
wait
#!/bin/bash
export AWS_PAGER=""
# List compute environments
list_compute_environments() {
aws batch describe-compute-environments \
--output text \
--query 'computeEnvironments[].[computeEnvironmentName,state,status,type,computeResources.type,computeResources.minvCpus,computeResources.maxvCpus,computeResources.desiredvCpus]'
}
# List job queues
list_job_queues() {
aws batch describe-job-queues \
--output text \
--query 'jobQueues[].[jobQueueName,state,status,priority,computeEnvironmentOrder[].computeEnvironment]'
}
# List jobs by status
list_jobs() {
local queue=$1 status=$2
aws batch list-jobs --job-queue "$queue" --job-status "$status" \
--output text \
--query 'jobSummaryList[].[jobId,jobName,status,createdAt,startedAt,stoppedAt,statusReason]' | head -20
}
# Describe jobs (batch)
describe_jobs() {
local job_ids="$@"
aws batch describe-jobs --jobs $job_ids \
--output text \
--query 'jobs[].[jobId,jobName,status,statusReason,container.exitCode,container.reason,startedAt,stoppedAt]'
}
# List job definitions
list_job_definitions() {
aws batch describe-job-definitions --status ACTIVE \
--output text \
--query 'jobDefinitions[].[jobDefinitionName,revision,type,status,containerProperties.vcpus,containerProperties.memory]' | head -20
}
# List scheduling policies
list_scheduling_policies() {
aws batch list-scheduling-policies \
--output text \
--query 'schedulingPolicies[].[arn,name]' 2>/dev/null
}
#!/bin/bash
export AWS_PAGER=""
aws batch describe-compute-environments \
--output text \
--query 'computeEnvironments[].[computeEnvironmentName,state,status,type,computeResources.type,computeResources.minvCpus,computeResources.maxvCpus,computeResources.desiredvCpus]'
#!/bin/bash
export AWS_PAGER=""
QUEUES=$(aws batch describe-job-queues --output text --query 'jobQueues[].jobQueueName')
for queue in $QUEUES; do
{
info=$(aws batch describe-job-queues --job-queues "$queue" \
--output text --query 'jobQueues[].[jobQueueName,state,priority]')
running=$(aws batch list-jobs --job-queue "$queue" --job-status RUNNING \
--output text --query 'length(jobSummaryList)')
pending=$(aws batch list-jobs --job-queue "$queue" --job-status PENDING \
--output text --query 'length(jobSummaryList)')
submitted=$(aws batch list-jobs --job-queue "$queue" --job-status SUBMITTED \
--output text --query 'length(jobSummaryList)')
printf "%s\tRunning:%s\tPending:%s\tSubmitted:%s\n" "$info" "$running" "$pending" "$submitted"
} &
done
wait
#!/bin/bash
export AWS_PAGER=""
QUEUES=$(aws batch describe-job-queues --output text --query 'jobQueues[].jobQueueName')
for queue in $QUEUES; do
FAILED=$(aws batch list-jobs --job-queue "$queue" --job-status FAILED \
--output text --query 'jobSummaryList[:5].jobId')
[ -z "$FAILED" ] && continue
aws batch describe-jobs --jobs $FAILED \
--output text \
--query 'jobs[].[jobName,status,statusReason,container.exitCode,container.reason,stoppedAt]' &
done
wait
#!/bin/bash
export AWS_PAGER=""
QUEUE=$1
ARRAY_JOBS=$(aws batch list-jobs --job-queue "$QUEUE" --job-status RUNNING \
--output text --query 'jobSummaryList[?arrayProperties].jobId')
for job_id in $ARRAY_JOBS; do
aws batch describe-jobs --jobs "$job_id" \
--output text \
--query 'jobs[].[jobName,arrayProperties.size,arrayProperties.statusSummary]' &
done
wait
#!/bin/bash
export AWS_PAGER=""
aws batch describe-job-definitions --status ACTIVE \
--output text \
--query 'jobDefinitions[].[jobDefinitionName,revision,type,platformCapabilities[0],containerProperties.image,containerProperties.vcpus,containerProperties.memory,retryStrategy.attempts]' | head -30
minvCpus, maxvCpus, desiredvCpus are in vCPU units, not instance counts. The scheduler maps vCPUs to instance types.Present results as a structured report:
Aws Batch Report
════════════════
Resources discovered: [count]
Resource Status Key Metric Issues
──────────────────────────────────────────────
[name] [ok/warn] [value] [findings]
Summary: [total] resources | [ok] healthy | [warn] warnings | [crit] critical
Action Items: [list of prioritized findings]
Target ≤50 lines of output. Use tables for multi-resource comparisons.
| Shortcut | Counter | Why |
|---|---|---|
| "I'll skip discovery and check known resources" | Always run Phase 1 discovery first | Resource names change, new resources appear — assumed names cause errors |
| "The user only asked for a quick check" | Follow the full discovery → analysis flow | Quick checks miss critical issues; structured analysis catches silent failures |
| "Default configuration is probably fine" | Audit configuration explicitly | Defaults often leave logging, security, and optimization features disabled |
| "Metrics aren't needed for this" | Always check relevant metrics when available | API/CLI responses show current state; metrics reveal trends and intermittent issues |
| "I don't have access to that" | Try the command and report the actual error | Assumed permission failures prevent useful investigation; actual errors are informative |
statusReason for "Host EC2 (instance i-xxx) terminated" messages.--statistics Average Maximum.:N suffix for specific revision or omit for latest active.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub skillmds/skillmd --plugin cloud-devops24 skills in this plugin
/04-securityDify 安全和部署 SKILLDify 安全实践和部署运维完整指南,涵盖SSRF防护、代码沙箱、Docker/Kubernetes部署、监控告警和故障恢复/adpRedpanda's Agentic Data Plane: governance infrastructure for building, running, and governing AI agents and MCP servers, plus a proxying AI Gateway for LLM providers, operated via `rpk ai` and the ADP API. Use when creating or managing AI agents (managed or self-managed) via `rpk ai agent` or `AgentRegistryService`; configuring MCP servers (remote or managed catalog, code mode, auth); setting up LLM providers or querying models via `rpk ai llm`/`rpk ai model` or the AI Gateway proxy; or configuring budgets, guardrails, or Cedar access-control policies through the governance APIs. Also covers reading agent transcripts and spending insights, and wiring OAuth clients or providers to the aigw Authorization Server. For the separate rpk cloud mcp control-plane MCP server, see `/redpanda:rpk-cloud`./agent-recallPersistent compounding memory for AI agents. 5 default MCP tools: session_start, session_end, remember, recall, check. Full surface (18 tools) available with --full flag. Two-verb model: inhale (session_start) and exhale (session_end). Correction-first memory with decision trail tracking, watch_for warnings, palace rooms with salience scoring, cross-project insight matching, same-day journal merging, ambient recall hooks. Local markdown only. Zero cloud, zero telemetry, Obsidian-compatible. Optional Supabase backend: when configured via `ar setup supabase`, recall() uses pgvector cosine similarity on OpenAI/Voyage embeddings instead of keyword search — same API, semantic understanding. Gracefully degrades to local search if not configured.Other plugins' skills for the same job