/golive:databasefrom Go-live
Sets 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".
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. Read runtime and environments from .claude/golive.yaml. Anything that creates servers, volumes or buckets is billed: show what and ask first (the guard also asks). Passwords are generated where they are used (openssl rand -hex 24 inside the command) and never printed.
One AskUserQuestion form, best guess first:
DATABASE_URL scheme); otherwise PostgreSQL (recommended) / MySQL 8.4.profile.data_residency), encrypted, plus an offsite copy at a second provider / nightly dumps only.Record the answers under database: in the state file (engine, version, per-environment layout, hosts as private IPs or service names, backup target, where the passwords live).
Staging's database is the db service in compose.staging.yaml (copied by the deploy skill; postgres:16-alpine, named volume, healthcheck, no ports:). The deploy skill already generated POSTGRES_PASSWORD and DATABASE_URL in the server's .env; do not write .env here. For MySQL swap the image (mysql:8.4), healthcheck (mysqladmin ping) and data path in that override. Add the migrate service's depends_on: db if the app has one.
Costs: every DB server, volume and bucket is appended to costs: (step: database) with the monthly price shown to the user.
private_ip. Hetzner example: hcloud network create --name golive-net --ip-range <server_defaults.private_range>, hcloud network add-subnet golive-net --network-zone eu-central --type cloud --ip-range 10.0.0.0/24, hcloud server attach-to-network <server> --network golive-net. Other providers: ${CLAUDE_PLUGIN_ROOT}/skills/server/providers.md (private network row), else WireGuard. The database listens only on its private IP; the cloud firewall of DB servers opens only SSH from server_defaults.ssh_from.server skill (db-1 primary, db-2 replica; role db-primary / db-replica, env prod; memory-heavy or dedicated-vCPU types; no 80/443). The cloud-init (and bootstrap.sh on existing servers) already opens 5432/3306 from the private range with ufw. If a server is configured otherwise: sudo ufw allow from <private_range> to any port 5432 proto tcp. Data on a volume (create per providers.md; Hetzner: hcloud volume create --size <GB> --server db-1 --automount --format ext4) so it can grow and outlives a rebuild; point the data directory at it.listen_addresses = '<private ip>', shared_buffers about 25% of RAM, effective_cache_size about 70%, wal_level = replica, max_wal_senders = 10, plus the archiving settings of step 5. pg_hba.conf: the app user from the app server's private IP, replication from the replica's IP, scram-sha-256 only.replicator role with REPLICATION LOGIN (password generated on the primary, handed to the replica over SSH without printing); on db-2: pg_basebackup -h <primary ip> -U replicator -D <data dir> -R -X stream -C -S db2. Check SELECT client_addr, state, replay_lag FROM pg_stat_replication; on the primary.gtid_mode=ON, enforce_gtid_consistency=ON, bind_address=<private ip>, unique server_id; seed the replica (clone plugin or dump), then CHANGE REPLICATION SOURCE TO SOURCE_HOST='<primary ip>', SOURCE_USER='repl', SOURCE_PASSWORD=…, SOURCE_AUTO_POSITION=1; START REPLICA; and check SHOW REPLICA STATUS. Backups: step 5 MySQL line.POSTGRES_PASSWORD/DATABASE_URL into /srv/app/.env pointing at the primary's private IP (password generated on the DB server and passed over SSH without printing; build the URL in the same command). Then restart the stack. A read-only connection to the replica only if the app is written for it.helm repo add cnpg https://cloudnative-pg.github.io/charts && helm upgrade --install cnpg cnpg/cloudnative-pg -n cnpg-system --create-namespace. A Cluster per namespace: instances: 1 in staging, instances: 3 in prod (one primary, two streaming replicas, automatic failover), storage on the provider's CSI storage class, sized from the user's answer. The operator creates the app secret (<cluster>-app) and services <cluster>-rw (primary) and <cluster>-ro (replicas); the app reads DATABASE_URL from that secret. Backups: CNPG's object-store backups (Barman Cloud) to an encrypted bucket plus a ScheduledBackup, and the second-provider copy where possible; follow the CNPG docs for the installed version, the backup configuration changed across releases.deploy/k8s/overlays/<env> so Flux owns them.Templates are in ${CLAUDE_PLUGIN_ROOT}/templates/backup/; read their header comments. Choose the bucket's provider and region from profile.data_residency; buckets are billable (append to costs:). A bucket creation prompts for confirmation.
pgbackrest.conf to /etc/pgbackrest/pgbackrest.conf (0640 root:postgres). Generate the cipher passphrase on the server (openssl rand -base64 32, substituted into the file in the same command, never printed); the owner escrows it in their password manager (without it backups cannot be restored: ask them to confirm). Set archive_mode=on and the archive_command from the template, stanza-create, check. Enable bucket Object Lock where the provider supports it (check the provider docs).database.offsite): uncomment the repo2-* block with another provider/account and its own cipher pass, so one suspended or compromised account does not take every copy.golive-backup.sh to /usr/local/sbin/, golive-backup.service and .timer to /etc/systemd/system/, enable the timer (02:30). It writes golive_backup_last_success_timestamp_seconds for the BackupTooOld alert, so /var/lib/node_exporter/textfile must exist.BACKUP_CMD in the service to Percona XtraBackup / mariadb-backup, or mysqldump --single-transaction --routines --events | restic backup --stdin; the same script writes the heartbeat..env (they hold every generated secret): restic with restic.env.example copied to /etc/golive/restic.env on each server that has such data (app servers too), a repository at another provider/account, repository password generated on the server and escrowed by the owner; add Environment=RESTIC_ENV_FILE=/etc/golive/restic.env to the backup unit. Never back up the .env anywhere unencrypted.database.restore_drill and the step note: that is your real recovery time.They run once per release, before the new app version takes traffic: the pull unit runs docker compose run --rm migrate when the compose file has a migrate service; on k8s a migrate Job (templates/k8s/migrate) that Flux applies before the app. Destructive changes go in two releases (expand, then contract) so a rollback keeps working. Take a backup or snapshot right before a migration that drops or rewrites data.
Write docs/runbook-db.md with the exact steps: stop writes, promote the replica (SELECT pg_promote(); on Postgres; STOP REPLICA; RESET REPLICA ALL; and turn off read-only on MySQL), point DATABASE_URL at it, restart the app, rebuild the old primary as the new replica. On k3s CloudNativePG fails over automatically; the runbook covers checking it. Promotion is guarded: the hook asks before it.
Never copy prod data into staging as is. Use seed scripts, or a dump passed through an anonymization step agreed with the user (data protection law: GDPR, KVKK, ...).
Set steps.database: done with engine, layout per environment, replica state, backup target and the restore drill result.
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"./deployGets 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"./dnsMoves a domain's DNS to Cloudflare (zone, registrar nameservers, wait until active) and manages records per environment - proxied A/AAAA for apex, www, staging and grafana, DNS-only mail records, cleanup of conflicting records, Cloudflare Access for staging and Grafana - or does the same at another DNS provider with lowered TTLs and basic auth. Use for the nameservers and dns_records go-live steps, or when the user says "DNS ayarla", "Cloudflare'e taşı", "nameserver değiştir", "A kaydı ekle", "domaini sunucuya bağla", "cutover"./domainFinds, prices and buys a domain at the registrar the user chooses - Porkbun or Namecheap through their MCPs, Cloudflare Registrar, GoDaddy's API, a Turkish registrar for .com.tr, or any other registrar through its panel - with a dry run or checkout link and explicit confirmation before paying, then turns on auto-renew, WHOIS privacy and transfer lock. Use when the user wants to buy, register or check a domain, or says "domain al", "alan adı al", "domain boşta mı", "domain fiyatı", "Namecheap", "GoDaddy", "Natro"./environmentsDecides with the user how the app runs - environments layout (separate staging server, staging on the same server, or prod only), runtime (Docker Compose, k3s with hetzner-k3s or kube-hetzner, managed Kubernetes, or k3sup on any VPS), staging protection and mail sandbox - and records it, plus the servers to create, in .claude/golive.yaml so the server, cluster, deploy and workflow steps follow it. Use for the environments go-live step, or when the user says "staging ortamı kur", "staging ve prod", "k3s mi compose mu", "kubernetes kuralım", "ortamları ayarla".Other plugins' skills for the same job