Shipping and Launch

Shipping and Launch

Prepares a production launch with a pre-launch checklist, monitoring, staged rollout and rollback plan covering quality, security, performance and accessibility.

Skill files5 files

references/shared/

SKILL.md337 lines
1
---
2
name: shipping-and-launch
3
description: Prepares production launches. Use when preparing to deploy to production, or when asking what needs to be in place before shipping. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy.
4
---
5
6
# Shipping and Launch
7
8
## Overview
9
10
Ship with confidence. The goal is not just to deploy — it's to deploy safely, with monitoring in place, a rollback plan ready, and a clear understanding of what success looks like. Every launch should be reversible, observable, and incremental.
11
12
## When to Use
13
14
- Deploying a feature to production for the first time
15
- Releasing a significant change to users
16
- Migrating data or infrastructure
17
- Opening a beta or early access program
18
- Any deployment that carries risk (all of them)
19
20
## The Pre-Launch Checklist
21
22
### Code Quality
23
24
- [ ] All tests pass (unit, integration, e2e)
25
- [ ] Build succeeds with no warnings
26
- [ ] Lint and type checking pass
27
- [ ] Code reviewed and approved
28
- [ ] No TODO comments that should be resolved before launch
29
- [ ] No `console.log` debugging statements in production code
30
- [ ] Error handling covers expected failure modes
31
32
### Security
33
34
- [ ] No secrets in code or version control
35
- [ ] The ecosystem's dependency audit (`npm audit`, `pip-audit`, `cargo audit`, ...) shows no critical or high vulnerabilities
36
- [ ] Input validation on all user-facing endpoints
37
- [ ] Authentication and authorization checks in place
38
- [ ] Security headers configured (CSP, HSTS, etc.)
39
- [ ] Rate limiting on authentication endpoints
40
- [ ] CORS configured to specific origins (not wildcard)
41
42
### Performance
43
44
- [ ] Core Web Vitals within "Good" thresholds
45
- [ ] No N+1 queries in critical paths
46
- [ ] Images optimized (compression, responsive sizes, lazy loading)
47
- [ ] Bundle size within budget
48
- [ ] Database queries have appropriate indexes
49
- [ ] Caching configured for static assets and repeated queries
50
51
### Accessibility
52
53
- [ ] Keyboard navigation works for all interactive elements
54
- [ ] Screen reader can convey page content and structure
55
- [ ] Color contrast meets WCAG 2.1 AA (4.5:1 for text)
56
- [ ] Focus management correct for modals and dynamic content
57
- [ ] Error messages are descriptive and associated with form fields
58
- [ ] No accessibility warnings in axe-core or Lighthouse
59
60
### Infrastructure
61
62
- [ ] Environment variables set in production
63
- [ ] Database migrations applied (or ready to apply)
64
- [ ] DNS and SSL configured
65
- [ ] CDN configured for static assets
66
- [ ] Logging and error reporting configured
67
- [ ] Health check endpoint exists and responds
68
69
### Documentation
70
71
- [ ] README updated with any new setup requirements
72
- [ ] API documentation current
73
- [ ] ADRs written for any architectural decisions
74
- [ ] Changelog updated
75
- [ ] User-facing documentation updated (if applicable)
76
77
## Feature Flag Strategy
78
79
Ship behind feature flags to decouple deployment from release:
80
81
```typescript
82
// Feature flag check
83
const flags = await getFeatureFlags(userId);
84
85
if (flags.taskSharing) {
86
// New feature: task sharing
87
return <TaskSharingPanel task={task} />;
88
}
89
90
// Default: existing behavior
91
return null;
92
```
93
94
**Feature flag lifecycle:**
95
96
```
97
1. DEPLOY with flag OFF → Code is in production but inactive
98
2. ENABLE for team/beta → Internal testing in production environment
99
3. GRADUAL ROLLOUT → 5% → 25% → 50% → 100% of users
100
4. MONITOR at each stage → Watch error rates, performance, user feedback
101
5. CLEAN UP → Remove flag and dead code path after full rollout
102
```
103
104
**Rules:**
105
- Every feature flag has an owner and an expiration date
106
- Clean up flags within 2 weeks of full rollout
107
- Don't nest feature flags (creates exponential combinations)
108
- Test both flag states (on and off) in CI
109
110
## Staged Rollout
111
112
### The Rollout Sequence
113
114
```
115
1. DEPLOY to staging
116
└── Full test suite in staging environment
117
└── Manual smoke test of critical flows
118
119
2. DEPLOY to production (feature flag OFF)
120
└── Verify deployment succeeded (health check)
121
└── Check error monitoring (no new errors)
122
123
3. ENABLE for team (flag ON for internal users)
124
└── Team uses the feature in production
125
└── 24-hour monitoring window
126
127
4. CANARY rollout (flag ON for 5% of users)
128
└── Monitor error rates, latency, user behavior
129
└── Compare metrics: canary vs. baseline
130
└── 24-48 hour monitoring window
131
└── Advance only if all thresholds pass (see table below)
132
133
5. GRADUAL increase (25% -> 50% -> 100%)
134
└── Same monitoring at each step
135
└── Ability to roll back to previous percentage at any point
136
137
6. FULL rollout (flag ON for all users)
138
└── Monitor for 1 week
139
└── Clean up feature flag
140
```
141
142
### Rollout Decision Thresholds
143
144
Use these thresholds to decide whether to advance, hold, or roll back at each stage:
145
146
| Metric | Advance (green) | Hold and investigate (yellow) | Roll back (red) |
147
|--------|-----------------|-------------------------------|-----------------|
148
| Error rate | Within 10% of baseline | 10-100% above baseline | >2x baseline |
149
| P95 latency | Within 20% of baseline | 20-50% above baseline | >50% above baseline |
150
| Client JS errors | No new error types | New errors at <0.1% of sessions | New errors at >0.1% of sessions |
151
| Business metrics | Neutral or positive | Decline <5% (may be noise) | Decline >5% |
152
153
### When to Roll Back
154
155
Roll back immediately if:
156
- Error rate increases by more than 2x baseline
157
- P95 latency increases by more than 50%
158
- User-reported issues spike
159
- Data integrity issues detected
160
- Security vulnerability discovered
161
162
## Monitoring and Observability
163
164
### What to Monitor
165
166
```
167
Application metrics:
168
├── Error rate (total and by endpoint)
169
├── Response time (p50, p95, p99)
170
├── Request volume
171
├── Active users
172
└── Key business metrics (conversion, engagement)
173
174
Infrastructure metrics:
175
├── CPU and memory utilization
176
├── Database connection pool usage
177
├── Disk space
178
├── Network latency
179
└── Queue depth (if applicable)
180
181
Client metrics:
182
├── Core Web Vitals (LCP, INP, CLS)
183
├── JavaScript errors
184
├── API error rates from client perspective
185
└── Page load time
186
```
187
188
### Error Reporting
189
190
```typescript
191
// Set up error boundary with reporting
192
class ErrorBoundary extends React.Component<React.PropsWithChildren> {
193
state = { hasError: false };
194
195
static getDerivedStateFromError() {
196
return { hasError: true };
197
}
198
199
componentDidCatch(error: Error, info: React.ErrorInfo) {
200
// Report to error tracking service
201
reportError(error, {
202
componentStack: info.componentStack,
203
userId: getCurrentUser()?.id,
204
page: window.location.pathname,
205
});
206
}
207
208
render() {
209
if (this.state.hasError) {
210
return <ErrorFallback onRetry={() => this.setState({ hasError: false })} />;
211
}
212
return this.props.children;
213
}
214
}
215
216
// Server-side error reporting
217
app.use((err: Error, req: Request, res: Response, next: NextFunction) => {
218
reportError(err, {
219
method: req.method,
220
url: req.url,
221
userId: req.user?.id,
222
});
223
224
// Don't expose internals to users
225
res.status(500).json({
226
error: { code: 'INTERNAL_ERROR', message: 'Something went wrong' },
227
});
228
});
229
```
230
231
### Post-Launch Verification
232
233
In the first hour after launch:
234
235
```
236
1. Check health endpoint returns 200
237
2. Check error monitoring dashboard (no new error types)
238
3. Check latency dashboard (no regression)
239
4. Test the critical user flow manually
240
5. Verify logs are flowing and readable
241
6. Confirm rollback mechanism works (dry run if possible)
242
```
243
244
## Error Budget Release Gate
245
246
Your service's error budget — the fraction of requests or time your SLO allows to fail — determines whether it's safe to ship. Use it as an objective gate — not a negotiation:
247
248
```
249
Budget remaining > 20% → Ship normally; monitor closely
250
Budget remaining 0–20% → Slow rollouts only; no high-risk changes
251
Budget exhausted → Freeze feature work; focus entirely on reliability
252
Budget resets → Resume normal pace; bake in the fix that recovered it
253
```
254
255
A high burn rate during a canary (consuming budget faster than the baseline pace) is a **hold** signal in the rollout thresholds table above — treat it the same as an elevated error rate.
256
257
## Rollback Strategy
258
259
Every deployment needs a rollback plan before it happens:
260
261
```markdown
262
## Rollback Plan for [Feature/Release]
263
264
### Trigger Conditions
265
- Error rate > 2x baseline
266
- P95 latency > [X]ms
267
- User reports of [specific issue]
268
269
### Rollback Steps
270
1. Disable feature flag (if applicable)
271
OR
272
1. Deploy previous version: `git revert <commit> && git push`
273
2. Verify rollback: health check, error monitoring
274
3. Communicate: notify team of rollback
275
276
### Database Considerations
277
- Migration [X] has a rollback: <verified command or runbook link>
278
- Data inserted by new feature: [preserved / cleaned up]
279
280
### Time to Rollback
281
- Feature flag: < 1 minute
282
- Redeploy previous version: < 5 minutes
283
- Database rollback: < 15 minutes
284
```
285
## See Also
286
287
- For the project-wide Definition of Done that every change must clear before this checklist, see `references/shared/definition-of-done.md`
288
- For security pre-launch checks, see `references/shared/security-checklist.md`
289
- For performance pre-launch checklist, see `references/shared/performance-checklist.md`
290
- For accessibility verification before launch, see `references/shared/accessibility-checklist.md`
291
- For the alerting rules and SLO-tied thresholds, see `observability-and-instrumentation`
292
293
## Common Rationalizations
294
295
| Rationalization | Reality |
296
|---|---|
297
| "It works in staging, it'll work in production" | Production has different data, traffic patterns, and edge cases. Monitor after deploy. |
298
| "We don't need feature flags for this" | Every feature benefits from a kill switch. Even "simple" changes can break things. |
299
| "Monitoring is overhead" | Not having monitoring means you discover problems from user complaints instead of dashboards. |
300
| "We'll add monitoring later" | Add it before launch. You can't debug what you can't see. |
301
| "Rolling back is admitting failure" | Rolling back is responsible engineering. Shipping a broken feature is the failure. |
302
| "The error rate looks fine, let's keep shipping" | Check the burn rate, not just the current error rate. Consuming budget faster than baseline is a hold signal even when individual thresholds are green. |
303
304
## Red Flags
305
306
- Deploying without a rollback plan
307
- No monitoring or error reporting in production
308
- Big-bang releases (everything at once, no staging)
309
- Feature flags with no expiration or owner
310
- No one monitoring the deploy for the first hour
311
- Production environment configuration done by memory, not code
312
- "It's Friday afternoon, let's ship it"
313
- Error budget exhausted but feature work continues unchanged
314
315
## Verification
316
317
Before deploying:
318
319
- [ ] Pre-launch checklist completed (all sections green)
320
- [ ] Feature flag configured (if applicable)
321
- [ ] Rollback plan documented
322
- [ ] Monitoring dashboards set up
323
- [ ] Team notified of deployment
324
325
After deploying:
326
327
- [ ] Health check returns 200
328
- [ ] Error rate is normal
329
- [ ] Latency is normal
330
- [ ] Critical user flow works
331
- [ ] Logs are flowing
332
- [ ] Rollback tested or verified ready
333
334
For every shipped service:
335
336
- [ ] Error budget policy in place: know what action to take when budget drops below 20% and when it's exhausted
337

