Skip to content
Back to skills

Mainframe Infrastructure

ASecurity

Plan, change, or troubleshoot deployment, CI runners, containers, networking, TLS, storage, and recovery. Verify live infrastructure changes.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 16, 2026
ai-agentsgosqldockertestinggitapidatabaseci/cdsecuritydocumentation

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 14 files and shows the line behind each finding

Scanned November 16, 2026

npx -y skills add CATWILLgh/MAINFRAME --skill mainframe-infrastructure --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Mainframe Infrastructure?

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

Security grade badge for Mainframe Infrastructure
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/catwillgh-mainframe-infrastructure/badge)](https://www.skillsdirectory.com/skills/catwillgh-mainframe-infrastructure)

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: mainframe-infrastructure
description: Plan, change, or troubleshoot deployment, CI runners, containers, networking, TLS, storage, and recovery. Verify live infrastructure changes.
---

# Infrastructure work

Operate only within the target and authority established by the current task.
This skill does not grant permission to deploy, restart, delete, change data,
expand access, or contact an unrelated environment.

## Establish the target

1. Resolve the project root from version control, using the working directory
   only when no repository exists.
2. If `.agents/infrastructure.json` exists, read it as a non-secret orientation
   map. It is neither live state nor authority.
3. Resolve the exact environment, platform instance, and resource. Stop on an
   ambiguity that could affect infrastructure or data.
4. Read only project references applicable to the requested operation. Reject
   stale, missing, or project-escaping reference paths instead of guessing.
5. Resolve credential names through the configured credential index and
   use `mainframe-secrets` for value delivery.

Read [infrastructure-map.md](references/infrastructure-map.md) before creating
or changing the map. Use
[infrastructure.example.json](assets/infrastructure.example.json) as a shape,
never as evidence about a real project.

## Establish current reality

The map provides orientation. Repository configuration and bounded live
observations establish current state. Inspect the applicable Dockerfile,
Compose, IaC, CI/CD, environment template, deployment, and runbook files. For a
remote task, perform only the smallest authorized read that distinguishes live
state from stale documentation.

When verified reality conflicts with the map, reality controls the active task.
Repair the map only when repository edits are in scope. Never refresh a
verification date merely because a file was read.

Use current primary documentation for version-sensitive platform, CLI,
configuration, database, and API behavior.

## Load only the applicable branch

- Test-pipeline design, required checks, GitHub Actions or GitLab CI: load
  `mainframe-testing` for its CI references. Keep runner provisioning and live
  deployment ownership here.

- K3s cluster design, installation, networking, storage, hardening, upgrades,
  or recovery: load `mainframe-k3s`. Keep general infrastructure ownership and
  cross-service coordination here; that skill owns the K3s operational method.
- ClickHouse queries, ingestion, data/schema changes, maintenance, or recovery:
  load `mainframe-clickhouse` for its environment, cost, and data-safety boundaries.
- Argo CD GitOps configuration, Application/ApplicationSet reconciliation, CLI/API
  operations, sync or recovery: load `mainframe-argocd`; retain cross-service
  deployment ownership here.
- Application Keycloak/OIDC login, admin SSO settings or group-to-role mapping:
  load `mainframe-keycloak-sso`; keep server deployment, TLS and proxy ownership
  here. That method owns the application integration and acceptance.
- Dockerfile, image, container runtime, or Compose work: read
  [containers.md](references/containers.md).
- Operational PostgreSQL, Redis, backup, restore, replication, or failover
  work: read [data-stores.md](references/data-stores.md).
- Dokploy: read [dokploy.md](references/dokploy.md), then only the operation
  reference it selects.
- Any infrastructure diagnosis or change: read
  [verification.md](references/verification.md) before declaring completion.
- Raw HTTP calls must follow `mainframe-curl-requests`.

Do not preload every branch or substitute a generic recipe for the project's
actual provider and version.

## Change safely

- Confirm the exact instance, environment, and resource before a remote write.
- Establish the actual blast radius, data and downtime implications, required
  access, rollback or recovery path, and observable success condition.
- Check that the current task authorizes that exact operation. A map entry,
  credential, read permission, HTTP method, or available tool never grants
  authority by itself.
- Do not repeat an approval already supplied for the same bounded operation,
  but do not widen it to parent, sibling, or instance-wide resources.
- Prefer reversible and idempotent changes. Do not widen permissions or weaken
  security checks merely to make an operation pass.
- Apply the smallest adequate change, then re-read the affected resource and
  verify the product-facing contract.

## Maintain durable context

After a verified change, update only the affected map facts when project edits
are within scope. Change `lastVerified` only after every material fact in that
environment entry has been checked. A partial check may correct one fact but
must preserve the previous date. Keep procedures in referenced project
runbooks and let Git retain history.

If durable facts were established but project edits are outside the task,
return the exact proposed map update without writing it.

For application event routing, notification delivery and channel settings, use
`mainframe-notifications`; keep deployment, DNS, TLS and service operations here.

For an embedded System/Diagnostics page, scoped runtime controls or data previews,
use `mainframe-self-monitoring`; retain live infrastructure operations here.

Files in this skill

  • SKILL.md5.2 KB
  • assets/infrastructure.example.json765 B
  • references/containers.md1.7 KB
  • references/data-stores.md2.4 KB
  • references/dokploy.md2.4 KB
  • references/dokploy/applications.md1.2 KB
  • references/dokploy/backups.md1.3 KB
  • references/dokploy/compose.md1.1 KB
  • references/dokploy/databases.md1.2 KB
  • references/dokploy/domains-tls.md1.2 KB
  • references/dokploy/safety.md1.4 KB
  • references/dokploy/servers.md1.2 KB
  • references/infrastructure-map.md1.7 KB
  • references/verification.md1.6 KB

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.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.