agentleFS
yeaight7yeaight7/agent-powerups/skills/deploy-pipeline-runbook/SKILL.md

deploy-pipeline-runbook

Skill6 starsChanged 4 months agoApache-2.0View on GitHub

Use when a release spans multiple systems or vendors, order of operations matters with rollback planned up front, or a failed step in one system could corrupt state in a downstream system.

The file

We split this skill into the rules it gives an agent

11 rules. About 0 are common, 11 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈11

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this exact format:

    line 39
  2. Distinctive:

    Run the approved action.

    line 52
  3. Distinctive:

    Verify the outcome before moving to the next step.

    line 53
  4. Distinctive:

    Stop immediately on any unexpected state or error.

    line 54
  5. Distinctive:

    Do not proceed past an approval checkpoint without an explicit affirmative response from the user.

    line 77
  6. Distinctive:

    Do not infer approval from silence, partial answers, or "looks good" statements — require a clear "yes".

    line 78
  7. Distinctive:

    Do not skip the dry-run step for systems that support it.

    line 79
  8. Distinctive:

    Do not perform rollback steps that were not defined in the pre-execution rollback plan.

    line 80
  9. Distinctive:

    Do not make assumptions about current system state — inspect it before each step.

    line 81
  10. Distinctive:

    Every approval checkpoint was acknowledged with an explicit user affirmative.

    line 85
  11. Distinctive:

    No step was executed without a prior outcome verification of the previous step.

    line 87

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Deploy Pipeline Runbook

This is a trust-sensitive runbook for multi-system deployments. Every write or promotion action requires explicit human approval.

When to Use

  • A release spans multiple systems or vendors (billing, database, app, notifications).
  • Order of operations matters and rollback must be planned before execution starts.
  • A failed step in one system could corrupt state in a downstream system.

Core Rules

  • Inspect current state before each external step.
  • Dry-run whenever the target system supports it.
  • Show side effects before asking for approval — never surprise.
  • Require explicit approval before every write, promotion, or announcement.
  • Define the rollback path before the first irreversible step.

Runbook Structure

1. Preparation

  • List every system touched.
  • State the exact intended change per system (e.g., "bump subscription plan from X to Y in billing API").
  • Confirm credentials, access paths, and required permissions.
  • Identify which steps are reversible and which are not.

2. Sequence the rollout

  1. Config or billing prerequisites.
  2. Schema migrations or data backfills.
  3. Application deploy or feature promotion.
  4. Smoke checks and health validation.
  5. Stakeholder notifications.

3. Approval checkpoint (required before every write)

Use this exact format:

NEXT ACTION: [exact command or API call]
SYSTEM: [target system / environment]
SIDE EFFECTS: [what changes, what is created, what is sent]
IRREVERSIBLE: yes/no — [why]
ROLLBACK: [exact steps to undo this if it fails]

Approve? (yes to proceed)

4. Execute one step at a time

  • Run the approved action.
  • Verify the outcome before moving to the next step.
  • Stop immediately on any unexpected state or error.

5. Closeout

COMPLETED: [timestamp]
CHANGES MADE: [summary of what changed per system]
FOLLOW-UP CHECKS: [monitoring, alerts, or manual verifications needed]
ROLLBACK STATUS: available / partially available / consumed

Rollback Plan Template

Define this before step 1 of execution:

IF [step N] fails:
  1. [immediate containment action]
  2. [system-specific undo command or API call]
  3. [verification that rollback succeeded]
  4. [notification to stakeholders]

Safety Constraints

  • Do not proceed past an approval checkpoint without an explicit affirmative response from the user.
  • Do not infer approval from silence, partial answers, or "looks good" statements — require a clear "yes".
  • Do not skip the dry-run step for systems that support it.
  • Do not perform rollback steps that were not defined in the pre-execution rollback plan.
  • Do not make assumptions about current system state — inspect it before each step.

Validation / Done Criteria

  • Rollback plan was defined and documented before the first irreversible step.
  • Every approval checkpoint was acknowledged with an explicit user affirmative.
  • Closeout block was produced: timestamp, per-system changes, follow-up checks, rollback status.
  • No step was executed without a prior outcome verification of the previous step.

Typical Systems

  • Billing platforms (plan changes, entitlements)
  • Databases (migrations, backfills)
  • Application deploy targets (containers, serverless, CDN)
  • Messaging or incident channels (Slack, PagerDuty, email)

The specific vendor does not change the safety model.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.