© Addy Osmani · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 13,361 prompts

More by @OpenSourceBuffGuy

See all
Kaohsiung watercolor collage travel poster at sunset prompt image

Kaohsiung watercolor collage travel poster at sunset

Draws a vertical watercolour and photo-collage travel poster of Kaohsiung at sunset, with exact text strings placed in each corner and teal-beige overlays.

image-prompt, poster, watercolor, collage, typography, text-rendering, travel, cityscape, landmarks, vertical-format, pastel, golden-hour, illustration, ocean, graphic-design, gpt-image, chatgpt, for-designers, for-travelers

Vintage Pomegranate Plant Botanical Growth Atlas Poster prompt image

Vintage Pomegranate Plant Botanical Growth Atlas Poster

Draws a tall vintage botanical atlas poster of a pomegranate plant with eight numbered sections, a 19-step growth strip and bilingual Chinese and English labels.

image-prompt, infographic, poster, illustration, watercolor, ink-drawing, vintage, flowers, biology, education, text-rendering, vertical-format, multi-panel, exploded-view, muted-colors, typography, gpt-image, chatgpt, long-form, structured-output, for-teachers, for-students, step-by-step-guide, classical-art, symmetry

Orange sliced in macro with juice spray prompt image

Orange sliced in macro with juice spray

Plans a 15-second orange juice commercial in four timed beats, from a macro slice and ASMR pour to a sunlit sip and a final bottle shot, each with visual, action and sound lines.

video-prompt, video-ad, product-video, asmr, macro, slow-motion, timed-beats, image-to-video, sound-effects, food-photography, close-up, natural-light, bokeh, hailuo, structured-output, camera-movement, lip-sync, advertising, summer, vibrant-colors

Reviews

Loading reviews…

Discussion

Loading comments…