/golive:deployfrom Go-live
Gets the app running on each app server (staging first, then prod) - a read-only deploy key, the repo cloned into /srv/app, a server-side .env with APP_ENV, APP_TAG, COMPOSE_FILE and generated secrets that never pass through the chat, per-environment compose overrides with memory limits, the pull-deploy systemd unit, and a first start with no public ports except the reverse proxy. Use for the deploy go-live step, or when the user says "uygulamayı sunucuya kur", "deploy et", "repo'yu sunucuya çek", "docker compose ile ayağa kaldır", "staging'i kur".
Ships in Go-live. 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.
Talk to the user in the language they use. Values from .claude/golive.yaml; run this per app server, staging first, then prod, and record steps.deploy.envs.<env>. Each server is servers.<name> (role app); <name> and <ipv4> below come from there. Every server command: ssh -i <key> -o IdentitiesOnly=yes -p <ssh_port> <deploy_user>@<ipv4> '…'.
gh repo view or the GitHub MCP). If not, offer to create a private one (gh repo create <name> --private --source . --push); ask first.compose.yaml); note it in server_defaults.compose_file. Service names assumed by the templates: api, web, worker, migrate (rename or delete in the overrides to match).${CLAUDE_PLUGIN_ROOT}/templates/compose.staging.yaml and compose.prod.yaml into the repo root and adapt them (service names, memory limits). Staging adds its own db; prod has none (dedicated DB server). Keep db out of the base file, or give it profiles: ["staging"].${APP_TAG} (e.g. ghcr.io/<owner>/<repo>-web:${APP_TAG}); APP_TAG is staging or prod.migrate service in the base file (same image as api, command = the migration command, restart: "no"); the pull unit runs docker compose run --rm migrate before up when it exists.ports: except the reverse proxy; restart: unless-stopped; memory limits (mem_limit) so one container cannot trigger the OOM killer (sum under about 75% of RAM)..gitignore has .env and certs/; .env.example lists every variable, empty.ssh-keygen -t ed25519 -N "" -C "<name> deploy" -f ~/.ssh/deploy_key, print the .pub.gh repo deploy-key add <file> --title "<name>" (with the user's yes), else the user adds it in GitHub Settings -> Deploy keys.~/.ssh/config: Host github.com with IdentityFile ~/.ssh/deploy_key, IdentitiesOnly yes; test with ssh -o StrictHostKeyChecking=accept-new -T [email protected].Clone first: git clone [email protected]:<owner>/<repo>.git /srv/app (cloud-init left it empty; creating .env before the clone makes git refuse).
Only then write /srv/app/.env (chmod 600) from .env.example, adding APP_ENV, APP_TAG, COMPOSE_FILE, and generating secrets in the same command so values never reach the chat:
cd /srv/app && cp .env.example .env && chmod 600 .env && \
PW=$(openssl rand -hex 24) && \
printf 'APP_ENV=<env>\nAPP_TAG=<env>\nCOMPOSE_FILE=compose.yaml:compose.<env>.yaml\nPOSTGRES_PASSWORD=%s\n' "$PW" >> .env && \
sed -i "s|^DATABASE_URL=.*|DATABASE_URL=postgresql://app:${PW}@db:5432/app|" .env
Staging uses db:5432. Prod has no local DB: POSTGRES_PASSWORD and DATABASE_URL are written by the database skill when the DB server exists (private IP); until then leave them out. Edit duplicates (sed on existing keys) instead of appending twice.
Values only the user has (third-party keys): list the names; they fill them in over SSH. Mail settings come in app_config.
The .env holds every generated secret: the database skill backs it up offsite (restic); tell the user it is not in git.
Install on the server (replace __DEPLOY_USER__): ${CLAUDE_PLUGIN_ROOT}/templates/systemd/golive-pull.sh -> /usr/local/bin/golive-pull (0755); golive-pull.service and golive-pull.timer -> /etc/systemd/system/; sudo systemctl daemon-reload && sudo systemctl enable --now golive-pull.timer. The unit follows the git tag golive-$APP_ENV, which only release.yml creates and moves, runs migrations, up -d --remove-orphans, prunes images and writes the PullFailed heartbeat. Until that tag exists the unit finds nothing to deploy (expected).
The tag does not exist before the first release, so start the stack once by hand from the checked-out commit, and tell the user that is why: cd /srv/app && docker compose pull || true; docker compose up -d --build, then docker compose ps (running/healthy) and docker compose logs --tail 50. Check the app answers inside the network (e.g. docker compose exec -T web wget -qO- http://localhost:3000/ | head -c 200). After the first release run the pull unit takes over.
Same-server layout (environments.layout: same-server): two stacks on one box, /srv/app-staging (APP_ENV=staging) and /srv/app (prod), each with its own clone, .env, COMPOSE_PROJECT_NAME=<project>-staging / <project>-prod in .env (different project names so volumes and networks do not collide), and its own pull unit instance (WorkingDirectory/EnvironmentFile/GOLIVE_DIR pointing at the staging path). One Caddy fronts both (tls skill). Mind the memory sum of both stacks.
The site is not public yet: tls adds Caddy, dns_records points the domain here. Set steps.deploy.envs.<env>: done with the commit that runs.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub icaglar/golive --plugin golive20 skills in this plugin
/auditRuns deterministic go-live checks against a live domain - nameservers, A/AAAA/www, MX, SPF (one record, no +all), DKIM, DMARC policy and reports, PTR, HTTPS reachability, HTTP→HTTPS redirect, HSTS, security headers, TLS certificate expiry, robots.txt, sitemap, security.txt - and maps every failure to the golive skill that fixes it. Use when the user asks to check, audit or verify a domain or a go-live, or says "domain'i kontrol et", "mail ayarları doğru mu", "SPF DKIM DMARC kontrol", "canlı kontrol listesi"./clusterBuilds the Kubernetes cluster - k3s on Hetzner with hetzner-k3s or kube-hetzner, managed Kubernetes (DOKS, LKE, EKS, Kapsule) or k3s over SSH with k3sup on other providers - then staging and prod namespaces, an ingress behind a load balancer, TLS (Cloudflare Origin CA secret, or cert-manager with Let's Encrypt without Cloudflare), the Kustomize tree and Flux for pull-based GitOps deploys. Use for the cluster go-live step, or when the user says "k3s kur", "kubernetes cluster", "hetzner-k3s", "kube-hetzner", "k8s ortamı", "managed kubernetes".Other plugins' skills for the same job
/databaseSets up the app's database per environment - PostgreSQL (recommended) or MySQL - as a container for staging, on a dedicated server with a volume, private network and streaming replica for prod, encrypted backups with an offsite copy, or with an operator (CloudNativePG, MySQL/Percona operator) on k3s - plus point-in-time backups to object storage, a tested restore, migrations and manual failover. Use for the database go-live step, or when the user says "veritabanı kur", "PostgreSQL kur", "MySQL kur", "replica", "DB cluster", "yedekli veritabanı", "failover".