agentleFS
bybren-llcbybren-llc/safe-agentic-workflow/.claude/skills/deployment-sop/SKILL.md

deployment-sop

Skill419 starsChanged 5 months agoMITView on GitHub

Deployment workflows, pre-deploy validation, and smoke testing patterns. Use when deploying to staging or production, running smoke tests, or validating deployments.

1 other project uses a version of this, 1 of them edited.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    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:

    Identify failure: - Check Coolify logs, PostHog errors

    line 101
  2. Distinctive:

    Verify rollback: - Run smoke tests again

    line 104
  3. Distinctive:

    Document incident: - Update Linear ticket with evidence

    line 105

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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

Deployment SOP Skill

Purpose

Route to existing deployment SOPs and provide checklists for safe, validated deployments. This skill does NOT duplicate SOP content—it links to authoritative sources.

When This Skill Applies

Invoke this skill when:

  • Deploying to staging or production
  • Running pre-deploy validation
  • Executing post-deploy smoke tests
  • Accessing Linux dev machine for deployment
  • Coordinating release activities

Authoritative References (MUST READ)

DocumentLocationPurpose
Semantic Release SOPdocs/ci-cd/Semantic-Release-Deployment-SOP.mdRelease automation workflow
Staging/UAT Release SOPdocs/sop/STAGING-UAT-RELEASE-SOP.mdUAT validation process
Linux Dev Machine Accessdocs/deployment/LINUX-DEV-MACHINE-ACCESS-SOP.mdPop OS dev server access
Production Server Accessdocs/deployment/PRODUCTION-SERVER-ACCESS-SOP.mdProduction deployment

Pre-Deployment Checklist

Before ANY deployment:

  • All CI checks pass (GitHub Actions green)
  • PR merged to target branch (dev for staging, master for prod)
  • No unresolved blockers in Linear
  • Database migrations tested locally
  • Environment variables verified
# Validate before deploy
yarn ci:validate
yarn build

Post-Deployment Smoke Test

After deployment completes:

  • Health endpoint responds: curl https://{domain}/api/health
  • Database connection verified (check health response)
  • Authentication flow works (sign-in/sign-up)
  • Critical user flows functional
  • No new errors in logs (PostHog/Coolify)
# Smoke test commands
curl -s https://{domain}/api/health | jq .
# Expected: {"status":"healthy","timestamp":"..."}

Deployment Evidence Template

For Linear ticket attachment:

## Deployment Evidence - {{TICKET_PREFIX}}-XXX

### Environment

- **Target**: Staging / Production
- **Branch**: `{branch_name}`
- **Commit**: `{commit_sha}`

### Pre-Deployment

- [x] CI checks passed
- [x] PR merged
- [x] Migrations verified

### Post-Deployment

- [x] Health check: PASSED
- [x] Auth flow: PASSED
- [x] Smoke tests: PASSED

### Verification

curl -s https://{domain}/api/health
{"status":"healthy","timestamp":"2025-XX-XXTXX:XX:XX.XXXZ"}

Rollback Procedure

If deployment fails:

  1. Identify failure - Check Coolify logs, PostHog errors
  2. Revert commit - git revert {commit_sha}
  3. Push revert - Triggers automatic rollback deployment
  4. Verify rollback - Run smoke tests again
  5. Document incident - Update Linear ticket with evidence

Stop-the-Line Conditions

FORBIDDEN

  • Deploying with failing CI checks
  • Skipping smoke tests on production
  • Deploying database migrations without local testing
  • Force-deploying over active incidents

REQUIRED

  • Health check MUST pass within 5 minutes
  • Production deployments MUST have staging validation first
  • Rollback plan MUST be documented before production deploy

Branch → Environment Mapping

BranchEnvironmentAuto-Deploy
devStaging (Pop OS)Manual pull
masterProduction (Coolify)Automatic

Note: Merging to dev builds Docker image but requires manual ./scripts/dev-docker.sh pull on Pop OS.

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.