File contents Skill: Deploy Runbook
Activation : #file:_superml/skills/7-release/deploy-runbook/SKILL.md
Purpose
Create a step-by-step deployment runbook that any engineer can follow to deploy the release safely. Must include a validated rollback plan.
Inputs
Load before starting:
Release checklist: {output_path}/release/release-checklist.md
Architecture doc: {output_path}/planning/architecture.md
Deployment reference in _superml/reference/release/
Deliverable
{output_path}/release/deploy-runbook.md
Deploy Runbook Structure
# Deploy Runbook — {project_name} v{version}
**Date**: {date}
**Release Manager**: {release_name}
**Estimated deployment duration**: {N} minutes
**Rollback duration**: {N} minutes
---
## Pre-Deployment Checklist
Run immediately before starting:
- [ ] Release checklist approved (GO decision)
- [ ] On-call engineer standing by
- [ ] Rollback procedure reviewed
- [ ] Maintenance window communicated (if applicable)
---
## Deployment Steps
### Phase 1: Preparation
| Step | Action | Command / Link | Owner | Expected Result |
|------|--------|----------------|-------|----------------|
| 1.1 | Take database backup | `{command}` | DevOps | Backup confirmed |
| 1.2 | Check environment health | `{command}` | DevOps | All services green |
### Phase 2: Deploy
| Step | Action | Command / Link | Owner | Expected Result |
|------|--------|----------------|-------|----------------|
| 2.1 | Deploy release tag | `{command}` | DevOps | Deployment complete |
| 2.2 | Run database migrations | `{command}` | DevOps | Migrations applied |
| 2.3 | Restart services | `{command}` | DevOps | Services healthy |
### Phase 3: Smoke Tests
| Step | Test | URL / Command | Expected Result |
|------|------|---------------|-----------------|
| 3.1 | Health check | `{url}/health` | 200 OK |
| 3.2 | Core user flow | {describe} | Success |
### Phase 4: Post-Deploy Monitoring
- Watch error rate in {monitoring tool} for {N} minutes
- Confirm no alerts firing
- Check logs for unexpected errors
---
## Rollback Procedure
Trigger rollback if any rollback criteria from the Release Checklist are met.
| Step | Action | Command / Link | Expected Result |
|------|--------|----------------|----------------|
| R1 | Revert deployment | `{command}` | Previous version live |
| R2 | Restore database (if needed) | `{command}` | Data restored |
| R3 | Verify rollback | `{url}/health` | 200 OK on previous version |
| R4 | Notify stakeholders | Email / Slack | Team informed |
---
## Communication Plan
| Event | Who to notify | Channel | Template |
|-------|--------------|---------|---------|
| Deployment started | Engineering team | Slack #deployments | "Deploying v{version} now..." |
| Deployment complete | Stakeholders | Email | "v{version} is live" |
| Rollback triggered | All | Slack #incidents | "Rolling back v{version}..." |
---
## Sign-off
| Role | Name | Date |
|------|------|------|
| Release Manager | {release_name} | {date} |
Validation Checklist
Next Skill
After deployment complete → Release Notes (#file:_superml/skills/7-release/release-notes/SKILL.md)
1 --- 2 name: deploy-runbook 3 description: Skill: Deploy Runbook 4 --- 5 # Skill: Deploy Runbook 6 7 > **Activation**: `#file:_superml/skills/7-release/deploy-runbook/SKILL.md` 8 9 --- 10 11 ## Purpose 12 13 Create a step-by-step deployment runbook that any engineer can follow to deploy the release safely. Must include a validated rollback plan. 14 15 --- 16 17 ## Inputs 18 19 Load before starting: 20 - Release checklist: `{output_path}/release/release-checklist.md` 21 - Architecture doc: `{output_path}/planning/architecture.md` 22 - Deployment reference in `_superml/reference/release/` 23 24 --- 25 26 ## Deliverable 27 28 **`{output_path}/release/deploy-runbook.md`** 29 30 --- 31 32 ## Deploy Runbook Structure 33 34 ```markdown 35 # Deploy Runbook — {project_name} v{version} 36 37 **Date**: {date} 38 **Release Manager**: {release_name} 39 **Estimated deployment duration**: {N} minutes 40 **Rollback duration**: {N} minutes 41 42 --- 43 44 ## Pre-Deployment Checklist 45 46 Run immediately before starting: 47 - [ ] Release checklist approved (GO decision) 48 - [ ] On-call engineer standing by 49 - [ ] Rollback procedure reviewed 50 - [ ] Maintenance window communicated (if applicable) 51 52 --- 53 54 ## Deployment Steps 55 56 ### Phase 1: Preparation 57 | Step | Action | Command / Link | Owner | Expected Result | 58 |------|--------|----------------|-------|----------------| 59 | 1.1 | Take database backup | `{command}` | DevOps | Backup confirmed | 60 | 1.2 | Check environment health | `{command}` | DevOps | All services green | 61 62 ### Phase 2: Deploy 63 | Step | Action | Command / Link | Owner | Expected Result | 64 |------|--------|----------------|-------|----------------| 65 | 2.1 | Deploy release tag | `{command}` | DevOps | Deployment complete | 66 | 2.2 | Run database migrations | `{command}` | DevOps | Migrations applied | 67 | 2.3 | Restart services | `{command}` | DevOps | Services healthy | 68 69 ### Phase 3: Smoke Tests 70 | Step | Test | URL / Command | Expected Result | 71 |------|------|---------------|-----------------| 72 | 3.1 | Health check | `{url}/health` | 200 OK | 73 | 3.2 | Core user flow | {describe} | Success | 74 75 ### Phase 4: Post-Deploy Monitoring 76 - Watch error rate in {monitoring tool} for {N} minutes 77 - Confirm no alerts firing 78 - Check logs for unexpected errors 79 80 --- 81 82 ## Rollback Procedure 83 84 Trigger rollback if any rollback criteria from the Release Checklist are met. 85 86 | Step | Action | Command / Link | Expected Result | 87 |------|--------|----------------|----------------| 88 | R1 | Revert deployment | `{command}` | Previous version live | 89 | R2 | Restore database (if needed) | `{command}` | Data restored | 90 | R3 | Verify rollback | `{url}/health` | 200 OK on previous version | 91 | R4 | Notify stakeholders | Email / Slack | Team informed | 92 93 --- 94 95 ## Communication Plan 96 97 | Event | Who to notify | Channel | Template | 98 |-------|--------------|---------|---------| 99 | Deployment started | Engineering team | Slack #deployments | "Deploying v{version} now..." | 100 | Deployment complete | Stakeholders | Email | "v{version} is live" | 101 | Rollback triggered | All | Slack #incidents | "Rolling back v{version}..." | 102 103 --- 104 105 ## Sign-off 106 107 | Role | Name | Date | 108 |------|------|------| 109 | Release Manager | {release_name} | {date} | 110 ``` 111 112 --- 113 114 ## Validation Checklist 115 116 - [ ] All deployment steps have commands and expected results 117 - [ ] Rollback procedure is complete and tested (at least on staging) 118 - [ ] Rollback duration estimate is realistic 119 - [ ] Communication plan filled in 120 121 --- 122 123 ## Next Skill 124 125 After deployment complete → **Release Notes** (`#file:_superml/skills/7-release/release-notes/SKILL.md`)
gabrielmoreira/agent-skills-mirror/tree/main/mirrors/repos/superMLdev@smart-sdlc/skills/7-release/deploy-runbook commit cd0951262e
Frequently asked questions How do I install the Deploy Runbook skill? Run npx skillmds@latest add gabrielmoreira/deploy-runbook in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
What does the Deploy Runbook skill do? Skill: Deploy Runbook It is listed under DevOps & Infra on SkillMD.
Is Deploy Runbook safe to use? This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. Capability flags: docs only. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
Which AI agents work with Deploy Runbook? This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Is Deploy Runbook free to use? Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
Who published Deploy Runbook? gabrielmoreira (@gabrielmoreira) published this skill. Their other Agent Skills are listed on their SkillMD profile.