Skip to content
The Latent Daily
The Latent Daily

Sections

News & Industry
Knowledge & Learning
Research & Science
Tools, Software & Models
Developers & Builders
Hardware & Infrastructure
Society, Policy & Ethics
AI in Industries
People & Community
Special Formats

Tag

#DevOps

DevOps on The Latent Daily: 3 prompts. News, explainers and guides on DevOps, each linked to its sources.

3 items

Prompts tagged #DevOps

Codingintermediate

Blameless incident postmortem from a timeline

You are a site reliability engineer who facilitates blameless postmortems. Using only the material below, draft a postmortem document. Service or system affected: [SERVICE NAME] Incident window: [START AND END TIME, WITH TIME ZONE] Severity level used by my team: [e.g. "SEV2: partial outage for paying customers"] Timeline and notes: [PASTE THE TIMELINE, ALERT TEXT, CHAT EXCERPTS AND DEPLOY LOG, WITH TIMESTAMPS] Known impact data: [e.g. "4% of checkout requests failed for 38 minutes", or "not measured yet"] Audience: [e.g. "engineering org and support leads"] Produce these sections: 1. Summary: three sentences a non-engineer can follow: what broke, who was affected, how it was fixed. 2. Impact: users, requests, revenue or data affected, using only the figures I gave. Mark every missing number as "TO MEASURE". 3. Timeline: a clean table (time, event, source) covering detection, escalation, mitigation and resolution. Note the time to detect and the time to mitigate. 4. Contributing factors: technical and process conditions that allowed the incident, each tied to a line in my notes. Describe systems and decisions, never individuals. 5. What went well and where we got lucky. 6. Follow-up actions: each with a suggested owner role, a priority (P0 to P2) and a measurable "done when" condition. Separate quick fixes from longer-term prevention. 7. Open questions the notes do not answer. Rules: - Do not invent timestamps, causes or metrics. If the notes conflict, show both versions and flag them. - Replace personal names with roles (e.g. "on-call engineer"). - Keep it under [WORD LIMIT] words.

Works with: ChatGPT, Claude, Gemini, Any modern chat model

Codingintermediate

Dockerfile review for image size, security and build caching

You are a DevOps engineer who reviews container builds. Review the Dockerfile below. Application: [LANGUAGE, FRAMEWORK AND WHAT IT DOES, e.g. "Node 22 API with Express"] Where it runs: [e.g. "Kubernetes", "a single VPS with Docker Compose", "a serverless container platform"] Priorities: [e.g. "smaller image first", "fast CI rebuilds", "security hardening"] Constraints: [e.g. "must use our company base image", "needs native build tools for one dependency"] Dockerfile: """ [PASTE DOCKERFILE] """ .dockerignore (if any): """ [PASTE OR WRITE "none"] """ Please: 1. List findings in a table: line, issue, category (size / caching / security / reliability), severity, fix. 2. Check specifically: base image choice and tag pinning, layer order for cache reuse, dev dependencies in the final image, running as root, secrets passed via ARG or ENV or copied files, missing .dockerignore entries, HEALTHCHECK, and signal handling for graceful shutdown. 3. Rewrite the Dockerfile, using a multi-stage build if it helps, with a short comment on each changed line. 4. Give the commands to build it and to compare image size before and after. 5. Note anything you could not verify without seeing the rest of the repository.

Works with: ChatGPT, Claude, Gemini, Any LLM

Codingintermediate

Write a safe Bash or PowerShell script with a dry-run mode

You are a careful systems engineer. Write a [SHELL, e.g. "Bash", "PowerShell 7", "POSIX sh"] script for this task: Task: [WHAT THE SCRIPT SHOULD DO, e.g. "delete log files older than 30 days in /var/app/logs and compress the rest"] Operating system: [e.g. "Ubuntu 24.04", "Windows 11", "macOS"] How it runs: [e.g. "manually by an admin", "nightly via cron", "in a CI job"] Inputs: [ARGUMENTS OR ENVIRONMENT VARIABLES] Things it must never touch: [e.g. "anything outside the target folder", "files modified in the last 24 hours"] Requirements: 1. Fail fast on errors (e.g. `set -euo pipefail` in Bash, `$ErrorActionPreference = 'Stop'` in PowerShell). 2. Validate every input: required arguments, paths that exist, paths that are not empty or root. 3. Include a dry-run flag that prints what would happen without changing anything. Make dry run the default if the task deletes or overwrites data. 4. Quote all variables and handle file names with spaces. 5. Log each action with a timestamp, and exit with a non-zero code on failure. 6. Add a usage/help message. After the script, give: - A plain-English list of every change the script can make to the system. - How to test it safely first. - Any command that needs elevated permissions and why.

Works with: ChatGPT, Claude, Gemini, GitHub Copilot Chat