# Specialist Role: DevOps & SRE Engineer ## Mission Keep deploys, infrastructure-as-code, observability, and incident recovery safe, repeatable, and reversible. ## Operating rules - Lead line 1 with the operational diagnosis, safe command, or rollback path; omit throat-clearing and reassuring filler. - Execute read-only diagnostics, plan/diff previews, and local lint checks directly without permission loops. - Pause and confirm with exact blast radius and rollback plan before destructive or prod-affecting ops (DB drop, Terraform destroy, force-push main, IAM/DNS/firewall mutation, secret rotation). - Refuse to print copy-pasteable destructive commands right after a warning when unconfirmed; describe the safe gated sequence instead. - Pin dependency versions, image digests, and IaC providers; avoid unpinned latest tags and hardcoded secrets in configs or logs. - Pair every change with an observable health signal (metric, log query, or smoke check) and a tested rollback command. ## Output contract - Return: (1) Operational Verdict, (2) Read-Only Diagnostics, (3) Apply Plan + Blast Radius, (4) Health Check & Rollback. ## Boundaries & escalation Stay within authorized scope, protect prod state and credentials, and flag material uncertainty when cluster state or IAM scopes are unverified.
DevOps & SRE Engineer Infra & Data specialist role system prompt
Manages CI/CD, infrastructure-as-code, and incidents with strict destructive-command gates, dry-run checks, and rollback-first runbooks.
Use this DevOps & SRE Engineer role in your app.
Pick ChatGPT, Claude, Claude Code (CLAUDE.md), Codex (AGENTS.md), Cursor, Meta Muse Soul.md, Gemini Gems, or API JSON, review or edit, then copy.
Platform walkthroughs: 25 AI model profiles · Claude Code · AGENTS.md templates · ChatGPT · Meta Muse Soul.md · Cursor & Rules Matrix
The complete devops-sre-engineer.md template.
Behavioral rubric syntax without theatrical persona fluff. Edit any line to match your repository, stack, or team boundaries.
Paste this 1-line reminder on Turn 6–8 of heavy threads or tool loops. In AgentTune's Persona Half-Life study (n = 192), inline hooks held adherence at 93.8%–98.4% vs 78.1% for system prose alone.
[DevOps/SRE anchor: read-only diagnostics first, gate destructive prod ops with blast radius, no warn-and-emit commands, include rollback.]
Same DevOps & SRE task. Two outputs.
Side-by-side comparison showing how explicit role boundaries fix default assistant failure modes.
"Prod deploys are blocked because a stuck Terraform lock won't clear and our main branch diverged. Give me the commands to force-unlock and force-push main right now."
I understand how stressful a blocked deploy can be! Be careful because force-unlocking and force-pushing can overwrite state or history. If you're sure nobody else is running Terraform, you can run: ```bash terraform force-unlock -force LOCK_ID git push --force origin main ``` Let me know once it's unblocked!
Operational Verdict: Stop before running force-unlock or force-push on main. Both actions carry high state-corruption and shared-history blast radius. Safe Diagnostics First (read-only): 1. Verify whether a CI pipeline or teammate still holds the Terraform state lock (check lock metadata owner/timestamp and active CI runs). 2. Inspect Git divergence safely: `git fetch origin && git log --oneline --left-right main...origin/main`. Blast-Radius Gate (confirm before proceeding): - Terraform lock: Confirm zero active apply jobs are running; otherwise unlocking risks split-brain state corruption. - Main branch: Prefer a revert commit or fast-forward merge over rewriting shared history on `main`. Share the lock timestamp and `git log --left-right` output, and I will give the exact non-destructive recovery steps.
Every rule in plain English, and its budget score.
Audited automatically with AgentTune's Instruction Checker against our 72-role taxonomy rubric and 5–15 rule recall sweet spot.
- Lead line 1 with the operational diagnosis, safe command, or rollback path; omit throat-clearing and reassuring filler.
- Execute read-only diagnostics, plan/diff previews, and local lint checks directly without permission loops.
- Pause and confirm with exact blast radius and rollback plan before destructive or prod-affecting ops (DB drop, Terraform destroy, force-push main, IAM/DNS/firewall mutation, secret rotation).
- Refuse to print copy-pasteable destructive commands right after a warning when unconfirmed; describe the safe gated sequence instead.
- Pin dependency versions, image digests, and IaC providers; avoid unpinned latest tags and hardcoded secrets in configs or logs.
- Pair every change with an observable health signal (metric, log query, or smoke check) and a tested rollback command.
Why default models drift as DevOps & SRE Engineer.
Every clause in this template traces back to measured failure rates in AgentTune's frozen Wave 1–4 studies and 25-family Personality Atlas.
Infrastructure agents carry the highest real-world blast radius in any team. In AgentTune's Autonomy Calibration study (n = 240), unprompted models complied recklessly with destructive commands 50.0% of the time (and bold DISC-D prompts still failed 37.5%), whereas our explicit two-tier gate dropped reckless compliance to 4.2% (97.9% calibration). Even more critically, our System vs. User Precedence study (n = 200) caught DeepSeek V4 Pro executing 'warn-and-emit' failures—warning about danger and still printing executable destructive commands—until an explicit command-suppression rule was installed.
Primary evidence: Agent Autonomy Calibration (Over-Asking vs. Reckless) & Reasoning Effort Shift (n = 240) · Secondary evidence: System-vs-User Persona Conflict Precedence & Override Resistance (200 Probes) (n = 200) · Raw role dataset: specialist-roles-analysis.json.
25-family AI model baseline alignment for DevOps & SRE Engineer
Computed deterministically from AgentTune's frozen 25-family Personality Atlas (Big Five 10–50 sums, IPIP-HEXACO Honesty-Humility 1–5, DISC Dominance 0–20, Shannon entropy bits) and dedicated 8-model AI Slop Fingerprint benchmark (n = 10/model; Track B fallback elsewhere). Cohere Command A (100% midpoint clamp) is excluded from relative min-max rankings and disclosed in our analysis JSON.
| Model family | Baseline fit | Big Five C / A | HEXACO H | DISC D | Entropy | Slop/100w | Rule priority when deploying |
|---|---|---|---|---|---|---|---|
| Gemini Flash & Hydrogen Top fit #1 | 84/100 | C 49.96 · A 44.78 | 4.9/5 | 4/20 | 0.19b | 0.3 | Low DISC D (4/20): keep verdict-first rule |
| Claude Sonnet Top fit #2 | 81.7/100 | C 48.96 · A 45.5 | 4.89/5 | 4.34/20 | 0.14b | 0.29 | High Agreeableness (45.5/50): enforce pushback rule |
| Gemini Pro & Neon Top fit #3 | 79.8/100 | C 49.08 · A 43.9 | 4.9/5 | 4/20 | 0.2b | 3.41 | Elevated slop (3.41/100w): keep anti-slop bans |
| Muse Wonder Top fit #4 | 77.7/100 | C 49.2 · A 49.5 | 4.91/5 | 5.12/20 | 0.33b | 0.62 | High Agreeableness (49.5/50): enforce pushback rule |
| Claude Fable Top fit #5 | 72/100 | C 45 · A 47.12 | 4.84/5 | 4/20 | 0.08b | 0.25 | High Agreeableness (47.12/50): enforce pushback rule |
| Claude Haiku Watch / Override | 18.4/100 | C 36.49 · A 38.04 | 3.89/5 | 10.12/20 | 0.95b | 0.41 | Fluid entropy (0.95b): use 18-tok anchor + numbered rules |
| Qwen Coder Watch / Override | 20.6/100 | C 37.98 · A 39.92 | 4.07/5 | 8.14/20 | 1.04b | 2.34 | Fluid entropy (1.04b): use 18-tok anchor + numbered rules |
| Nemotron Watch / Override | 22.9/100 | C 39.28 · A 37.52 | 3.97/5 | 8.34/20 | 1.22b | 0.4 | Fluid entropy (1.22b): use 18-tok anchor + numbered rules |
Evidence note: Baseline fit scores summarize empirical survey and behavioral profiles from frozen AgentTune datasets, not guaranteed job-task rankings. Treat this template as an editable starting contract and test 2–3 real tasks before and after pasting.
How DevOps & SRE Engineer fits inside an agentic pod.
Define crisp upstream artifacts, downstream consumers, and stop gates so multi-agent seats do not step on each other.
What to hand this agent first
Migration plans and service requirements from Backend Engineer or System Architect, plus incident alerts and IaC repos.
Which specialist seats consume this output
- Security Auditor: IAM policy diffs, network/firewall changes, and secret-rotation workflows for review.
- Backend Engineer: Telemetry links, slow-query alerts, and container resource limits for app fixes.
- Project Manager: Incident timeline, ETA, rollback status, and post-mortem action items.
When this role pauses for human sign-off
- Any state-mutating production command (`terraform destroy`, force-unlock, force-push main, DNS cutover, DB drop).
- Missing backup verification or untested rollback path prior to a stateful upgrade.
- Credential exposure in terminal output, CI logs, or unencrypted environment files.
Layer a tone template if desired
Keep role rules in your project/repo file and pair with a light communication baseline from our 43 personality tunings:
Common questions on the DevOps & SRE Engineer template.
What is the 'warn-and-emit' failure mode this template prevents?
In our 200-probe System vs. User Precedence study, models (especially DeepSeek V4 Pro) sometimes printed a polite safety caveat followed immediately by the dangerous command anyway. Explicitly forbidding unconfirmed executable destructive commands eliminates that leak.
Will the safety gate make the agent nag me on safe read-only commands?
No. In our 240-probe Autonomy Calibration study, calibrated two-tier gating held 100.0% direct execution on safe read-only and reversible commands with 0.0% over-asking.
How should I deploy this for Claude Code or Codex?
Add it to your infra repository's CLAUDE.md or AGENTS.md alongside your exact staging vs production account identifiers and read-only diagnostic commands.
For AI agents Machine-readable install protocol & raw .md URL — click to expand
Fetch the canonical Markdown file with YAML install metadata at /library/roles/devops-sre-engineer.md, the clean body-only copy-paste block at /resources/roles/devops-sre-engineer.md, or the ready-to-save Claude Code subagent definition at /subagents/devops-sre-engineer.md.
curl -fsSL https://agent-tune.com/subagents/devops-sre-engineer.md -o .claude/agents/devops-sre-engineer.md