stacks-deploy
Skill by stacksjs
Guides an AI assistant through deploying a Stacks application with buddy deploy. It covers choosing between AWS, Hetzner, Fly.io and SSH hosts, plus rollback and troubleshooting.
Install stacks-deploy
Built from the published package, never by AI.
git clone --depth 1 https://github.com/stacksjs/stacks /tmp/stacks && mkdir -p ~/.claude/skills && cp -r /tmp/stacks/storage/framework/defaults/ai/skills/stacks-deploy ~/.claude/skills/stacks-deployRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/stacksjs/stacks /tmp/stacks && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/stacks/storage/framework/defaults/ai/skills/stacks-deploy ~/.gemini/antigravity-cli/skills/stacks-deployAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
Stacks Deployment is a skill that guides an AI assistant through deploying a Stacks application with the buddy deploy command. It covers choosing a target: AWS, Hetzner Cloud, Fly.io, or a host the user already owns over SSH. It also covers the build to deploy workflow, pre and post deploy hooks, server or serverless mode selection, first-time setup, rollback and troubleshooting.
The provider is set in config/cloud.ts and can be overridden by the CLOUD_PROVIDER environment variable. A dry-run preview lists the planned steps without changing anything. Hetzner and SSH share one pipeline that copies a release tarball, installs systemd units and sets up the rpx gateway. The skill is for developers deploying Stacks apps who need provider-specific prerequisites and steps. It points to the stacks-cloud skill for infrastructure details.
Written from the project's SKILL.md and checked against it.
What it can do
- Deploy target selectionExplains how cloud.provider and CLOUD_PROVIDER choose between aws, hetzner, ssh and fly.
- Dry-run previewShows the ordered deploy plan with buddy deploy --dry-run without changing anything.
- Deploy workflowDescribes the validation, build, infrastructure, release and DNS steps for each target.
- Deploy hooksShows beforeDeploy and afterDeploy hooks in cloud/deploy-script.ts.
- Server and serverless modesExplains server mode with EC2 and ALB versus serverless mode with Lambda for the AWS target.
- Preview deploymentsCovers deploy:preview and deploy:preview:remove for Hetzner and SSH hosts.
- RollbackCovers buddy deploy:rollback to activate a preserved release.
- First deployment checklistLists the setup commands for configuring a provider, generating the app key and setting env values.
- LAN rule for SSH hostsExplains why private-address SSH hosts publish no DNS or certificates.
What you need
- Bun 1.3.0 or later
- TypeScript
- AWS credentials, or a HCLOUD_TOKEN for Hetzner
- A 64-bit Debian or Ubuntu host for SSH deploys
- FLY_API_TOKEN and Docker for Fly.io deploys
Try asking
- Walk me through a first-time Stacks deploy to Hetzner.
- Run a dry-run preview of buddy deploy for staging.
- Roll back the production Stacks site to the previous release.
Good to know
- Hetzner and SSH targets are marked experimental in the source.
- buddy cloud --diff works only for the AWS target.
- Deploy hooks run on the local machine, not on the target server.
- CI deploys with --prod need --yes to avoid hanging on the prompt.
Security check
C- Asks for administrator rights (sudo)In
storage/framework/defaults/ai/skills/stacks-deploy/SKILL.md:sudo
Checked automatically: storage/framework/defaults/ai/skills/stacks-deploy/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: Read Edit Write Bash Grep Glob
Alternatives to stacks-deploy
All alternatives →Runs the full Next.js deployment test suite for an internal vercel/next.js pull request. It validates the commit's preview package, then dispatches the test_e2e_deploy_release.yml workflow. Meant for maintainers who explicitly ask for the entire suite.
Instruments Python AI applications with DeepEval's native tracing so their execution appears span by span in Confident AI's Observatory. It is for developers building LLM apps, agents, RAG pipelines and chatbots.
Manages Azure Container Registry through the az acr Azure CLI command group. It covers registries, images, cloud builds, ACR Tasks, tokens, geo-replication and networking. Built for developers and operators who work with ACR in Azure.
Opens, runs, and shows apps on a temporary Crabbox machine, including native desktops and web previews. It is for OpenClaw users who want an app running and visible in their chat side panel.
Runs batch and HPC workloads on GKE using job queues and parallel processing. Aimed at teams running batch pipelines, HPC simulations, or ML training jobs on Google Kubernetes Engine.
Answers questions about GKE cluster and workload costs using BigQuery billing exports and live cluster metrics. Built for platform engineers and cloud teams who need to analyze and diagnose GKE spend.
Compare with deploy-release-test, deepeval-tracing or azure-container-registry-cli
stacks-deploy: common questions
Which cloud providers does Stacks deployment support?
The source lists AWS (the default), Hetzner Cloud, a host the user owns over SSH, and Fly.io Machines. The provider is set by cloud.provider in config/cloud.ts.
Can I preview a deploy before it changes anything?
Yes. buddy deploy --dry-run prints the ordered plan and exits before any builds, provider calls or service restarts. Adding --json emits a versioned JSON line for tools.
Does the skill cover rollback?
Yes. buddy deploy:rollback activates a preserved release, with options for environment, target release and dry run.
How do I install stacks-deploy?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is stacks-deploy free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is stacks-deploy safe to use?
It scores 76 of 100. Grades: maintenance A, licence A, quality A. Security check: grade C (asks for administrator rights (sudo)). Review the code before you install. How grades work.
What are alternatives to stacks-deploy?
Similar skills: deploy-release-test, deepeval-tracing, azure-container-registry-cli, crabbox-apps.
