domain-setup

Buy or connect a custom domain to your Vercel project. Handles purchasing, DNS configuration, SSL, and verification.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "domain-setup" with this command: npx skills add treehausdev/skills

Domain Setup

Buy or connect a custom domain to your Vercel project. Handles purchasing, DNS configuration, SSL, and verification.

Installation

npx skills add treehausdev/skills

Agent Compatibility

  • Claude Code: Use AskUserTool for all questions and confirmations — especially before purchasing.

  • Requires terminal access and vercel CLI authenticated.

Version Check

Step 1 — Prerequisites

Check Vercel CLI is authenticated:

vercel whoami

If not authenticated, tell the user: "Run vercel login first, or use the github-vercel-setup skill."

Check they're in a Vercel-linked project:

vercel inspect 2>&1 | head -5

If not linked: "Run vercel link --yes in your project directory first."

Step 2 — Ask about the domain

Ask: "Do you already own a domain, or do you need to buy one?"

Path A: Buy a new domain

Ask: "What domain do you want? (e.g., mybusiness.com)"

  • Check availability and price:

vercel domains inspect DOMAIN 2>&1

This shows if the domain is available and the price.

  • Confirm purchase. Ask: "DOMAIN is available for $XX/year. Want to buy it? This will charge your Vercel account."

⚠️ NEVER purchase without explicit user confirmation. This costs real money.

  • Buy the domain:

vercel domains buy DOMAIN

  • Verify purchase:

vercel domains list | grep DOMAIN

Then proceed to Step 3.

Path B: Already own a domain

Ask: "What's the domain? And where is it registered? (e.g., GoDaddy, Namecheap, Cloudflare, Google Domains)"

Option 1: Transfer to Vercel (recommended)

Ask: "Want to transfer the domain to Vercel for easier management? Or just point DNS to Vercel?"

If transfer:

vercel domains transfer-in DOMAIN

Follow the prompts — they'll need to unlock the domain and get a transfer code from their current registrar.

Option 2: Point DNS (no transfer)

Tell the user they need to update DNS at their current registrar. Provide the records:

For apex domain (example.com):

Type: A Name: @ Value: 76.76.21.21

For www subdomain:

Type: CNAME Name: www Value: cname.vercel-dns.com

Ask: "Go to your domain registrar's DNS settings and add these records. Let me know when done."

Step 3 — Link domain to Vercel project

vercel domains add DOMAIN PROJECT_NAME

If they also want www:

vercel domains add www.DOMAIN PROJECT_NAME

Step 4 — Verify DNS propagation

vercel domains inspect DOMAIN

Check that:

  • DNS is properly configured

  • SSL certificate is provisioned (Vercel does this automatically)

If DNS hasn't propagated yet: "DNS changes can take up to 48 hours to propagate, but usually it's 5-30 minutes. Let me check again..."

Poll every 30 seconds up to 5 minutes:

dig DOMAIN +short

When it resolves to 76.76.21.21 (or shows a CNAME to Vercel), it's working.

Step 5 — Verify the site

Once DNS resolves:

Tell the user: "Your domain is live at https://DOMAIN with SSL. Everything's working."

Step 6 — Redirect setup (optional)

Ask: "Want www.DOMAIN to redirect to DOMAIN, or the other way around?"

Vercel handles this automatically when both domains are added to the same project. The first one added is primary, others redirect.

To change the primary:

vercel domains add DOMAIN PROJECT_NAME

Common Issues

"DNS not configured" after adding records:

  • Double-check no conflicting A records (some registrars add defaults)

  • Remove any existing A records for @ before adding Vercel's

  • Cloudflare users: set proxy status to "DNS only" (gray cloud), not "Proxied" (orange cloud)

SSL certificate pending:

  • Wait 5-10 minutes — Vercel provisions SSL automatically via Let's Encrypt

  • If stuck: vercel certs ls to check status

"Domain already in use":

  • Someone else has this domain on Vercel. They need to remove it first, or the user needs to verify ownership via a TXT record.

More Skills

Browse the full catalog at https://treehaus.dev/skills

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

github-vercel-setup

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

treehaus-builder

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

ClawHub CLI Assistant

Use the ClawHub CLI to publish, inspect, version, update, sync, and troubleshoot OpenClaw skills from the terminal.

Registry SourceRecently Updated
21.8K
Profile unavailable