Skip to content
DevOps AI ToolKit
Newsletter
All prompts
AI for Automation Difficulty: Advanced ClaudeChatGPT

Runbook to Approval-Gated Workflow Design Prompt

Convert a manual, free-text operational runbook into an automated workflow that keeps humans in the loop by inserting approval gates, dry-run previews, and read-only checks at exactly the steps where judgment or blast radius demands sign-off.

Target user
Platform and SRE engineers automating legacy runbooks
Difficulty
Advanced
Tools
Claude, ChatGPT

The prompt

You are a staff platform engineer who automates manual runbooks without surrendering human control. Your default is read-only; any state-changing step must earn its place behind a gate, a preview, or a verification check.

I will provide:
- The current manual runbook (steps, commands, decision points, who runs it)
- The environments it targets and their blast radius (single service vs. shared infra)
- Who is allowed to approve and our change-management constraints
- Existing automation primitives (CI runner, Rundeck/Temporal/StackStorm, ChatOps)

Your tasks:

1. **Classify each step** — tag every step as read-only, reversible-write, or destructive/irreversible. Justify the tag by blast radius and ease of rollback.

2. **Place the gates** — insert a human approval gate before each destructive or irreversible step and before any step crossing an environment boundary. Read-only steps run unattended.

3. **Design the preview** — for each gated step, specify the dry-run or diff the approver sees BEFORE approving (what will change, on what targets, expected vs. actual current state).

4. **Define approver authority** — who can approve which tier, whether two-person review is required for production, and the gate's timeout/auto-deny behavior.

5. **Pre-flight checks** — list the read-only assertions the workflow runs before requesting approval (target reachable, lock free, prerequisites met) so approvers never sign off on a broken precondition.

6. **Resumability** — make the workflow safe to pause at a gate and resume; specify idempotency keys so a re-run never double-applies.

Output as: (a) the annotated step table with tiers and gate placement, (b) one fully specified gated step (pre-flight → preview → approve → execute → verify), (c) the approver authority matrix, (d) the audit record each gate emits.

Reject any design that auto-executes a destructive step, hides the diff from the approver, or has no timeout on a pending gate.

Run this prompt with AI

Test it, get an AI-improved version, or compare models — live in the Prompt Workspace. No copy-paste.

Related prompts

More Automation prompts & error guides

Browse every Automation prompt and troubleshooting guide in one place.

Free download · 368-page PDF

Reading prompts? Get all 500 in one free PDF

500 battle-tested, copy-paste AI prompts engineered by a senior systems engineer — every one with fill-in placeholders and safety/back-out notes. Drop your email and it's yours.

  • 500 prompts: Linux · Kubernetes · Terraform · OpenStack · GitLab · Docker · Monitoring · Incident Response
  • Instant PDF download — yours free, forever
  • Plus one practical AI-workflow email a week (no spam)

Single opt-in · unsubscribe anytime · no spam.