agentleFS
juandelossantosjuandelossantos/another-agent-skills/skills/shipping-and-launch/SKILL.md

shipping-and-launch

Skill1 starsChanged 11 days agoMITView on GitHub

Prepare production launches with checklists, monitoring, staged rollout, and rollback strategies. Use before any significant deployment. Do NOT use for local development.

  • Commits and pushes

We split this skill into the rules it gives an agent

4 rules. 2 are common, 2 are distinctive, and 0 are very specific to this project.

  • 2

    Common

    Most of the 56 edited versions we read keep these.

  • 2

    Distinctive

    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:

    Rules: Every flag has an owner and expiration.

    line 79
  2. Common:

    Every deployment needs one before it happens:

    line 126
  3. Distinctive:

    Rule: If you can't verify against the real world, say so.

    line 147
  4. Common:

    No monitoring or error reporting in production

    line 161

“Common” is measured: kept by at least 6 in 10 of the 56 edited versions of this file we could read. “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

Shipping and Launch

Ship with confidence. Deploy safely: monitoring in place, rollback plan ready, clear success criteria. Every launch should be reversible, observable, and incremental.

When to Use

  • Deploying a feature to production for the first time
  • Releasing a significant change to users
  • Migrating data or infrastructure
  • Any deployment that carries risk (all of them)

When NOT to Use

  • Local development or prototyping
  • Pre-production CI/CD setup (use ci-cd-and-automation)

Output Contract

ArtifactFormatLocationQuality Criteria
Launch plan + monitoring + rollbackMarkdown checklist + monitoring dashboard config + rollback procedure docProject docs + monitoring/ or dashboardPre-launch checklist complete (code quality, security, performance, infrastructure), feature flags with owner and expiration, staged rollout with canary/gradual steps, rollout thresholds defined (error rate ≤2x baseline, P95 within 50% of baseline), monitoring covers Four Golden Signals (latency, traffic, errors, saturation), rollback plan with trigger/steps/timing, post-launch verification completed, TOOL_GAP reported if production unreachable

→ See guides/CHECKLIST-GUIDE.md for the complete launch checklist. → See guides/ROLLBACK-GUIDE.md for rollback procedures and decision matrix.

Pre-Launch Checklist

Code Quality

  • All tests pass (unit, integration, e2e)
  • Build succeeds with no warnings
  • Lint and type checking pass
  • Code reviewed and approved
  • Error handling covers expected failure modes

Security

  • No secrets in code or version control
  • Input validation on all user-facing endpoints
  • Auth and authorization checks in place
  • Security headers configured (CSP, HSTS, etc.)
  • CORS configured to specific origins (not wildcard)

Performance

  • Core Web Vitals within "Good" thresholds
  • No N+1 queries in critical paths
  • Bundle size within budget
  • Caching configured for static assets

Infrastructure

  • Environment variables set in production
  • Database migrations applied
  • Logging and error reporting configured
  • Health check endpoint exists and responds

Feature Flags

Ship behind feature flags to decouple deployment from release:

1. DEPLOY with flag OFF     → Code in production but inactive
2. ENABLE for team/beta     → Internal testing in production
3. GRADUAL ROLLOUT          → 5% → 25% → 50% → 100%
4. MONITOR at each stage    → Watch error rates, performance
5. CLEAN UP                 → Remove flag after full rollout

Rules: Every flag has an owner and expiration. Don't nest flags. Test both states in CI.

Staged Rollout

1. DEPLOY to staging → full test suite + manual smoke test
2. DEPLOY to production (flag OFF) → verify health check
3. ENABLE for team → 24-hour monitoring window
4. CANARY (5%) → compare metrics vs baseline, 24-48h
5. GRADUAL (25% → 50% → 100%) → same monitoring each step
6. FULL rollout → monitor 1 week → clean up flag

Rollout Thresholds

MetricAdvanceHoldRoll back
Error rateWithin 10% of baseline10-100% above>2x baseline
P95 latencyWithin 20% of baseline20-50% above>50% above
Client JS errorsNo new typesNew at <0.1% sessionsNew at >0.1% sessions

When to Roll Back

Roll back immediately if: error rate >2x baseline, P95 latency >50% increase, user-reported spikes, data integrity issues, or security vulnerability discovered.

Monitoring

Per Google SRE Four Golden Signals, monitor these dimensions:

Latency:   response time (p50/p95/p99), health check endpoint
Traffic:   request volume, active users, concurrent sessions
Errors:    error rate (HTTP 5xx, client JS errors), failed requests
Saturation: CPU/memory utilization, DB connection pool, disk, network

Post-Launch Verification (First Hour)

  1. Health endpoint returns 200
  2. Error monitoring: no new error types
  3. Latency dashboard: no regression
  4. Critical user flow works manually
  5. Logs flowing and readable
  6. Rollback mechanism ready

Rollback Plan

Every deployment needs one before it happens:

  • Trigger: Error rate >2x, P95 >[X]ms, user reports, data issues
  • Steps: Disable flag OR git revert <commit> && git push → verify → notify team
  • Timing: Flag <1min, redeploy <5min, DB rollback <15min

TOOL_GAP: When You Can't Verify Deployment

Inspired by Sub-Zero Skill. After deployment, verification requires real-world access:

VerdictMeaningAction
✅ PASSHealth check 200, metrics normalProceed to next stage
❌ FAILHealth check fails, errors spikeRoll back per plan
⚠️ TOOL_GAPCan't reach production (no access, no network)STOP. Report "deploy status unknown." Never fake a win.

Examples:

  • "Deploy succeeded" but can't reach health endpoint → TOOL_GAP
  • "Metrics look good" but monitoring dashboard unavailable → TOOL_GAP
  • "Users can access" but no real-user monitoring → TOOL_GAP

Rule: If you can't verify against the real world, say so. The absence of errors is not evidence of success.

Common Rationalizations

RationalizationReality
"It works in staging, it'll work in production"Production has different data, traffic, edge cases. Monitor.
"We don't need feature flags"Every feature benefits from a kill switch.
"Monitoring is overhead"Not having it means discovering problems from user complaints.
"Rolling back is admitting failure"Shipping broken features is the failure.

Red Flags

  • Deploying without a rollback plan
  • No monitoring or error reporting in production
  • Big-bang releases (no staging, no canary)
  • Feature flags with no expiration or owner
  • "It's Friday afternoon, let's ship it"

Verification

Before deploying:

  • Pre-launch checklist completed
  • Rollback plan documented
  • Monitoring dashboards set up

After deploying:

  • Health check returns 200
  • Error rate is normal
  • Critical user flow works
  • TOOL_GAP check: can you actually verify the real world?

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.