From workflow-skills
Methodology for safely changing infrastructure, CI/CD pipelines, Docker/Compose configuration, environment/secrets setup, and deployment rollout. Use when the user is modifying docker-compose.yml, Dockerfiles, GitHub Actions workflows, environment variables, deployment scripts, or asking about rollout strategy. Do NOT use for application code changes — use /plan + /tdd for those.
How this skill is triggered — by the user, by Claude, or both
Slash command
/workflow-skills:devopsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Infrastructure changes fail silently and often in production. Every change
Infrastructure changes fail silently and often in production. Every change must be tested locally before it can be trusted remotely. Rollback must be defined before rollout begins.
Apply the relevant sections for the type of change being made.
Before changing:
Verify after changing:
docker compose config # validate compose file syntax
docker compose build # confirm image builds cleanly
docker compose up -d # start all services
docker compose ps # confirm all services are healthy
docker compose logs --tail=50 # check for startup errors
Done when: all services reach healthy/running state with no errors in logs.
Rollback: git checkout -- docker-compose.yml and docker compose up -d.
Before changing:
Verify after changing:
act for GitHub Actions).Common failure modes:
| Failure | Check |
|---|---|
| Secret not found | Secret name in workflow matches repo settings exactly (case-sensitive) |
| Job skipped silently | if: condition too broad; add explicit failure step |
| Workflow runs on wrong branch | branches: filter too narrow or too wide |
| Build passes locally, fails CI | Missing env var or different runner OS |
Rules (always):
.env.example with key names and descriptions..env.example, document in README, confirm default if optional.Checklist for a new env var:
.env.example with a descriptive commentos.getenv() / config layer — not hardcodedOrder matters when migrations are involved:
1. Run schema migrations (migrations before new code sees the DB)
2. Deploy new application code
3. Verify health endpoint / smoke test
4. If failure: rollback code first, then downgrade the migration if safe
Zero-downtime checklist:
Rollback decision:
/plan to coordinate both./diagnose on the pipeline output./plan — coordinate infra + application changes together/diagnose — debug a failing CI/CD run or Docker startup failure/verify — confirm application tests pass after infra changenpx claudepluginhub rene404/workflow-skills --plugin workflow-skillsGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.