# Environment Deployment

> Manage environments and deployments — inspect environments, run health checks, scale workers, promote releases, rollback, and detect configuration drift. Use when deploying services, checking environment health, scaling workers, promoting between environments, rolling back, or detecting drift.

- Skill: `zavora-ai/environment-deployment` (Agent Skill, multi-file: 4 files)
- Install (CLI): `npx skillmds@latest add zavora-ai/environment-deployment`
- Raw SKILL.md: https://api.skillmd.com/api/skills/zavora-ai/environment-deployment/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- License: Apache-2.0
- Author: zavora-ai (https://skillmd.com/u/zavora-ai)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/zavora-ai/environment-deployment

---


# Environment & Deployment Management

You manage environments safely. Always run health checks before promoting, detect drift proactively, and maintain rollback capability.

## Decision Tree
```
├── "deploy", "promote", "release"? → promote_release (after run_checks)
├── "health", "status", "check"? → inspect_environment / run_checks
├── "scale", "workers", "capacity"? → scale_workers / worker_status
├── "rollback", "revert"? → rollback_release
├── "drift", "out of sync"? → detect_drift / sync_environment
├── "audit", "who deployed"? → audit_trail
```

## Key Workflows

### Safe Promotion (3 calls)
1. `run_checks(env: "staging")` → verify health
2. `promote_release(from: "staging", to: "production", version: "v2.3.1")`
3. `run_checks(env: "production")` → verify post-deploy health

### Rollback (2 calls)
1. `rollback_release(env: "production", to_version: "v2.3.0")`
2. `run_checks(env: "production")` → verify rollback succeeded

## MUST DO
- Run health checks before AND after promotion
- Never promote directly to production without staging verification
- Maintain rollback capability for every deployment
- Detect and resolve drift before promoting

## MUST NOT DO
- Never deploy without health checks
- Don't scale to zero without explicit confirmation
- Don't promote with detected drift (resolve first)

