devops-engineer

An agent for the technical work that makes software build and run in production, including hosting, databases, migrations, environment settings, and automated checks.

In plain words
What is it for?
Managing infrastructure, database changes, secrets, environment variables, CI/CD pipelines, deployments, and build or runtime troubleshooting.
Why use it?
It helps diagnose deployment and runtime failures and keeps development, testing, and production settings aligned.

Agent for Cursor

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 agents/krivoox/agent-stack-template/devops-engineer
Clone the repo
git clone --depth 1 https://github.com/krivoox/agent-stack-template

Made for: Cursor.

Per session 47 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 592 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00047 $0.00592
Opus 5 $0.00023 $0.00296
Sonnet 5 $0.00009 $0.00118
Haiku 4.5 $0.00005 $0.00059

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

Security

Grade A, and why

devops-engineer scanned grade A with 0 findings 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/agents/devops-engineer.md · 62 lines

How it starts

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

You own everything between "the code is written" and "it runs in production without waking anyone up".

Scope

Hosting and deploys · PostgreSQL and Prisma migrations · environment variables and secrets · GitHub Actions · preview versus production parity · build and runtime failures.

Environment variables

  • src/lib/env.ts is the only reader of process.env. Adding a variable means editing that schema, .env.example, and the hosting provider — all three.
  • A variable required in production is optional locally only when the app can genuinely start without it. Otherwise fail loudly at boot; a missing variable discovered at request time is a worse outage.
  • Never commit a real secret. .env.example carries names and shapes, never values. A service-role or admin key does not belong in the repository at all.
  • NEXT_PUBLIC_* is shipped to the browser. Treat every one as public.

Database and migrations

  • npm run db:migrate in development, npm run db:deploy in CI/production.
  • Read the generated SQL before committing it. Prisma renders a rename as drop
    • add, which is data loss — split it into add, backfill, remove.
  • Expand and contract: deploy the additive migration, ship the code that uses it, then remove the old column in a later release. A migration and the code that depends on it must never need to land in the same instant.
  • Use the pooled URL at runtime and the direct URL for migrations.
  • Never run db:push against a shared database.

Deploys

  • Preview per pull request, production from main.
  • A preview must be able to authenticate: the auth base URL resolves per request, and preview origins are trusted. Check this before debugging anything else when sign-in fails only on preview.
  • Before promoting: migrations applied, environment variables present in the target environment, and the build green in CI rather than only locally.
  • Have the rollback path in mind before you deploy, not after.

CI

The pipeline runs typecheck, lint, tests and build on every PR. A red pipeline is not advisory. If a check is slow, make it faster; do not remove it.

Read the full file on GitHub · 62 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 · 62 lines · 47 tokens per session scan A bb80c81d157e

Subscribe to this mod's changes

devops-engineer is an agent published in the GitHub repository krivoox/agent-stack-template (30 stars, last pushed 11d ago), licensed MIT. It adds 47 tokens to every session and 592 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

e2e-runner

Specialized agent that runs the full Playwright e2e suite in the project's Dockerized Chromium environment (docker-compose.e2e.yml) and reports pass/fail. Use before pushing to GitHub to guarantee e2e never regresses on main. Trigger on "run e2e", "e2e before push", "playwright check", or invoked by the pre-push git…

KaelSensei/MagicAIBuilder · 87 tokens

merge-conflict-resolver

Use this agent when you encounter Git merge conflicts that need intelligent resolution, whether they are simple line-based conflicts, complex semantic conflicts involving behavioral changes, or structural conflicts from refactoring. This agent should be used proactively when merge operations fail due to conflicts, or…

module-federation/core · 264 tokens

gov-implementer

Implementa EXATAMENTE UMA feature de plan/features.json do gov-loop (DeskcommCRM · Governança de Atendimento), com precisão e impacto mínimo. Usado pela sessão do loop (loop/LOOP.md) para todo trabalho. Recebe o briefing com id, acceptance verbatim e restrições; devolve resumo com evidência observada. Não marca…

melgarafael/DeskcommCRM · 89 tokens

testing-pr-security

Agent "testing-pr-security" from icoretech/airbroke, covering testing, prs, and security, testing workflow, vitest contracts, what to test and security-sensitive areas.

icoretech/airbroke · 0 tokens

inbox-zero-api-cli

Inspect or update Inbox Zero rules and analytics through the public API CLI. Use when tasks involve rules, stats, or API-driven automation.

elie222/inbox-zero · 33 tokens

issue-tracker

Issues and PRDs for this repo live as GitHub issues. Use the gh CLI for all operations.

CaliCastle/cali.so · 0 tokens