setup-deploy
Skill8 starsChanged 6 months agoMITView on GitHub
Configure deploys for /land-and-deploy: detect the platform, production URL and health checks, save to CLAUDE.md.
- Reads credentials
30 other projects use a version of this, 5 of them edited.
Adopted by
Most recently taken up by
- trungtm78/ClaudeSkillstheir own version, first seen Oct 25, 2026
- ignavm1/claude-skillstheir own version, first seen Oct 13, 2026
- leishifu666/skillstheir own version, first seen Oct 9, 2026
- chriswestt/claude-skillstheir own version, first seen Oct 9, 2026
- IyedBecheikh/bstacktheir own version, first seen Oct 9, 2026
- garrytan/gstackedited, first seen Oct 7, 2026
Used with
Projects with it also use ios-sync, open-gstack-browser and 6 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
Saqlain-811Skillios-sync
Regenerate the iOS debug bridge against the latest upstream gstack templates. (gstack)
Also in 6 projects that use this
seek888Skillopen-gstack-browser
Launch GStack Browser — AI-controlled Chromium with the sidebar extension baked in. Opens a visible browser window where you can watch every action in real time. The sidebar shows a live activity feed and chat. Anti-bot stealth built in. Use when asked to "open gstack browser", "launch browser", "connect chrome", "open chrome", "real browser", "launch chrome", "side panel", or "control my browser". Voice triggers (speech-to-text aliases): "show me the browser".
Also in 10 projects that use this
ShreyRaviSkillsetup-gbrain
Set up gbrain for this coding agent: install the CLI, initialize a local PGLite or Supabase brain, register MCP, capture per-remote trust policy. One command from zero to "gbrain is running, and this agent can call it." Use when: "setup gbrain", "connect gbrain", "start gbrain", "install gbrain", "configure gbrain for this machine". (gstack)
Also in 7 projects that use this
ShreyRaviSkillsync-gbrain
Keep gbrain current with this repo's code and refresh agent search guidance in CLAUDE.md. Wraps the gstack-gbrain-sync orchestrator with state probing, native code-surface registration, capability checks, and a verdict block. Re-runnable, idempotent. Use when: "sync gbrain", "refresh gbrain", "re-index this repo", "gbrain search isn't finding things". (gstack)
Also in 7 projects that use this
Saqlain-811Skillios-clean
Remove the DebugBridge SPM package and all #if DEBUG wiring from an iOS app. (gstack)
Also in 5 projects that use this
bastosSkillios-design-review
Review iOS app UI/UX design quality using Apple's design principles and the Liquid Glass-era design language from WWDC25/26. Use when asked for a design review, UX critique, visual design assessment, or evaluation of an app's interface quality, design intent, alignment with the new Apple design system, or usability. Triggers: "design review", "UX review", "visual design critique", "review the UI", "does this design work", "evaluate this interface", "design feedback", "Liquid Glass review".
Also in 5 projects that use this
- +1 more from Saqlain-811
- +1 more from ShreyRavi
Other versions30 projects use a version of this.
Word for word · 0
None found.
Edited · 5
- garrytan/gstack★ 141k23% same
- mr-daedalium/ostack-saas★ 10828% same
- no-session/pstack★ 9621% same
- lucas-flatwhite/gstack-ko★ 4531% same
- ayuday/gstack★ 021% same
Wrote their own version · 25
- CarbeneAI/Forge★ 9same name
- Samin12/skills★ 8same name
- aryaniyaps/dot-ai★ 1same name
- chloropine/cgstack★ 1same name
- evgenii-studitskikh/Claude-Code-SaaS-Studio★ 1same name
- IyedBecheikh/bstack★ 1same name
- jpoindexter/theft-kit★ 1same name
- leishifu666/skills★ 1same name
- mahiunfiltered/claude-code-skills★ 1same name
- nileshteji/skills★ 1same name
15 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository62 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- address-pr-reviewSkill
- agent-evalSkill
- ai-cost-guardSkill
- autoplanSkill
- aws-costSkill
- bedrock-guardrailsSkill
- benchmarkSkill
- browseSkill
- canarySkill
- carefulSkill
- claudeSkill
- codexSkill
- connect-chromeSkill
- connect-reviewSkill
- context-restoreSkill
- context-saveSkill
- csoSkill
- design-consultationSkill
- design-htmlSkill
- design-reviewSkill
- design-shotgunSkill
- devex-reviewSkill
- diagramSkill
- document-generateSkill
- document-releaseSkill
- freezeSkill
- guardSkill
- healthSkill
- iac-reviewSkill
- improve-archSkill
- investigateSkill
- kb-reviewSkill
- land-and-deploySkill
- landing-reportSkill
- learnSkill
- make-pdfSkill
- mcp-reviewSkill
- office-hoursSkill
- open-browserSkill
- pair-agentSkill
- plan-ceo-reviewSkill
- plan-design-reviewSkill
- plan-devex-reviewSkill
- plan-eng-reviewSkill
- plan-tuneSkill
- pr-summarySkill
- qa-onlySkill
- qaSkill
- retroSkill
- reviewSkill
- scrapeSkill
- setup-browser-cookiesSkill
- shipSkill
- skillifySkill
- specSkill
- telegramSkill
- unfreezeSkill
- unslopSkill
- vibe-gcSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
33 rules. 0 are common, 20 are distinctive, and 13 are very specific to this project.
0
Common
Most of the 22 edited versions we read keep these.
20
Distinctive
This author's own choices. Worth a look.
13
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 19
If this session was compacted, the copy of this skill in context may be cut off.
- Very specific: line 20
Read ${CLAUDE_SKILL_DIR}/SKILL.md from disk and resume at the step you are on.
- Distinctive: line 24
Use when: "setup deploy", "configure deployment", "set up land-and-deploy", "how do I configure deploys".
- Very specific: line 51
When the user types /setup-deploy, run this skill.
- Distinctive: line 61
If configuration already exists, show it and ask:
- Distinctive: line 69
If the user picks C, stop.
- Distinctive: line 73
Run the platform detection from the deploy bootstrap:
- Very specific: line 94
When more than one PLATFORM: line prints, a repo often carries leftovers from an earlier host.
- Very specific: line 111
Check if fly CLI is installed: which fly 2>/dev/null
- Very specific: line 112
If installed, verify: fly status --app {app} 2>/dev/null
- Distinctive: line 123
Ask the user to confirm the production URL.
- Very specific: line 130
Check for Render API key: [ -n "${RENDER_API_KEY:-}" ] && echo "RENDER_API_KEY: set" || echo "RENDER_API_KEY: not set".
- Distinctive: line 131
Never print any key bytes, not even a prefix (see rule 4 under third-party actions).
- Distinctive: line 136
Ask the user to confirm. Render uses auto-deploy from the connected git branch — after a merge into that branch, Render picks it up …
- Very specific: line 142
If vercel.json or .vercel detected:
- Very specific: line 144
Check for vercel CLI: which vercel 2>/dev/null
- Distinctive: line 146
Ask whether the project is connected to the repo (Vercel project settings → Git).
- Very specific: line 157
Ask for the production URL and confirm it (the *.netlify.app name or a custom domain)
- Distinctive: line 169
If deploy workflows detected but no platform config:
- Distinctive: line 171
Read the workflow file to understand what it does
- Distinctive: line 173
Ask the user for the production URL
- Distinctive: line 179
If nothing detected, use AskUserQuestion to gather the information:
- Very specific: line 238
Only on A: read CLAUDE.md (or create it).
- Very specific: line 264
After writing, verify the configuration works (skip a check whose field is none):
- Distinctive: line 266
If a health check URL was configured, try it:
- Distinctive: line 271
If a deploy status command was configured, try it:
- Distinctive: line 280
Read back the merge method you wrote:
- Distinctive: line 340
Never expose secrets: Don't print full API keys, tokens, or passwords.
- Distinctive: line 341
Confirm with the user: Always show the detected config and ask for confirmation before writing.
- Distinctive: line 342
CLAUDE.md is the source of truth: All configuration lives there — not in a separate config file.
- Very specific: line 344
Platform CLIs are optional: If fly or vercel CLI isn't installed, fall back to URL-based health checks.
- Distinctive: line 348
If you discovered a non-obvious platform quirk, deployment pattern, or configuration gotcha during this session, log it for future sessions:
- Distinctive: line 358
Only log genuine discoveries: Don't log obvious things. A good test: would this insight save time in a future session?
“Common” is measured: kept by at least 6 in 10 of the 22 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
If this session was compacted, the copy of this skill in context may be cut off.
Read ${CLAUDE_SKILL_DIR}/SKILL.md from disk and resume at the step you are on.
When to invoke
Use when: "setup deploy", "configure deployment", "set up land-and-deploy", "how do I configure deploys".
Preamble
eval "$("${VIBESTACK_HOME:-$HOME/.vibestack}/bin/vibe-slug" 2>/dev/null)" 2>/dev/null || SLUG="unknown"
_LEARN_FILE="${VIBESTACK_HOME:-$HOME/.vibestack}/projects/${SLUG:-unknown}/learnings.jsonl"
if [ -f "$_LEARN_FILE" ]; then
_LEARN_COUNT=$(wc -l < "$_LEARN_FILE" 2>/dev/null | tr -d ' ')
echo "LEARNINGS: $_LEARN_COUNT entries loaded"
if [ "$_LEARN_COUNT" -gt 5 ] 2>/dev/null; then
"${VIBESTACK_HOME:-$HOME/.vibestack}/bin/vibe-learnings-search" --limit 5 2>/dev/null || true
fi
else
echo "LEARNINGS: none yet"
fi{{include lib/snippets/session-host.md}}
{{include lib/snippets/decision-brief.md}}
{{include lib/snippets/working-protocols.md}}
{{include lib/snippets/state-protocols.md}}
User-invocable
When the user types /setup-deploy, run this skill.
Instructions
Step 1: Check existing configuration
grep -A 20 "## Deploy Configuration" CLAUDE.md 2>/dev/null || echo "NO_CONFIG"If configuration already exists, show it and ask:
- Context: Deploy configuration already exists in CLAUDE.md.
- RECOMMENDATION: Choose A to update if your setup changed.
- A) Reconfigure from scratch (overwrite existing)
- B) Edit specific fields (show current config, let me change one thing)
- C) Done — configuration looks correct
If the user picks C, stop.
Step 2: Detect platform
Run the platform detection from the deploy bootstrap:
# Platform config files
[ -f fly.toml ] && echo "PLATFORM:fly" && cat fly.toml
[ -f render.yaml ] && echo "PLATFORM:render" && cat render.yaml
[ -f vercel.json ] || [ -d .vercel ] && echo "PLATFORM:vercel"
[ -f netlify.toml ] && echo "PLATFORM:netlify" && cat netlify.toml
[ -f Procfile ] && echo "PLATFORM:heroku"
[ -f railway.json ] || [ -f railway.toml ] && echo "PLATFORM:railway"
# GitHub Actions deploy workflows
for f in $(find .github/workflows -maxdepth 1 \( -name '*.yml' -o -name '*.yaml' \) 2>/dev/null); do
[ -f "$f" ] && grep -qiE "deploy|release|production|staging|cd" "$f" 2>/dev/null && echo "DEPLOY_WORKFLOW:$f"
done
# Project type
[ -f package.json ] && grep -q '"bin"' package.json 2>/dev/null && echo "PROJECT_TYPE:cli"
find . -maxdepth 1 -name '*.gemspec' 2>/dev/null | grep -q . && echo "PROJECT_TYPE:library"When more than one PLATFORM: line prints, a repo often carries leftovers from an
earlier host. Ask which one serves production — one option per detected platform, plus
"none of these" (go to Custom / Manual) — and configure only that one.
Confirm the project type before going on: a PROJECT_TYPE: line is a guess (a web app
can ship a bin for its own tooling), and no line means nothing was detected. Ask web
app / API / CLI / library, with the detected type as the recommendation.
Step 3: Platform-specific setup
Based on what was detected, guide the user through platform-specific configuration.
Fly.io
If fly.toml detected:
- Extract app name:
grep -m1 "^app" fly.toml | sed 's/app = "\(.*\)"/\1/' - Check if
flyCLI is installed:which fly 2>/dev/null - If installed, verify:
fly status --app {app} 2>/dev/null - Infer URL:
https://{app}.fly.dev - Set deploy status command:
fly status --app {app} - Set health check: once the production URL is confirmed (below), probe its
/health:
Record_C=$(curl -s -o /dev/null -w '%{http_code}' --max-time 10 '<PRODUCTION_URL>/health' 2>/dev/null) || _C=000 echo "FLY_HEALTH_PROBE: $_C"/healthonly when the probe answers 2xx; anything else,000included, means the app has no such route — record the root URL instead.
Ask the user to confirm the production URL. Some Fly apps use custom domains.
Render
If render.yaml detected:
- Extract service name and type from render.yaml
- Check for Render API key:
[ -n "${RENDER_API_KEY:-}" ] && echo "RENDER_API_KEY: set" || echo "RENDER_API_KEY: not set". Never print any key bytes, not even a prefix (see rule 4 under third-party actions). - Infer URL:
https://{service-name}.onrender.com - Render deploys automatically on push to the connected branch — no deploy workflow needed
- Set health check: the inferred URL
Ask the user to confirm. Render uses auto-deploy from the connected git branch — after a merge into that branch, Render picks it up automatically. The "deploy wait" in /land-and-deploy should poll the Render URL until it responds with the new version.
Vercel
If vercel.json or .vercel detected:
- Check for
vercelCLI:which vercel 2>/dev/null - If installed:
vercel ls --prod 2>/dev/null | head -3 - Ask whether the project is connected to the repo (Vercel project settings → Git).
Vercel deploys on push — preview on PR, production on merge into the production
branch — only when the Vercel project is connected to this Git repository. Not
connected: the deploy trigger is the command the user runs (e.g.
vercel --prod). - Set health check: the production URL from vercel project settings
Netlify
If netlify.toml detected:
- Extract build settings from netlify.toml — it does not name the site's URL
- Ask for the production URL and confirm it (the
*.netlify.appname or a custom domain) - Netlify deploys automatically on push when the site is linked to the repo; confirm that
- Set health check: the confirmed production URL
Heroku / Railway
A Procfile or railway.json/railway.toml gets no dedicated flow. Continue with
Custom / Manual below, with the platform prefilled (heroku or railway) and confirmed
as the first answer.
GitHub Actions only
If deploy workflows detected but no platform config:
- Read the workflow file to understand what it does
- Extract the deploy target (if mentioned)
- Ask the user for the production URL
- Set deploy status command, naming that one workflow so other workflows' runs never
answer for it:
gh run list --workflow <file> --json headSha,status,conclusion
Custom / Manual
If nothing detected, use AskUserQuestion to gather the information:
How are deploys triggered?
- A) Automatically on push to the default branch (Fly, Render, Vercel, Netlify, etc.)
- B) Via GitHub Actions workflow
- C) Via a deploy script or CLI command (describe it)
- D) Manually (SSH, dashboard, etc.)
- E) Not deployed yet — stop here and write nothing; run /setup-deploy again once production exists
- F) Never deploys (library, CLI, tool) — record
nonefor the platform, URL, trigger, status and health check, skip questions 2 and 3, and go to Step 4
On E, stop: no Deploy Configuration is written, because a guessed one is what /land-and-deploy would trust.
- What's the production URL? (Free text — the URL where the app runs)
- How can /land-and-deploy check if a deploy succeeded?
- A) HTTP health check at a specific URL (e.g., /health, /api/status)
- B) CLI command (e.g.,
fly status,kubectl rollout status) - C) Check the GitHub Actions workflow status
- D) No automated way — just check the URL loads
- Any pre-merge or post-merge hooks?
- Commands to run before merging (e.g.,
bun run build) - Commands to run after merge but before deploy verification
- Commands to run before merging (e.g.,
Step 4: Write configuration
Collect what is missing. Walk the block below and ask for every field not yet confirmed by the user — a detected value is a recommendation, not an answer.
Default branch and merge method come from the repo's settings:
_RV=$(gh repo view --json defaultBranchRef,squashMergeAllowed,mergeCommitAllowed,rebaseMergeAllowed \
--jq '"DEFAULT_BRANCH: " + (.defaultBranchRef.name // ""), "MERGE_METHODS_ALLOWED: " + ([(if .squashMergeAllowed then "squash" else empty end), (if .mergeCommitAllowed then "merge" else empty end), (if .rebaseMergeAllowed then "rebase" else empty end)] | join(" "))' 2>/dev/null) || _RV=""
if [ -n "$_RV" ]; then
printf '%s\n' "$_RV"
else
_DB=$(git symbolic-ref -q --short refs/remotes/origin/HEAD 2>/dev/null)
_DB="${_DB#origin/}"
echo "DEFAULT_BRANCH: ${_DB:-unknown}"
echo "MERGE_METHODS_ALLOWED: unknown"
fiOffer only the methods on the MERGE_METHODS_ALLOWED: line; with exactly one, confirm
it instead of asking. unknown or an empty list means the settings could not be read:
say so and ask among squash, merge and rebase. A DEFAULT_BRANCH: that is empty
or unknown is asked for, never assumed; the answer fills {default branch}.
Confirm before writing. Show the complete block exactly as it will be written, every placeholder filled, and ask:
- A) Write it
- B) Change a field (then show the block again)
- C) Cancel — write nothing
Only on A: read CLAUDE.md (or create it). Find and replace the ## Deploy Configuration
section if it exists, or append it at the end.
## Deploy Configuration (configured by /setup-deploy)
- Platform: {platform}
- Production URL: {url}
- Deploy workflow: {workflow file or "auto-deploy on push"}
- Deploy status command: {command or "HTTP health check"}
- Merge method: {squash/merge/rebase}
- Project type: {web app / API / CLI / library}
- Post-deploy health check: {health check URL or command}
### Custom deploy hooks
- Pre-merge: {command or "none"}
- Deploy trigger: {command or "automatic on push to {default branch}"}
- Deploy status: {command or "poll production URL"}
- Health check: {URL or command}A project that never deploys (Custom / Manual option F) writes none on every line
from Platform to Health check except Merge method and Project type:
- Platform: none, - Production URL: none, - Deploy trigger: none, and so on.
Step 5: Verify
After writing, verify the configuration works (skip a check whose field is none):
- If a health check URL was configured, try it:
curl -sf "{health-check-url}" -o /dev/null -w "%{http_code}" 2>/dev/null || echo "UNREACHABLE"- If a deploy status command was configured, try it:
_OUT=$({deploy-status-command} 2>&1); _RC=$?; printf '%s\n' "$_OUT" | head -5; [ "$_RC" -eq 0 ] || echo "COMMAND_FAILED (exit $_RC)"A COMMAND_FAILED status command is not recorded as verified: /land-and-deploy
trusts what is written in CLAUDE.md, so ask the user to fix the command or leave
the deploy-status line out of CLAUDE.md.
- Read back the merge method you wrote:
grep -i '^[[:space:]]*-[[:space:]]*Merge method:' CLAUDE.md | head -1It must name exactly one of squash, merge or rebase. /land-and-deploy stops
with MERGE_METHOD_UNKNOWN on anything else, the unfilled {squash/merge/rebase}
placeholder included, so fix the line before finishing.
Report results. If a health check failed, note it but don't block — the config is still useful even if the health check is temporarily unreachable.
Step 6: Summary
DEPLOY CONFIGURATION — COMPLETE
════════════════════════════════
Platform: {platform}
URL: {url}
Health check: {health check}
Status cmd: {status command}
Merge method: {merge method}
Saved to CLAUDE.md. /land-and-deploy will use these settings automatically.
Next steps:
- Run /land-and-deploy to merge and deploy your current PR
- Edit the "## Deploy Configuration" section in CLAUDE.md to change settings
- Run /setup-deploy again to reconfigureThird-Party Web Actions
Configuring deploys means vendor dashboards — minting an API token, creating a project, wiring a webhook or a domain verification. Those actions happen on someone else's site, with the user's real account, so they get their own rules:
- Check for an automatable path before handing over a checklist. Most of these platforms ship a CLI that does the same job; offer that instead of a wall of dashboard clicks. Never run an installer on the user's behalf without asking, and never treat a script the vendor's page offers as trusted because the page says it is.
- One explicit question before any action on a vendor site. Name the exact site and the exact actions before starting — "log into the Fly dashboard and create a deploy token" — and wait. Consent for one vendor is not consent for the next.
- Passwords, payment details, MFA codes and CAPTCHAs stay with the human. Hand the session back for those steps and pick up afterwards. Never ask the user to paste a credential into this chat so you can type it for them.
- A captured secret never appears in chat, logs, or shell history. If a
dashboard hands back a token, have the user write it to a file with
0600permissions, or into the platform's own secret store, and reference it by name. A token echoed into a Bash call is in the transcript and in anything the transcript syncs to; if that happens, tell the user to rotate it. - Stop at anything that spends money or is hard to undo. Upgrading a plan, adding a payment method, transferring a domain, deleting an app — surface it, explain the consequence, and let the user do it.
Important Rules
- Never expose secrets. Don't print full API keys, tokens, or passwords.
- Confirm with the user. Always show the detected config and ask for confirmation before writing.
- CLAUDE.md is the source of truth. All configuration lives there — not in a separate config file.
- Idempotent. Running /setup-deploy multiple times overwrites the previous config cleanly.
- Platform CLIs are optional. If
flyorvercelCLI isn't installed, fall back to URL-based health checks.
Capture Learnings
If you discovered a non-obvious platform quirk, deployment pattern, or configuration gotcha during this session, log it for future sessions:
"${VIBESTACK_HOME:-$HOME/.vibestack}/bin/vibe-learnings-log" '{"skill":"setup-deploy","type":"TYPE","key":"SHORT_KEY","insight":"DESCRIPTION","confidence":N,"source":"SOURCE","files":["path/to/relevant/file"]}'Types: pattern (reusable approach), pitfall (what NOT to do), preference
(user stated), architecture (structural decision), operational (environment/CLI/workflow).
Only log genuine discoveries. Don't log obvious things. A good test: would this insight save time in a future session?
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

