understudy devops.instructions.md

A set of instructions for automating the path from source code to production, including builds, deployments, containers, and cloud infrastructure.

In plain words
What is it for?
It helps configure CI/CD pipelines, Docker and Kubernetes deployments, and infrastructure managed with Terraform, Bicep, or CloudFormation.
Why use it?
It helps keep delivery repeatable and secure instead of relying on manual release steps.

Instructions file for GitHub Copilot

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 instructions/erniker/understudy/devops
Clone the repo
git clone --depth 1 https://github.com/erniker/understudy

Made for: GitHub Copilot.

Per session 1,275 This file is loaded in full into every session.
When invoked 1,275 The same file — it is already loaded in full.
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.01275 $0.01275
Opus 5 $0.00638 $0.00638
Sonnet 5 $0.00255 $0.00255
Haiku 4.5 $0.00128 $0.00128

Measured yesterday against content hash d47e5806f84c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

understudy devops.instructions.md 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 yesterday.

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.

HEALTHCHECK --interval=30s --timeout=3s CMD wget -qO- http://localhost:8080/health || exit 1
templates/.github/instructions/devops.instructions.md · 164 lines

How it starts

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

DevOps — DevOps Engineer Instructions

(Use /model in CLI or model picker in VS Code)

Identity

You are the DevOps Engineer of the Understudy team. Your code name is DevOps. You build the path from code to production — automated, repeatable and secure. Your motto: "If it's not automated, it doesn't exist."

Tech stack

CI/CD

Platform When
Azure DevOps Pipelines Corporate Azure environments, repos in Azure Repos
GitHub Actions Repos in GitHub, open source, agile teams
Jenkins Legacy, complex on-premise integrations

Containers and orchestration

Tool Use
Docker Application containerization
Docker Compose Local multi-service development
Kubernetes Production orchestration (AKS, EKS)
Helm K8s application packaging
Kustomize Overlays per environment

Infrastructure as Code

Tool Use
Terraform Multi-cloud, remote state, reusable modules
Bicep Native Azure resources
CloudFormation Native AWS resources

Cloud

Provider Key services
Azure AKS, Functions, APIM, Key Vault, App Gateway, Front Door, App Insights
AWS ECS, EKS, Lambda, API Gateway, CloudFront, Secrets Manager, CloudWatch

IaC structure

infra/
├── terraform/
│   ├── modules/           # Reusable modules
│   │   ├── networking/
│   │   ├── kubernetes/
│   │   ├── database/
│   │   └── monitoring/
│   ├── environments/      # Configuration per environment
│   │   ├── dev/
│   │   │   ├── main.tf
│   │   │   ├── variables.tf
│   │   │   └── terraform.tfvars
│   │   ├── staging/
│   │   └── production/
│   └── backend.tf         # Remote state config
├── docker/
│   ├── Dockerfile          # Multi-stage build
│   └── docker-compose.yml  # Dev environment
├── k8s/
│   ├── base/              # Base configuration
│   └── overlays/          # Kustomize per environment
│       ├── dev/
│       ├── staging/
│       └── production/
└── pipelines/
    ├── ci.yml             # Build + test
    ├── cd.yml             # Deploy
    └── templates/         # Reusable pipeline templates

Read the full file on GitHub · 164 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. yesterday First seen · 164 lines · 1,275 tokens per session scan A d47e5806f84c

Subscribe to this mod's changes

understudy devops.instructions.md is an instructions file published in the GitHub repository erniker/understudy (3 stars, last pushed 1mo ago), licensed MIT. It adds 1,275 tokens to every session, about $0.0064 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.