/gws-setup
Zero-config bootstrap. Type /gws-setup inside Claude Code, GitHub Copilot CLI, Codex CLI, Cursor, or Amp and the agent will set up the GWS environment for the current project end-to-end.
When to use it
- You just cloned a repo and want to deploy it locally with one command
- You're starting a new project and want
gws.json+ Dockerfiles + K8s manifests generated for you - You want to add a sibling repo to an existing GWS project (multi-repo setup)
What it does
- Detects the project — calls
gws detect --jsonfor structured framework / port / dependency info, then refines by reading manifests, env files, and framework configs - Asks about multi-repo siblings — if you mention a sibling repo, the skill verifies all repos share a single parent directory (a hard GWS requirement) before merging them into one
gws.json - Generates artifacts — uses
gws generate-templateandgws generate-helm-valuesfor a known-good Dockerfile and K8s manifest per service, written under.gws/services/<svc>/ - Writes
gws.json— validates against the live JSON schema (viagws schema --json) before saving - Registers with the API — runs
gws config importso the project exists in the dashboard - Deploys — runs
gws up -y - Validates — health-checks each pod and HTTP-probes service URLs; iterates fixes (capped at 5 attempts) using
gws doctor --jsonfindings
Multi-repo requirement
GWS multi-repo projects require all repos under one parent directory (e.g. ~/myapp/{frontend,backend,workers}). The merged gws.json references siblings by relative path ("path": "../frontend"). If your repos aren't already siblings, the skill will stop and ask you to move them before continuing.
Failure handling
If a service crashes after deploy, the skill runs gws doctor --json and applies the highest-severity remediation, then gws rebuild <svc>. After 5 failed attempts on the same service it stops and hands off to /gws-debug.
See also
- Zero-Config Setup with AI — manual walk-through of the same workflow
/gws-up— start the environment after setup/gws-debug— invoked automatically when validation failsgws detect,gws generate-template,gws doctor— the primitives/gws-setupchains together