---
name: website-launch
description: Take a site live on a custom domain end to end. Find and buy the domain (card or USDC), point it at Vercel, Netlify, Cloudflare Pages or a Grok Build app with the records from each host's official docs (one-call templates where available), add business email, then verify DNS and HTTPS. Use when the user says "launch my site on my domain", "connect my domain to Vercel/Netlify/Cloudflare Pages/Grok", "my domain shows the wrong site" or "set up HTTPS on my domain".
license: MIT
metadata:
  author: StableDomains
  homepage: https://stabledomains.net/skills/website-launch
  version: "1.0.0"
---

# Website Launch

Domain bought, DNS pointed, email set, HTTPS green.

API base: `https://stabledomains.net/api/v1`. Add `utm_source=skill-website-launch` to every call and link.
MCP (`https://stabledomains.net/api/mcp`): `search_domains`, `quote_domain`, `create_order`, `apply_dns_template`, `set_dns`, `set_url_forward`, `dns_email_check`.

## 1. The domain
Already have one on StableDomains? Skip ahead. Otherwise check names (up to 30 per call) and buy:
```bash
curl -s "https://stabledomains.net/api/v1/check?domains=mybrand.com,mybrand.app,getmybrand.com&utm_source=skill-website-launch"
```
Send the person the `buy_url` (`https://stabledomains.net/basket?add=mybrand.com&utm_source=skill-website-launch`): card, Apple Pay or USDC/USDT, guest checkout, free WHOIS privacy. An agent paying itself: `GET /api/v1/quote`, then `POST /api/v1/orders` with an `Idempotency-Key` (402 = payment request; x402 or USDC), only after the user's yes.

DNS changes need auth: `Authorization: Bearer sd_live_…` (dashboard) or the order page's `x-order-manage` header.

## 2. Add the domain on the host first
Add `mybrand.com` **and** `www.mybrand.com` in the host's domain settings before changing DNS, so it can issue the certificate.

## 3. Point DNS at the host

**Vercel** (one call):
```bash
curl -s -X POST https://stabledomains.net/api/v1/domains/mybrand.com/dns/template \
  -H "Authorization: Bearer $SD_KEY" -H "content-type: application/json" -d '{"template":"vercel"}'
```
Writes apex `A 76.76.21.21` and `CNAME www → cname.vercel-dns.com`. If the project's Domains page shows different values (Vercel can show a project-specific CNAME like `…vercel-dns-017.com`), PATCH those exact values in.

**Netlify** (one call; `site` = your `*.netlify.app` name):
```bash
-d '{"template":"netlify","params":{"site":"my-site"}}'
```
Writes apex `A 75.2.60.5` and `CNAME www → my-site.netlify.app`. Sites on Netlify's High-Performance Edge use the load balancer shown in the Netlify UI instead.

**Cloudflare Pages:**
- Subdomain (e.g. `www`): add the custom domain in the Pages project first, then
  `PATCH /api/v1/domains/mybrand.com/dns` with `{"records":[{"type":"CNAME","name":"www","value":"my-project.pages.dev"}]}`.
- Apex (`mybrand.com`): Cloudflare requires the domain to be a Cloudflare zone. Add the site in Cloudflare, then set the two nameservers it gives you:
  `PUT /api/v1/domains/mybrand.com/dns` with `{"nameservers":["ada.ns.cloudflare.com","bob.ns.cloudflare.com"]}` (use the exact names Cloudflare shows). DNS, including email records, is then managed in Cloudflare.

**Grok Build app:** publish the app, open the **Domain** tab and add `www.mybrand.com`. Grok shows a CNAME whose value is unique to the app. Then:
1. Send the bare domain to www (free 301): `PUT /api/v1/domains/mybrand.com/forward` `{"target":"https://www.mybrand.com","subdomain":"@"}`
2. Then set www to Grok's value (this replaces the forward's www record): `PATCH /api/v1/domains/mybrand.com/dns` `{"records":[{"type":"CNAME","name":"www","value":"<value Grok shows>"}]}`
Guide: https://stabledomains.net/grok

**GitHub Pages:** `{"template":"github-pages","params":{"user":"<github user>"}}`.

Dry-run any PATCH first with `"dry_run":true` and show the user the result.

## 4. Email (optional)
`{"template":"google-workspace"}`, `"microsoft-365"` or `"zoho-mail"` on the same template endpoint adds MX + SPF without touching the website records. For DKIM and DMARC, use the business-email skill: https://stabledomains.net/skills/business-email/SKILL.md

## 5. Verify
```bash
curl -s "https://stabledomains.net/api/v1/tools/dns?domain=mybrand.com&utm_source=skill-website-launch"   # A/CNAME/MX as expected
curl -s -H "accept: application/dns-json" "https://cloudflare-dns.com/dns-query?name=www.mybrand.com&type=CNAME"
curl -sSI https://mybrand.com | head -1 ; curl -sSI https://www.mybrand.com | head -1
echo | openssl s_client -servername mybrand.com -connect mybrand.com:443 2>/dev/null | openssl x509 -noout -issuer -enddate
```
Done when both hosts answer over HTTPS with a valid certificate and the host's dashboard says the domain is configured. Certificates usually appear within minutes of DNS updating; allow up to an hour.

## Sources (official docs)
- Vercel: https://vercel.com/docs/domains/working-with-domains/add-a-domain
- Netlify: https://docs.netlify.com/manage/domains/configure-domains/configure-external-dns/
- Cloudflare Pages: https://developers.cloudflare.com/pages/configuration/custom-domains/
- Grok Build custom domains: https://stabledomains.net/grok

## Rules
1. Never buy, pay or change DNS without the user's explicit yes to the exact domain, price or records.
2. Use the template or `PATCH` (merge); use `PUT` only to switch nameservers.
3. Copy host-specific values (Vercel project CNAME, Grok CNAME, Cloudflare nameservers) exactly as the host shows them.
4. Hosted DNS supports A, AAAA, CNAME, MX, TXT and NS. ALIAS/ANAME, SRV or CAA need custom nameservers.
