mainframe-infrastructure

A guide for managing a project's deployment environments and infrastructure, including containers, databases, domains, and monitoring.

In plain words
What is it for?
Use it to inspect or change Docker and Compose setup, CI/CD pipelines, deployments and rollbacks, TLS, backups, PostgreSQL, Redis, and observability.
Why use it?
It helps keep infrastructure work tied to the right environment, credentials, data, and approval before changes are made.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/catwillgh/mainframe/mainframe-infrastructure
Any agent
npx skills add CATWILLgh/MAINFRAME --skill mainframe-infrastructure
Clone the repo
git clone --depth 1 https://github.com/CATWILLgh/MAINFRAME

Made for: Claude Code, Codex.

Per session 79 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,151 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
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 $0.00079 $0.01151
Opus 5 $0.00039 $0.00575
Sonnet 5 $0.00016 $0.00230
Haiku 4.5 $0.00008 $0.00115

Measured 2d ago against content hash 766cf9b8518c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

mainframe-infrastructure scanned grade A with 1 finding 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 2d 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.

Makes network callslowCapability

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

- Raw HTTP interaction: load `mainframe-curl-requests`.
adapters/codex/skills/mainframe-infrastructure/SKILL.md · 103 lines

How it starts

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

Infrastructure operations

The primary session is the intended owner of this skill. Infrastructure work commonly crosses environment choice, credentials, downtime, data, and granted authority; do not delegate the whole operation merely to obtain specialist context. A recipient that does not own those decisions returns verified facts and the exact missing decision to its immediate caller instead of acting or addressing the end user.

Start with the project map

  1. Resolve the project root from the active repository, falling back to the current working directory only when there is no repository.
  2. If <project-root>/.agents/infrastructure.json exists, read it before infrastructure recon or action. It is the current topology map, not a log and not authority to mutate a resource.
  3. Select the environment named or implied by the agreed task. If two map entries remain plausible and choosing one changes infrastructure or data, resolve that ambiguity before acting.
  4. Read only the map's references whose purpose applies to the current operation. Resolve relative paths from the project root. A missing or escaping path is stale data, not permission to guess.
  5. Treat credentialRefs as names only. Load mainframe-secrets before consuming credentials; never place values in the map, commands shown in chat, logs, or generated runbooks.

Read infrastructure-map.md before creating or changing the map. Use infrastructure.example.json as its shape; do not copy example values as project facts.

Establish current reality

The map is orientation, while the repository and live platform establish the current state. Inspect the relevant Dockerfile, Compose, CI, IaC, deployment, and environment-template files. For a remote operation, use the mapped access alias and perform the smallest read-only live check that distinguishes current state from stale documentation.

When the map conflicts with verified reality, reality wins. If repository edits are within the active task, correct the map after the relevant fact is established. Otherwise return the confirmed stale fact to the immediate caller. Do not update lastVerified merely because a JSON entry was read.

Read the full file on GitHub · 103 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. 2d ago First seen · 103 lines · 79 tokens per session scan A 766cf9b8518c

Subscribe to this mod's changes

mainframe-infrastructure is a skill published in the GitHub repository CATWILLgh/MAINFRAME (2 stars, last pushed 12d ago), licensed MIT. It adds 79 tokens to every session and 1,151 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

cloud-run-basics

Manages Cloud Run services, jobs, and worker pools. Use when you need to deploy applications responding to HTTP requests (services), run event-triggered or scheduled tasks (jobs), or handle always-on pull-based background processing (worker pools).

google/skills · 53 tokens

wrangler

Cloudflare Workers CLI for deploying, developing, and managing Workers, KV, R2, D1, Vectorize, Hyperdrive, Workers AI, Containers, Queues, Workflows, Pipelines, and Secrets Store. Load before running wrangler commands to ensure correct syntax and best practices. Biases towards retrieval from Cloudflare docs over…

cloudflare/skills · 75 tokens

managing-astro-local-env

Manage local Airflow environment with Astro CLI (Docker and standalone modes). Use when the user wants to start, stop, or restart Airflow, view logs, query the Airflow API, troubleshoot, or fix environment issues. For project setup, see setting-up-astro-project.

astronomer/agents · 63 tokens

aws-cloudformation-ecs

Provides AWS CloudFormation patterns for ECS clusters, task definitions, services, container definitions, auto scaling, blue/green deployments, CodeDeploy integration, ALB integration, service discovery, monitoring, logging, template structure, parameters, outputs, and cross-stack references. Use when creating ECS…

giuseppe-trisciuoglio/developer-kit · 101 tokens

pentest-cloud-infrastructure

Cloud security posture management and container security assessment for AWS, Azure, GCP, and Kubernetes.

jd-opensource/JoySafeter · 25 tokens

loom-kubernetes

Kubernetes deployment, cluster architecture, security, and operations. Use for manifests, Helm charts, RBAC, network policies, operators/CRDs, PodSecurityStandards, troubleshooting, and production best practices.

cosmix/loom · 46 tokens