/polymath-devops:env-promotionfrom polymath-devops
Design env-promotion (dev → staging → prod) — one artifact promoted, env-specific config injected, gates between stages, rollback path.
Ships in polymath-devops. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Promote the same artifact through environments rather than rebuilding per env. Pin the gates between stages.
Mode: analytical — judgment inside a fixed frame. Keep the output shape; every verdict cites its evidence; unknowns are marked [TBD] or [VERIFY], never filled in.
[VERIFY: approver]).image@sha256:…), not by tag — a tag can be re-pointed between stages.polymath-backend:migration-plan); a migration the previous version can't run against is a rollback blocker, so call it out per release.Env promotion: refund-service
Artifact: container image `refund:${git_sha}` pushed once from main;
promoted by digest (refund@sha256:…), never re-tagged per env.
Stages:
dev → auto-deploy on merge to main
gate: nothing (fast feedback)
staging → auto-deploy when dev has been running ≥ 10m with no error
gate: integration suite pass, traffic-replay smoke pass
prod → manual trigger from staging
gate (canary): 10% traffic for 30m;
abort if burn rate > 14× over 1h window
gate (full): error rate within 1% of canary baseline
for 30m; manual ack required
Config:
envs/dev.yaml, envs/staging.yaml, envs/prod.yaml in repo.
Secrets injected at deploy time from AWS Secrets Manager by name.
Rollback:
deploy prior image tag (we keep last 10). Documented at runbook X.
Observability:
Single Grafana dashboard with `env` filter. Alerts: dev → silenced,
staging → #staging-alerts, prod → PagerDuty.
kubectl apply to prod with the local config that "shouldn't differ".What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub mohammadbafkar/polymath --plugin polymath-devops5 skills in this plugin
/audit-composeAudit docker-compose.yaml — image pinning, named volumes, networks, secret injection, depends_on health-conditioning./audit-dockerfileAudit a Dockerfile for base-image hygiene, layer order, multi-stage discipline, secret leakage, and missing healthcheck/USER directives./ci-pipeline-githubAuthor a GitHub Actions workflow — lint/test/build/deploy with caching, concurrency control, OIDC for cloud auth, minimal permissions.Other plugins' skills for the same job